I was given an assignment where i have to calculate and aoutput the ocst of airline tickets for different classes (business class, coach class, first class). Output the price from different funtions.
Here is what I have.....
int main ()
{
double firstClass, coachClass, businessClass;
cout<<"Enter the price of coach class."<<endl;
cin>>coachClass;
businessClass = coachClass+200;
firstClass = businessClass+500;
return 0;
}
void firstClass, coachClass, businessClass;
int businessClass ()
{
cout<<"The price of business class is "<<businessClass<<endl;
return 0;
}
void firstClass, coachClass, businessClass;
int firstClass ()
{
cout<<"The price of first class is "<<firstClass<<endl;
return 0;
}