Algorithm steps

Report a typo

A programmer decided to develop a smart alarm clock that can receive voice commands and wake the owner on time and not a minute later. In particular, the alarm clock should work like this: the programmer tells it the time, for example, 7 am, and the alarm clock memorizes this time and then starts ringing at 7 am.

Try to sort the steps needed for the algorithm to run:

Put the items in the correct order
Compare verified time with user command
Verify time
Store user command
Recognize user command
If time is right, ring the alarm
___

Create a free account to access the full topic