1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#include <iostream>
#include <string>
using namespace std;
int main()
{
string custName, selection;
int custNumber, floorSize, material, contactSystem;
//please ignore the non-relevant variables, this program has other parts.
cout<<"\nWhat are the dimensions of the floor plan in square feet?\n";
cin>>floorSize;
cout<<"\nGreat, with this information we can now help you determine \n"
"a general price for the room in mind.\n";
cout<<"\nWhat kind of flooring are you interested in:\nPlease select 1-4\n";
cout<<"Wood _______ 1\nVinyl ______ 2\nSlate ______ 3\nConcrete ___ 4\n";
cin>>material;
cin.ignore();
if (material == 1)
cout<<"\nAt a median rate of $1.75 a sqft, "
"\nWood flooring would cost, on average, $" <<1.75*floorSize<<
" for a floor plan of "<<floorSize<<"sqft.";
else if (material == 2)
cout<<"\nAt a median rate of $0.95 a sqft, "
"\nVinyl flooring would cost, on average, $"<<.95*floorSize<<
" for a floor plan of "<<floorSize<<"sqft.";
else if (material == 3)
cout<<"\nAt a median rate of $2.35 a sqft, "
"\nSlate flooring would cost, on average, $"<<2.35*floorSize<<
" for a floor plan of "<<floorSize<<"sqft.";
else if (material == 4)
cout<<"\nAt a median rate of $2.13 a sqft, "
"\nConcrete flooring would cost, on average, $"<<2.13*floorSize<<
" for a floor plan of "<<floorSize<<"sqft.\n";
cout<<"\n\nThank you for using our quick quote system, to try a different flooring option, "
"please select 1 or select 2 to exit.\n";
cin>>selection;
|