Question: Suppose you have an algorithm for washing a dinner plate. The algorithm consists of: a. Push the plate into soapy water b. Wipe the plate

Suppose you have an algorithm for washing a dinner plate. The algorithm consists of:

a. Push the plate into soapy water

b. Wipe the plate thoroughly with a non-abrasive pad

c. Rinse the plate

d. Place the plate in the drain rack

You plan to add a loop to the algorithm so that it will properly handle any number of plates. Would you use a pre-test loop or a post-test loop? Why?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!