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 is 680,010 in expanded form
how do th location and climate of the United kingdom and russia affect how each country conducts trade
A polygon has an angle sum of 360°, and each angle measures 90°. What is the polygon?
Which cell has a stronger outer covering-a plant cell or an animal cell
$3,254,107 what digit is in the hundred thousands place
What is an ectopic pregnancy
The american value of government by elected representatives of people was first demonstrated by the?
How has the deforestation in haiti altered the climate
What is the standard form for 30 plus 5 plus 2/10.
according to CC, which percentage of americans between the age of 12 and 21 doesn't exercise on a regular basis