Well, this is my first time asking for help because I'm not sure what to do. Pretty much need help on formatting, how to choose from 1 of 4 package options (good,better,best,excellent) and I'm sure I have syntax errors. Any help would be greatly appreciated.
#include <iostream>
#include <iomanip>
#include <conio.h>
usingnamespace std;
int main()
{
int rooms;
int length;
int width;
float carpetCost;
float carpetPrice;
int SQYRD = 9;
int INSTALL = 5;
int GOOD = 3;
int BETTER = 4;
int BEST = 5;
int EXCELLENT = 7;
cout << "How many rooms will you be carpeting?"; cin >> rooms;
for(int x = 0; x < rooms; x++)
cout << "\nWhat is the length of room 1(in feet)?"; cin >> length;
cout << "\nWhat is the width of room 1(in feet)?"; cin >> width;
cout << "\nWhat si the price of carpeting?"; cin >> carpetPrice;
int squareFeet = length * width;
// not sure how to round squareyards up with ceil or something else
int squareYards = ceil(squareFeet/SQYRD);
int installation = INSTALL * squareYards;
int padCost = GOOD * squareYards;
carpetCost = carpetPrice * squareYards;
float totalCost = installation + padCost + carpetCost;
cout << endl;
cout << "Padding choces";
cout << "\n 1. Good-$3 per yard -[1-3yr Warranty]";
cout << "\n 2. Better-$4 per yard -[3-5 yr Warranty]";
cout << "\n 3. Best- $5 per yard-[5-10 yr Warranty]";
cout << "\n 4. Excellent-$7 per yard-[10-20 yr Warranty]";
// I need to choose one padding option based off the above but not sure how
cout << "\n Select a padding option";
cout << "\n Enter price of carpeting per sq yd of room 1: ";
cout << "\n Yards required = ", squareYards;
cout << "\n Installation = ", installation;
cout << "\n Padding cost = ", padCost;
cout << "\n Carpet cost = ", carpetCost;
cout << "\n totalCost = ", totalCost;
_getch();
return 0;
}
edit ** after taking a break and watching princess bride i figured it