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 flowgorithm should perform the following tasks: Declareallrequiredvariables Declareconstantsandinitializethem Promptfortheinputofthefenceheight Promptfortheinputofthefencelength Calculatethetotalsquarefeettobepainted Calculatetherequirednumberofgallonsofpaintrequired,youcannot purchase a partial gallon of paint** Display,withappropriateoutputlabels,thetotalsquarefeettobepainted, the number of gallons of paint needed and the total cost of the paint Askifasecondestimateneedstobemade(keepprogramrunninguntiltold to stop) **modulo operator perhaps
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 flowgorithm should perform the following tasks:
-
Declareallrequiredvariables
-
Declareconstantsandinitializethem
-
Promptfortheinputofthefenceheight
-
Promptfortheinputofthefencelength
-
Calculatethetotalsquarefeettobepainted
-
Calculatetherequirednumberofgallonsofpaintrequired,youcannot
purchase a partial gallon of paint**
-
Display,withappropriateoutputlabels,thetotalsquarefeettobepainted, the number of gallons of paint needed and the total cost of the paint
-
Askifasecondestimateneedstobemade(keepprogramrunninguntiltold to stop)
**modulo operator perhaps
Trending now
This is a popular solution!
Step by step
Solved in 3 steps