princessjmariep91tjo princessjmariep91tjo
  • 21-05-2018
  • Computers and Technology
contestada

350 square feet requires 1 gallon of paint. Assign gallons_paint with the amount of paint required for wall_area. Sample output for the given program:
250.0 square feet wall will need:
0.714285714286 gallons of paint

Respuesta :

tonb
tonb tonb
  • 21-05-2018
Here's a solution in node.js. Can be easily transcribed to other languages:

var paint_per_sqf = 1/350;
var wall_area = 250.0;
var gallons_paint = wall_area * paint_per_sqf;

console.log(wall_area.toFixed(1) + " square feet wall will need:");
console.log(gallons_paint.toFixed(12) + " gallons of paint");


Answer Link

Otras preguntas

What form of energy provides power for a gas stove?A.nuclear energyB.electrical energyC.chemical energyD.sound energyCan you explain the answer for me ?
explain how the rabbit depend on energy from the sun.
what is 1/10 of 400.00
is -.65 a rational or irrational number and why?
A coin is tossed and a spinner with four equal sections numbered 1 through 4 is spun.  Can someone explain to me how to do this?What is the probability that th
compare area to perimeter
Persuasive exposition writing:Endangered Animals Need Our Protection.
How many packages will 5 1/2 pounds of raisins fill if each package holds 9 ounces
One reason common names are not useful to biologists is that they......A. are in Latin.B. can apply to more than one animal.C. are too long.D. require the use o
Persuasive exposition writing:Endangered Animals Need Our Protection.