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 4 times 1/5 can I have the answer pleas thx
Because of their ability to undergo ______ , viruses can rapidly evolve
Who established the role of the Supreme Court in judicial review? A. George Washington B. Alexander Hamilton C. John Adams D. John Marshall
what is equal fractions to 1/5,
Is total revenue is 3000 cost of goods is 1500 total selling expenses 500 what is the profit for the business
How a scientist might use a karyotype to study genetic disorders?
Which of these is an archipelago nation? Indonesia Vietnam Laos Brunei
The problems in Europe before world war 1 dated back to the Roman Empire. True False
An open class system is based on social mobility that includes a. horizontal mobility. c. intergenerational mobility. b. vertical mobility. d. all of the above
Which verb agrees in number with its subject? Neither the moon nor the stars __________ visible in this fog. A. are B. has been C. is D. was