Finish the program to compute how many gallons of paint are needed to cover the given square feet of walls. Assume 1 gallon can cover 350.0 square feet. So gallons = the square feet divided by 350.0. If the input is 250.0, the output should be:

Respuesta :

Answer:

Input = 250.0, Output = 0.71

Step-by-step explanation:

We are given a program to compute how many gallons of paint are needed to cover the given square feet of walls.

1 gallon can cover 350.0 square feet.

Program:

[tex]\text{Gallons} = \displaystyle\frac{\text{Square feet}}{350}[/tex]

We have to find the output, when input is 250.0.

That is we have to find the gallon of paint required to cover 250 square feet of walls.

Puting the input:

[tex]\text{Gallons} = \displaystyle\frac{250}{350} = 0.71[/tex]

Thus, 0.71 gallons of paint are needed to cover the 250.0 square feet of walls.

Input = 250.0, Output = 0.71

ACCESS MORE