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

Describe the overall tone of the poem "The Road Not Taken" and explain how the author's specific word choice contributes to this tone. How is this tone reflecte
distributive property 5(2x + 5)
One economic impact that the mit'a system had on Europe
2. Which of the following Allied invasions had the code name of D-Day? A. Japan B. Italy C. Nazi-Occupied Europe D. North Africa
Match each vocabulary word or words to the correct sentence. 1. Start the car. 2. Go slowly. 3. Replace the brakes. 4. Be careful. a. Lucía, ten cuidado c
At Middle school ,60% of the 800 students participate in music. How many students participate in music.???
Describe the conflict between Andrew Johnson and Congress.
.Which sentence uses parallel structure? (1 Point) Marrying Major Boundy meant leaving her family and traveling all over the world. Marrying Major Boundy meant
Read the excerpt from It's Our World, Too!: Young People Who Are Making a Difference. When they entered the board's meeting room, Neto was terrified. They were
4. Which organisms will only produce uniform offspring?