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

Which of the following statements does not accurately describe Talcott Parsons’ understanding of the “sick role”? Illness is more than a biological or psycholog
French help please questions listed
what is the solution to the given system of equations y=4x-28 y=1.5x-18
The Mexican war helped the United States to gain control of new western lands and
Which of the following statements is NOT a correct assumption of the classicalmodel of an ideal gas?A. The molecules are in random motion.B. The volume of the m
Question 4(Multiple Choice Worth 3 points) (American Money LO 2 HC) A marketing company makes the following statements in a television commercial about adverti
What types of volcanoes are formed at spreading centers
that was reason why he came late. ''why he came late'' clause is? adverb] [adjective] [noun] [non of these] plzz rply me fast
Which of the following ecosystem changes would impact this population of bluebirds the most?
what is the slope of the line passing through the points (4,-2) and (-5,4)?