#include <iostream>
usingnamespace std;
int main ()
{
double order;
double Package;
int A = 400;
int a = 400;
int B = 500;
int b = 500;
int C = 1000;
int c = 1000;
int D = 1200;
int d = 1200;
double Tpackage;
double counter;
counter = 0;
Tpackage = 0;
cout << "Welcome to Susy Catering "<<endl;
cout << "Food Package's"<<endl;
cout << "Package A ...... $400"<<endl;
cout << "Package B ...... $500"<<endl;
cout << "Package C ...... $1000"<<endl;
cout << "Package D ...... $1200"<<endl;
cout << "Enter how many Orders of Package: ";
cin >> order;
for(counter = 0;counter < order;counter++)
{
cout << "Enter Package :";
cin >> Package;
Tpackage = Tpackage + Package;
}
cout << "Your Total Order cost is : $"<<Tpackage<<endl;
system ("pause");
return 0;
}
You just need to declare Package as a char rather than a double . Then have something like a switch statement to determine the int value that you add on to Tpackage.