Separating clothes to wash into 3 different loads. This pseudo code describes how to separatethe clothes in
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 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.
Computer Architecture A Quantitative Approach
ISBN: 978-0123704900
4th edition
Authors: John L. Hennessy, David A. Patterson