I've been creating a program that determines the number of paint cans required to paint a room. My professor had us write the pseudocode for the program, and now wants us to modify the code by inputting different kinds of LOOPS, such as the WHILE, DO…WHILE, and FOR…NEXT.
I have to include two of the three different looping structures (while, do…while, for…next) somewhere within my project pseudocode.
This is what my current pseudocode looks like, but I don't know which two loops would work the best or how to input them into the already existing pseudocode.
Start
Display "Enter room length"
Input roomLength
Display "Enter room width"
Input roomWidth
Display "Enter room height"
Input roomHeight
Display "Enter number of doors"
Inputs doors
Display "Enter number of windows"
Input windows
Set paintCans = (L x W x H) - (20 sq. ft. per door & 15 sq. ft. per window) / (400 sq. ft. per gallon)
Display "Total cans of paint is", + paintCans
End