Question: Separating clothes to wash into 3 different loads. This pseudo code describes how to separatethe clothes in to 3 different piles. While (there are clothes

Separating clothes to wash into 3 different loads. This pseudo code describes how to separatethe clothes in to 3 different piles.

While (there are clothes that need to be separated)

If (current clothes are white)

put intothe 1st pile

If (current clothes are colored)

put into the 2ndpile in the middle

If (current clothes are jeans)

put into the 3rd pile

else

if (the mystery piece doesn'tfit into one of the category, make a 4th pile and wash later)

Wash clothes by each specific pile then relax

Explain whether their pseudo code methods appropriately address all objects within the collection. If not, suggest code that should be added or modified. If you determine their code is complete as written, explain why.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The provided pseudo code outlines a basic algorithm for separating clothes into three different piles based on their color and material white colored ... View full answer

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 Programming Questions!