your data types are all wrong and its a bad idea to input strings using cin, use cin.getline:
Code:
#include <iostream>
#include <iomanip>
using namespace std;
const double RED_RUG = 4.99;
const double GREEN_RUG = 5.99;
const double BLUE_RUG = 6.99;
int main()
{
char customerName[25];
char rugColor;
char paymentMethod;
cout<<setw(20)<<"Welcome to..."<<endl;
cout<<endl;
cout<<setw(40)<<">>>Toupay's Warehouse<<<<"<<endl;
cout<<endl;
cout<<setw(35)<<"The Best in rugs"<<endl;
cout<<endl;
cout<<"If you enter the customers name, type of rug purchase,"<<endl;
cout<<"room dimesions, and type of payment, this program"<<endl;
cout<<"will calculate and print a bill to the screen"<<endl;
cout<<"Please enter the customers name: "<<endl;
cin.getline(customerName,25);
cout<<"Please enter rug color (R)ed (B)lue (G)reen: "<<endl;
cin>>rugColor;
cout<<endl;
cout<<"Please enter the method of payment:"<<endl;
cout<<"(C)ash (Z)ippy or (O)ther"<<endl;
cin>>paymentMethod;
cout<<endl;
return 0;
}
-LC