Variables – Painting a wall

// WallPainting.cpp : Defines the entry point for the console application.
//

include

include

using namespace std;

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now

int main() {
double width = 0.0;
double height = 0.0;
double area = 0.0;
const double sqFeetPerGal = 350;

// Get width as user input  cout << "Enter the width of the wall in feet: "; cin >> width;  // Get height as user input cout << "Enter the height of the wall in feet: "; cin >> height;  // Calculate and output area of wall area = (width * height); cout << "Total area to paint in square feet: "      << area << "n";  //Calculate number of gallons of paint int paintNeeded = ceil(area / sqFeetPerGal); cout << "Total number of gallons of paint needed: "      << paintNeeded << "n";  //Calculate total cost of paint double costOfPaint = paintNeeded * 27; cout << "Total cost of paint in dollars is: $"       << costOfPaint << "n";  //Calculate time to paint double timeToPaint = (area / 100); cout << "Total time to paint in hours: "      << timeToPaint << "n";   system("pause"); return 0;

}

 

<h5 style="

"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!":

Get started