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 are the differences between desktop apps and cloud-based apps?
Which of the following statements concerning platelets is INCORRECT. Platelets:
Select the correct answer A developer buys an empty lot to build a small house. What is the area of the lot? A. 323 yd² B. 183 yd²C. 193 yd²D. 171 yd²​
Find a point on the line only.
You want to plant at least 150 bulbs. So far you have planted 45, but the squirrels have dug up and eaten 12. Write and solve an inequality to show the possible
Can someone help with this question?✨
Anyone awake connections academy Semester A Exam Brandi Roberts I need help asap
Help me solve this please!
1. C'est ___ ordinateur portable. 2. Tu aimes ____ sac à dos? 3. C'est ____ chaise 4. Il n'aime pas _____affiche du film 5. C’est _____ dictionnaire de français
Write a letter to the director of Drinking water Corporation requesting him/her to connect your home with water pipelineplease give me a verified answer​