[Using program 'Flowgorithm']: A gallon of paint covers 422 square feet and costs $29.85. Using flowgorithm determine and display the amount of paint it will take to paint a fence of a specified height and length, the fence is solid not rails. Your program should perform the following tasks: Declare all required variables Declare constants and initialize them Prompt for the input of the fence height Prompt for the input of the fence length Calculate the total square feet to be painted Calculate the required number of gallons of paint required without using a partial gallon of paint Display the total square feet to be painted, the number of gallons of paint needed and the total cost of the paint Ask if a second estimate needs to be made (keep program running until told to stop) I have the basic steps complete, but am struggling to create a program which continues to run until told to stop. Suggestions on loop elements are hugely appreciated!
[Using
determine and display the amount of paint it will take to paint a fence of a
specified height and length, the fence is solid not rails. Your program should
perform the following tasks:
Declare all required variables
Declare constants and initialize them
Prompt for the input of the fence height
Prompt for the input of the fence length
Calculate the total square feet to be painted
Calculate the required number of gallons of paint required without
using a partial gallon of paint
Display the total square feet to be painted,
the number of gallons of paint needed and the total cost of the paint
Ask if a second estimate needs to be made (keep program running until told
to stop)
I have the basic steps complete, but am struggling to create a program which continues to run until told to stop. Suggestions on loop elements are hugely appreciated!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images