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

The ratio of the angle measures of a triangle is 1:3:5. Find the angle measures. Then classify the triangle by its angle measures
Who is the fastest of the greek gods
To get stronger, you should use a. many repetitions with maximum weight. b. a few repetitions with minimum weight. c. a few repetitions with maximum weight.
What ultimately motivates brutus to join the conspiracy
All eukaryotic cells have a cytoskeleton, including plant cells, which have cell walls as well. What does the cytoskeleton in a plant cell do that the cell wall
The commander exercised his authority. a. Transitive b. Intransitive
How much money, in dollars, does one mole of nickels represent? If this amount of money were evenly distributed among the entire world's population (about 7.1 b
What is one role that lipids play in the body
Why did the Athenians and Spartans fight the Peloponnesian War and who won?
The gas tank of a riding mower holds 5 liters of gas how many 5 liter gas tanks can you fill from a full 20 liter gas tank