Question: undefined In this exercise, you will write a program to compute how many cans of paint are necessary to paint a wall. Begin the program
undefined
In this exercise, you will write a program to compute how many cans of paint are necessary to paint a wall. Begin the program by asking the user to input the height and width of the wall as follows: Enter wall height (feet): Crumber> Erster wall width (feet): Cnumber> Then, use the function CansOfPaint(double height, double width) to compute how many cans of paint are needed to paint this wail. The function returns the number cans of paints needed (integer) Assume that 1 gallon of paint can cover 300 square feet, and each can contains half a gallon of paint. Define these as constants within the function. Use the result returned by the function to print this message to the user: Cans needed:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
