Draw a flowchart or write pseudocode for a program that allows the user to enter values for the length and width, in feet, of a wall. The program outputs the area of the wall, in square feet. Then modify the program to allow the user to enter the price of a gallon of paint. Assume that a gallon covers 350 square feet of a wall. The program outputs the number of gallons needed and the cost of the job, assuming that you can purchase partial gallons of paint and that you don't need to account for windows or doors. Then modify the program again to allow the user to enter the number of doorways that don't need to be painted. Assume that each doorway is 14 square feet. The program outputs the number of gallons needed and the cost of the job.
Writing pseudocode for a program requiring straight calculations and no decisions is a straightforward problem and only requires that you complete each step sequentially. It is good practice for algorithm design.
Answer and Explanation:
Input the length and store it in a variable named length.
Input the width and store it in a variable named width.
Multiply the length times the...
See full answer below.
Become a member and unlock all Study Answers
Try it risk-free for 30 daysTry it risk-free
Ask a question
Our experts can answer your tough homework and study questions.Ask a question Ask a question
Learn more about this topic:
from Information Systems: Tutoring SolutionChapter 11 / Lesson 25