Draw a flowchart or write pseudocode for a program that allows the user to enter values for the...

Question:

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 Code:

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:

1.

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 Study.com member to unlock this answer! Create your account

View this answer

Learn more about this topic:

Loading...
Writing Pseudocode: Algorithms & Examples

from Information Systems: Tutoring Solution

Chapter 11 / Lesson 25
153K

Related to this Question

Explore our homework questions and answers library