Algorithm


For this week, my task is to create an algorithm that will help me perform a daily task more efficiently. So, I have created an algorithm that will help me get to uni on time.

//Algorithm for getting to Uni
START

Time = “What time did you wake up”
If Time > 0630
Print “Eat a small breakfast”
Else
Print “Eat a bigger breakfast”
Time2 = “ What time is it now?”
If Time2<=0700
Print “Have a shower”
Else
Print “HURRY UP!”
Time3 = “What’s the time”
If Time3<= 0800
Print “Get dressed”
Else
Print “HURRY UP OR YOU WILL BE LATE”
Time4 = “What is the time now?”
If Time4 <= 8:15
Print “Leave”
Else
Print “You’re definitely going to be late, just stay at home at this point”

END


Leave a Reply

Your email address will not be published. Required fields are marked *