I have tried on another site to get some input by did not get any help so I am going to try here. I have wrote this for my class and was wondering if there were any additions you could suggest me to improve the working of it.....Beginner here as you can prob tell by the difficulty of this code. Thanks
Code:
#include <iostream>
using namespace std;
int main()
{
cout <<"Thankyou for using CSE 1284's paint estimator. ";
cout << "\n\nPlease enter following numbers in feet. ";
double roomWidth;
double roomLength;
double roomHeight;
cout << "\nHeight of the room: ";
cin >> roomHeight;
cout << "Width of the room: ";
cin >> roomWidth;
cout << "Length of the room: ";
cin >> roomLength;
double windowHeight;
double windowWidth;
cout << "Height of the window: ";
cin >> windowHeight;
cout << "Width of the window: ";
cin >> windowWidth;
double doorHeight;
double doorWidth;
cout << "Height of the door: ";
cin >> doorHeight;
cout << "Width of the door: ";
cin >> doorWidth;
double doorBoth = doorHeight * doorWidth;
double windowBoth = windowHeight * windowWidth;
double roomAll = roomWidth * roomHeight;
double roomA = roomHeight * roomLength;
double roomB = (roomAll + roomA) * 2;
double gallons = (roomB - (doorBoth + windowBoth)) / 350;
double coat;
cout <<"\nHow many coats of paint will be needed? " ;
cin >> coat;
double exactGallon = coat * gallons;
cout << "\n\n\n " <<exactGallon << " are needed to paint the room with " << coat << " coats. ";
cout << "\n\n ";
return 0;
}