Template below: include #include // Note: Needed for math functions in part (3) #include // For setprecision using namespace std; int main() { double wallHeight; double wallWidth; double wallArea; cout << "Enter wall height (feet):" << endl; cin >> wallHeight; wallWidth = 10.0; // FIXME (1): Prompt user to input wall's width // Calculate and output wall area wallArea = 0.0; // FIXME (1): Calculate the wall's area cout << "Wall area: " << endl; // FIXME (1): Finish the output statement // FIXME (2): Calculate and output the amount of paint in gallons needed to paint the wall // FIXME (3): Calculate and output the number of 1 gallon cans needed to paint the wall, rounded up to nearest integer return 0; }
Template below:
include <iostream>
#include <cmath> // Note: Needed for math functions in part (3)
#include <iomanip> // For setprecision
using namespace std;
int main() {
double wallHeight;
double wallWidth;
double wallArea;
cout << "Enter wall height (feet):" << endl;
cin >> wallHeight;
wallWidth = 10.0; // FIXME (1): Prompt user to input wall's width
// Calculate and output wall area
wallArea = 0.0; // FIXME (1): Calculate the wall's area
cout << "Wall area: " << endl; // FIXME (1): Finish the output statement
// FIXME (2): Calculate and output the amount of paint in gallons needed to paint the wall
// FIXME (3): Calculate and output the number of 1 gallon cans needed to paint the wall, rounded up to nearest integer
return 0;
}
Trending now
This is a popular solution!
Step by step
Solved in 2 steps