Sunil has written a program for a washing machine. The washing machine must wash, rinse and spin in that order. He writes a code:Rinse Wash SpinHis program does not work properly. What should Sunil write?

🎲 Try a Random Question  |  Total Questions in Quiz: 10  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Grades 3, 4 and 5 - Computer Science - Elementary School - Debugging — practice the complete quiz, review flashcards, or try a random question.

Writing algorithms is fun. Writing code is fun. When you have written all the code, you have a program. Then you try out the program. This is called executing the program. But does the program work? What if there are bugs in the program? A bug is a mistake. Often bugs are there because the codes are in the wrong order. So then you have to go through all the code to find the mistake. This is called the debugging cycle


Sunil has written a program for a washing machine. The washing machine must wash, rinse and spin in that order. He writes a code:<br /><br />Rinse Wash Spin<br /><br />His program does not work properly. What should Sunil write?