heey guys.. i'm trying to run this pro
but i have one error.. can someone check it please.
#include <iostream>
#include<cstdlib>
void JOTAKU_LOGO ();
//This function calls the flight agency's Logo.
void ABOUT_JOTAKUAIR ();
//This function displays a briefe history and information about J-Otaku Air.
double DOLLAR_TO_YEN (double dollar_Z);
//This function converts values from Dollar to Yen.
double DOLLAR_TO_Yuan (double dollar_Z);
//This function converts values from Dollar to Yuan (Chinese Yuan Renminbi).
double DOLLAR_TO_SINGAPORE_DOLLARS (double dollar_Z);
//This function converts values from Dollar to Singapore Dollars.
double DOLLAR_TO_PESO (double dollar_Z);
//This function converts values from Dollar to Phil.Peso.
using namespace std;
int main ()
{
//Declarations:
int num,travel_YN,num_destination,stat_pk,asia_pk,dom_destination,numb_seats,faq_choice,i;
long int contact_us [4]={7774332,7774344,7774487,7770988};
double dl_2_yn,tkt_cost,yen_tkt_cost,crvrtd_dl,convert_PS,dl_2_CNY;
char pick_YN,convert_YN,Passenger_name,faq_YN,AB;
//Magic formula:
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(4);
//The main loop:
do
{
//call logo funcion.
JOTAKU_LOGO ();
cout<<"Welcome to J-Otaku-Air travel agency."<<endl;
cout<<"Before we get stated, Please enter your name: ";
cin >> Passenger_name;
do {
cin.get(Passenger_name);
cout << Passenger_name;
} while (Passenger_name != '\n');
cout<<"Hello "<<Passenger_name<<" and welcome to J-Otaku-Air travel agency."<<endl
<<"Please choose a number from the following menu, then press enter to "
<<"move to the desired page."<<endl<<endl
<<"1. About J-Otaku-Air"<<endl
<<"2. Reservations"<<endl
<<"3. Currency Converter"<<endl
<<"4. Budget Travels & Special Offers"<<endl
<<"5. Frequently asked questions"<<endl
<<"6. Contact us"<<endl
<<"* Press 0 to exit"<<endl<<endl;
cin>>num;
cout<<endl;
switch (num)
{
case 0:
cout << "End of program"<<endl;
break;
//first case of the main menu!
case 1:
JOTAKU_LOGO ();
cout<<endl<<"1. About J-Otaku-Air"<<endl;
ABOUT_JOTAKUAIR ();
break;
case 2: //second case of the mian menu!
cout << "2. Reservations:"<<endl
<<endl
<< "Hello and welcome to the reservation area."<<endl
<< "Here you can choose your desired travel location and book a flight directly."<<endl
<<endl;
cout << "Do you intend on traveling internationally? (Y/N)\a"<<endl; /* Note that \a peeps a sound!*/
cin >>travel_YN;
if ((travel_YN=='N')|| (travel_YN=='n'))
//domestically:
cout << "You chose to travel domestically,"<<endl
<< "Please choose a destination from the following list:"<<endl;
cout << "1.Hiroshima"<<endl;
cout << "2.Nagasaki"<<endl;
cout << "3.Osaka"<<endl;
cout << "4.Yokohama"<<endl;
cout << "0 to exit this menu."<<endl;
cin >> dom_destination;
switch (dom_destination)
do {
case 1:
int numb_seats,Hiroshima_tkt;
char convert_YN,pick_YN;
cout << "You chose Hiroshima, is that correct? (Y/N)\a"<<endl;
cin >> pick_YN;
if ((pick_YN=='Y') || (pick_YN=='y'))
{
cout << "The price of each seat from Tokyo to Hiroshima costs 200 Dollars"<<endl;
cout << "Would you like to convert that amount into Yen?(Y/N)\a"<<endl;
cin >> convert_YN;
if ((convert_YN=='Y') || (convert_YN=='y'))
{
//convertion function call
cout << "Please enter the value in Dollars that you want to convert to Yen"<<endl;
cin >> dl_2_yn;
crvrtd_dl = DOLLAR_TO_YEN (dl_2_yn);
cout << dl_2_yn << "$ = " <<crvrtd_dl<< " Yen "<<endl;
}
else
{
cout << "How many seats would you like to reserve?"<<endl;
cin >> numb_seats;
cout << "You have booked "<<numb_seats<< " seats."<<endl;
tkt_cost=200*numb_seats;
cout << "The total cost of your ticket(s) will be: "<<tkt_cost<<"$"<<endl;
yen_tkt_cost=tkt_cost*95.1384264;
cout << "which is "<<yen_tkt_cost<<" Yen."<<endl;
cout << "Dear, "<<Passenger_name<<endl;
cout << "You have booked a flight to Hiroshima."<<endl;
cout << "Please visit your nearest travel agency to confirm your reservation."<<endl;
cout << "Also, keep in mind that this ticket is only valade"<<endl;
cout << "for 3 months from the time of purchase."<<endl;
break;
}
}
case 2:
cout << "You chose Nagasaki, is that correct? (Y/N)\a"<<endl;
cin >> pick_YN;
if ((pick_YN=='Y') || (pick_YN=='y'))
//NO BRACE HERE>> when i put it and close it it get me an error :S
cout << "The price of each seat from Tokyo to Nagasaki costs 200 Dollars"<<endl;
cout << "Would you like to convert that amount into Yen?(Y/N)\a"<<endl;
cin >> convert_YN;
if ((convert_YN=='Y') || (convert_YN=='y'))
{
//convertion function call
cout << "Please enter the value in Dollars that you want to convert to Yen"<<endl;
cin >> dl_2_yn;
crvrtd_dl = DOLLAR_TO_YEN (dl_2_yn);
cout << dl_2_yn << "$ = " <<crvrtd_dl<< " Yen "<<endl;
}
else
{
cout << "How many seats would you like to reserve?"<<endl;
cin >> numb_seats;
cout << "You have booked "<<numb_seats<< " seats."<<endl;
tkt_cost=200*numb_seats;
cout << "The total cost of your ticket(s) will be: "<<tkt_cost<<"$"<<endl;
yen_tkt_cost=tkt_cost*95.1384264;
cout << "which is "<<yen_tkt_cost<<" Yen."<<endl;
cout << "Dear, "<<Passenger_name<<endl;
cout << "You have booked a flight to Nagasaki."<<endl;
cout << "Please visit your nearest travel agency to confirm your reservation."<<endl;
cout << "Also, keep in mind that this ticket is only valade"<<endl;
cout << "for 3 monthes from the time of purchase."<<endl;
}
break;
}
break;
case 3:
{
cout << "You chose Osaka, is that correct? (Y/N)\a"<<endl;
cin >> pick_YN;
if ((pick_YN=='Y') || (pick_YN=='y'))
{
cout << "The price of each seat from Tokyo to Osaka costs 200 Dollars"<<endl;
cout << "Would you like to convert that amount into Yen?(Y/N)\a"<<endl;
cin >> convert_YN;
if ((convert_YN=='Y') || (convert_YN=='y'))
{
//convertion function call
cout << "Please enter the value in Dollars that you want to convert to Yen"<<endl;
cin >> dl_2_yn;
crvrtd_dl = DOLLAR_TO_YEN (dl_2_yn);
cout << dl_2_yn << "$ = " <<crvrtd_dl<< " Yen "<<endl;
}
else
{
cout << "How many seats would you like to reserve?"<<endl;
cin >> numb_seats;
cout << "You have booked "<<numb_seats<< " seats."<<endl;
tkt_cost=200*numb_seats;
cout << "The total cost of your ticket(s) will be: "<<tkt_cost<<"$"<<endl;
yen_tkt_cost=tkt_cost*95.1384264;
cout << "which is "<<yen_tkt_cost<<" Yen."<<endl;
cout << "Dear, "<<Passenger_name<<endl;
cout << "You have booked a flight to Osaka."<<endl;
cout << "Please visit your nearest travel agency to confirm your reservation."<<endl;
cout << "Also, keep in mind that this ticket is only valade"<<endl;
cout << "for 3 monthes from the time of purchase."<<endl;
}
break;
}
}
case 4:
{
cout << "You chose Yokohama, is that correct? (Y/N)\a"<<endl;
cin >> pick_YN;
if ((pick_YN=='Y') || (pick_YN=='y'))
{
cout << "The price of each seat from Tokyo to Yokohama costs 200 Dollars"<<endl;
cout << "Would you like to convert that amount into Yen?(Y/N)\a"<<endl;
cin >> convert_YN;
if ((convert_YN=='Y') || (convert_YN=='y'))
{
//convertion function call
cout << "Please enter the value in Dollars that you want to convert to Yen"<<endl;
cin >> dl_2_yn;
crvrtd_dl = DOLLAR_TO_YEN (dl_2_yn);
cout << dl_2_yn << "$ = " <<crvrtd_dl<< " Yen "<<endl;
}
else
{
cout << "How many seats would you like to reserve?"<<endl;
cin >> numb_seats;
cout << "You have booked "<<numb_seats<< " seats."<<endl;
tkt_cost=200*numb_seats;
cout << "The total cost of your ticket(s) will be: "<<tkt_cost<<"$"<<endl;
yen_tkt_cost=tkt_cost*95.1384264;
cout << "which is "<<yen_tkt_cost<<" Yen."<<endl;
cout << "Dear, "<<Passenger_name<<endl;
cout << "You have booked a flight to Yokohama."<<endl;
cout << "Please visit your nearest travel agency to confirm your reservation."<<endl;
cout << "Also, keep in mind that this ticket is only valade"<<endl;
cout << "for 3 monthes from the time of purchase."<<endl;
break;
}
}
break;
}
//internationally:
cout << "Please choose a destination from the following list:"<<endl
<<endl;
do {
cout << "1. America"<<endl
<< "2. Asia"<<endl
<< "3. Australia"<<endl
<< "4. Europe"<<endl
<< "press 0 to exit this menu."<<endl;
cin >>num_destination;
}while (num_destination!=0);
switch (num_destination)
{
case 1:
cout << "Please choose the state you would like to visit:"<<endl
<< "1. California"<<endl
<< "2. Florida"<<endl
<< "3. New York"<<endl;
cin >> stat_pk;
if (stat_pk==1)
{
cout << "You chose California,America. Is that correct? (Y/N)\a"<<endl;
cin >> pick_YN;
if ((pick_YN=='Y') || (pick_YN=='y'))
{
cout << "Round trip from Tokyo to California,America 3500$ per ticket."<<endl;
cout << "Would you like to convert that amount into Yen?(Y/N)\a"<<endl;
cin >> convert_YN;
if ((convert_YN=='Y') || (convert_YN=='y'))
{
//convertion function call
cout << "Please enter the value in Dollars that you want to convert to Yen"<<endl;
cin >> dl_2_yn;
crvrtd_dl = DOLLAR_TO_YEN (dl_2_yn);
cout << dl_2_yn << "$ = " <<crvrtd_dl<< " Yen "<<endl;
}
}
else
{
cout << "How many seats would you like to reserve?"<<endl;
cin >> numb_seats;
cout << "You have booked "<<numb_seats<< " seats."<<endl;
tkt_cost=3500*numb_seats;
cout << "The total cost of your ticket(s) will be: "<<tkt_cost<<"$"<<endl;
yen_tkt_cost=tkt_cost*95.1384264;
cout << "which is "<<yen_tkt_cost<<" Yen."<<endl;
cout << "Dear, "<<Passenger_name<<endl;
cout << "You have booked a flight to California,America."<<endl;
cout << "Please visit your nearest travel agency to confirm your reservation."<<endl;
cout << "Also, keep in mind that this ticket is only valade"<<endl;
cout << "for 3 monthes from the time of purchase."<<endl;
}
}
if (stat_pk==2)
{
cout << "You chose Florida,America. Is that correct? (Y/N)\a"<<endl;
cin >> pick_YN;
if ((pick_YN=='Y') || (pick_YN=='y'))
{
cout << "Round trip from Tokyo to Florida,America 2500$ per ticket."<<endl;
cout << "Would you like to convert that amount into Yen?(Y/N)\a"<<endl;
cin >> convert_YN;
if ((convert_YN=='Y') || (convert_YN=='y'))
{
//convertion function call
cout << "Please enter the value in Dollars that you want to convert to Yen"<<endl;
cin >> dl_2_yn;
crvrtd_dl = DOLLAR_TO_YEN (dl_2_yn);
cout << dl_2_yn << "$ = " <<crvrtd_dl<< " Yen "<<endl;
}
else
{
cout << "How many seats would you like to reserve?"<<endl;
cin >> numb_seats;
cout << "You have booked "<<numb_seats<< " seats."<<endl;
tkt_cost=2500*numb_seats;
cout << "The total cost of your ticket(s) will be: "<<tkt_cost<<"$"<<endl;
yen_tkt_cost=tkt_cost*95.1384264;
cout << "which is "<<yen_tkt_cost<<" Yen."<<endl;
cout << "Dear, "<<Passenger_name<<endl;
cout << "You have booked a flight to Florida,America."<<endl;
cout << "Please visit your nearest travel agency to confirm your reservation."<<endl;
cout << "Also, keep in mind that this ticket is only valade"<<endl;
cout << "for 3 monthes from the time of purchase."<<endl;
}
}
if (stat_pk==3)
{
cout << "You chose New York,America. Is that correct? (Y/N)\a"<<endl;
cin >> pick_YN;
if ((pick_YN=='Y') || (pick_YN=='y'))
{
cout << "Round trip from Tokyo to New York,America 2500$ per ticket."<<endl;
cout << "Would you like to convert that amount into Yen?(Y/N)\a"<<endl;
cin >> convert_YN;
if ((convert_YN=='Y') || (convert_YN=='y'))
{
//convertion function call
cout << "Please enter the value in Dollars that you want to convert to Yen"<<endl;
cin >> dl_2_yn;
crvrtd_dl = DOLLAR_TO_YEN (dl_2_yn);
cout << dl_2_yn << "$ = " <<crvrtd_dl<< " Yen "<<endl;
}
else
{
cout << "How many seats would you like to reserve?"<<endl;
cin >> numb_seats;
cout << "You have booked "<<numb_seats<< " seats."<<endl;
tkt_cost=1500*numb_seats;
cout << "The total cost of your ticket(s) will be: "<<tkt_cost<<"$"<<endl;
yen_tkt_cost=tkt_cost*95.1384264;
cout << "which is "<<yen_tkt_cost<<" Yen."<<endl;
cout << "Dear, "<<Passenger_name<<endl;
cout << "You have booked a flight to New York,America."<<endl;
cout << "Please visit your nearest travel agency to confirm your reservation."<<endl;
cout << "Also, keep in mind that this ticket is only valade"<<endl;
cout << "for 3 monthes from the time of purchase."<<endl;
}
}
break;
case 2:
cout << "Please choose your Required destanation in Asia:"<<endl
<< "1.Beijing,China"<<endl
<< "2.Singapore"<<endl
<< "3.Manila,Philippines"<<endl;
cin >> asia_pk;
if (asia_pk==1)
{
cout << "You chose Beijing,China. Is that correct? (Y/N)\a"<<endl;
cin >> pick_YN;
if ((pick_YN=='Y') || (pick_YN=='y'))
{
cout << "Round trip from Tokyo to Beijing,China 600$ per ticket."<<endl;
cout << "Would you like to convert that amount into Yuan (currency in China)?(Y/N)\a"<<endl;
cin >> convert_YN;
if ((convert_YN=='Y') || (convert_YN=='y'))
{
//call chinese currency function here
//OK call it then?! u didn't call it and when i did i got a lot of errors dunnu why!
cout << "Please enter the value in Dollars that you want to convert to Yuan"<<endl;
cout << "(Chinese Yuan Renminbi)"<<endl;
cin >> dl_2_CNY;
crvrtd_dl = DOLLAR_TO_Yuan (dl_2_CNY);
cout << dl_2_CNY << "$ = " <<crvrtd_dl<< " Yuan "<<endl;
}
else
{
cout << "How many seats would you like to reserve?"<<endl;
cin >> numb_seats;
cout << "You have booked "<<numb_seats<< " seats."<<endl;
tkt_cost=2500*numb_seats;
cout << "The total cost of your ticket(s) will be: "<<tkt_cost<<"$"<<endl;
yen_tkt_cost=tkt_cost*95.1384264;
cout << "which is "<<yen_tkt_cost<<" Yen."<<endl;
cout << "Dear, "<<Passenger_name<<endl;
cout << "You have booked a flight to Florida,America."<<endl;
cout << "Please visit your nearest travel agency to confirm your reservation."<<endl;
cout << "Also, keep in mind that this ticket is only valade"<<endl;
cout << "for 3 monthes from the time of purchase."<<endl;
}
}
}
else if (asia_pk==2)
{
cout << "You chose Singapore. Is that correct? (Y/N)\a"<<endl;
cin >> pick_YN;
if ((pick_YN=='Y') || (pick_YN=='y'))
{
cout << "Round trip from Tokyo to Singapore 500$ per ticket."<<endl;
cout << "Would you like to convert that amount into Yuan (currency in China)?(Y/N)\a"<<endl;
cin >> convert_YN;
if ((convert_YN=='Y') || (convert_YN=='y'))
{
double dl_2_sing,crvrtd_dl;
cout << "Please enter the value in Dollars that you want to convert to Singapore Dollars:"<<endl;
cin >> dl_2_sing;
crvrtd_dl = DOLLAR_TO_SINGAPORE_DOLLARS (dl_2_sing);
cout << dl_2_sing << "$ = " <<crvrtd_dl<< " SD."<<endl;
cout << "Please enter the value in Dollars that you want to convert to"<<endl;
cout << "Singapore Dollars"<<endl;
cin >> dl_2_CNY;
crvrtd_dl = DOLLAR_TO_Yuan (dl_2_CNY);
cout << dl_2_CNY << "$ = " <<crvrtd_dl<< " Yuan "<<endl;
}
else
{
cout << "How many seats would you like to reserve?"<<endl;
cin >> numb_seats;
cout << "You have booked "<<numb_seats<< " seats."<<endl;
tkt_cost=500*numb_seats;
cout << "The total cost of your ticket(s) will be: "<<tkt_cost<<"$"<<endl;
yen_tkt_cost=tkt_cost*2.5683;
cout << "which is "<<yen_tkt_cost<<" Yen."<<endl;
cout << "Dear, "<<Passenger_name<<endl;
cout << "You have booked a flight to Singapore."<<endl;
cout << "Please visit your nearest travel agency to confirm your reservation."<<endl;
cout << "Also, keep in mind that this ticket is only valade"<<endl;
cout << "for 3 monthes from the time of purchase."<<endl;
}
}
}
else if (asia_pk==3)
{
cout << "You chose Manila,Philppines . Is that correct? (Y/N)\a"<<endl;
cin >> pick_YN;
if ((pick_YN=='Y') || (pick_YN=='y'))
{
cout << "Round trip from Tokyo to Manila,Philppines 450$ per ticket."<<endl;
cout << "Would you like to convert that amount into Peso (currency in Philppines)?(Y/N)\a"<<endl;
cin >> convert_PS;
if ((convert_YN=='Y') || (convert_YN=='y'))
{
double dl_2_pes,crvrtd_dl;
cout << "Please enter the value in Dollars that you want to convert to Peso:"<<endl;
cin >> dl_2_pes;
crvrtd_dl = DOLLAR_TO_PESO (dl_2_pes);
cout << dl_2_pes << "$ = " <<crvrtd_dl<< " Peso "<<endl;
}
else
{
cout << "How many seats would you like to reserve?"<<endl;
cin >> numb_seats;
cout << "You have booked "<<numb_seats<< " seats."<<endl;
tkt_cost=500*numb_seats;
cout << "The total cost of your ticket(s) will be: "<<tkt_cost<<"$"<<endl;
yen_tkt_cost=tkt_cost*2.5683;
cout << "which is "<<yen_tkt_cost<<" Yen."<<endl;
cout << "Dear, "<<Passenger_name<<endl;
cout << "You have booked a flight to Singapore."<<endl;
cout << "Please visit your nearest travel agency to confirm your reservation."<<endl;
cout << "Also, keep in mind that this ticket is only valade"<<endl;
cout << "for e main m3 monthes from the time of purchase."<<endl;
}
}
}
break;
}
//case 3 of the main menu!
case 3:
int ans_calc;
JOTAKU_LOGO ();
cout<<"3. Currency Converter"<<endl<<endl;
cout << "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl<<endl;
do
{
cout << "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl<<endl;
cout<<"Here is the currency converter area. Please choose from the menu to perform the desired calculations."<<endl;
cout<<"1. From Dollars to Yen."<<endl
<<"2. From Dollars to Yuan."<<endl
<<"3. From Dollar to Singapore Dollars."<<endl
<<"4. From Dollar to Peso."<<endl
<<"Press 00 to exit this menu"<<endl<<endl;
cout << "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl;
cout <<endl;
cin>>ans_calc;
switch (ans_calc)
{
case 1:
cout << "Please enter the value in Dollars that you want to convert to Yen"<<endl;
cin >> dl_2_yn;
crvrtd_dl = DOLLAR_TO_YEN (dl_2_yn);
cout << dl_2_yn << "$ = " <<crvrtd_dl<< " Yen "<<endl;
break;
case 2:
cout << "Please enter the value in Dollars that you want to convert to Yuan."<<endl;
cin >> dl_2_yn;
crvrtd_dl = DOLLAR_TO_Yuan (dl_2_yn);
cout << dl_2_yn << "$ = " <<crvrtd_dl<< " Yuan "<<endl;
break;
case 3:
cout << "Please enter the value in Dollars that you want to convert to Yuan."<<endl;
cin >> dl_2_yn;
crvrtd_dl = DOLLAR_TO_SINGAPORE_DOLLARS (dl_2_yn);
cout << dl_2_yn << "$ = " <<crvrtd_dl<< " Yuan "<<endl;
break;
case 4:
cout << "Please enter the value in Dollars that you want to convert to Yuan."<<endl;
cin >> dl_2_yn;
crvrtd_dl = DOLLAR_TO_PESO (dl_2_yn);
cout << dl_2_yn << "$ = " <<crvrtd_dl<< " Yuan "<<endl;
break;
case 00:
cout<<"Exit the currency menu.";
}
}while (ans_calc!=00);
}while (num_destination!=0);
break;
//case 4 of the main menu:
case 4 :
double bud;
JOTAKU_LOGO ();
cout<<"4. Budget Travels & Special Offers"<<endl<<endl;
cout << "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl;
cout <<endl;
cout<<"Choose from the menu please. (A/B)"
<<"A.Budget Travels"
<<"Special Offers";
cin>> AB;
if (AB=='A' || AB=='a')
{
cout<<"Budget Travels:"<<endl
<<"Dear "<<Passenger_name<<", note that that these budget travels are special for our customers\n"
<<"and passengers only.\n"
<<"The regulations are simple, we offer 3 types of Otaku cards. Silver, Gold and Diamond\n"
<<"For the silver Otaku card, you will get 10 points for each ticket.\n"
<<"For the gold Otaku card, you will get 25 points for each ticket.\n"
<<"For the diamond card, you will get 40 points for each ticket.\n"
<<"Note that with each 1000 points you can win extra tickets or presents from J-Otaku_Air.\n"
<<"Hereby, you will enter the prefarable budget to check wich of the Otaku cards u can have.\n\n"
<<"Please enter your budget in Dollars.\n";
cin>>bud;
if (bud<500)
cout<<"Sorry "<<Passenger_name<<", your budget is very low.\n"
<< "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl<<endl;
if ((bud>=500) && (bud<800))
cout<<"Dear "<<Passenger_name<<", your budget is concedered as the silver Otaku card.\n"
<<"You can get your card from the nearest J-Otaku-Air agency."<<endl
<< "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl<<endl;
if ((bud>=800) && (bud<1300))
cout<<"Dear "<<Passenger_name<<", your budget is concedered as the gold Otaku card.\n"
<<"You can get your card from the nearest J-Otaku-Air agency."<<endl
<< "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl<<endl;
if (bud>=1300)
cout<<"Dear "<<Passenger_name<<", your budget is concedered as the gold Otaku card.\n"
<<"You can get your card from the nearest J-Otaku-Air agency."<<endl
<< "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl<<endl;
}
if (AB=='B' || AB=='b')
{
cout<<"Special Offers:"<<endl;
cout<<"Dear "<<Passenger_name<<", Our offers are extremly great and created to benefit the passenger.\n"
<<"Please note that our offers are performed at the J-Otaku-Air travel agency , not through the program.\n"
<<"Be adviced of the following current offers starting from \"June\" until \"July\" :\n"
<<"* Buy 6 tickets and get another one free."<<endl
<<"* Buy 10 tickets and get 2 more free tickets."<<endl
<<"* Buy 15 ticket and you will be getting 10% discount from the whole amount."<<endl
<<"* Infants and kids under 3 years can get aboard our flights with no ticket."<<endl<<endl
<< "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl<<endl;
}
//case 5 of the main menu:
case 5:
JOTAKU_LOGO ();
cout<<"5. Frequently asked questions"<<endl<<endl;
cout << "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl<<endl;
do
{
cout << "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl;
cout <<endl;
cout << "Welcome to the Frequently Asked Questions (FAQ) area."<<endl;
cout << "Bellow is a list of frequently asked questions."<<endl;
cout << "Choose the number of the required quest then press Enter to show the answer."<<endl;
cout <<endl;
cout <<endl;
cout << "Q1. Should I reconfirm my flights, hotel or car reservations?"<<endl;
cout << "Q2.What happens if the airline has changed my flights?"<<endl;
cout << "Q3.Do you deliver tickets to other countries?"<<endl;
cout << "Q4.Do you deliver tickets to a hotel/business or alternate place"<<endl;
cout << "other than my home?"<<endl;
cout << "Q5.What if my tickets are lost or stolen?"<<endl;
cout <<endl;
cout << "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl;
cout <<endl;
cout <<endl;
cin >> faq_choice;
cout <<endl;
cout << "Are you sure you want question number "<<faq_choice << " ?(Y/N)"<<endl;
cin >> faq_YN;
if ((faq_YN=='Y') || (faq_YN=='y'))
{
cout<<"Here is the answer."<<endl;
switch (faq_choice)
{
case (1):
cout << "Travelers are advised to contact the airline, hotel or car rental company"<<endl;
cout << "at least 72 hours prior to departure."<<endl;
cout <<endl;
break;
case (2):
cout << "If the airline changed or cancelled your flights, the airline must assist you."<<endl;
cout << "J-Otaku Air did not change the flights. The airline did,"<<endl;
cout << "thus the airline must fix your itinerary and/or ongoing travel."<<endl;
cout <<endl;
break;
case (3):
cout << "Yes, we deliver tickets to other countries."<<endl;
cout << "Delivery is via electronic ticketing for claiming at the airport ticket counter,"<<endl;
cout << "or paper ticket via courier. Our booking engine will advise you as to the form "<<endl;
cout << "of delivery for the flights that you have chosen."<<endl;
cout <<endl;
break;
case (4):
cout << "Yes, we deliver tickets to your hotel/business or office or any alternate address"<<endl;
cout << "where a courier may get signature for delivery of the package. "<<endl;
cout << "Postal office boxes (PO Boxes) are not allowed. "<<endl;
cout <<endl;
break;
case (5):
cout << "If your paper airline tickets are lost or stolen, please contact us or call us immediately."<<endl;
cout << "If your original tickets are not used after a designated period of time-generally 3 to 4 months,"<<endl;
cout << "you will receive credit for the purchase price of the original lost ticket."<<endl;
cout <<endl;
break;
default :
cout << "Error! That was an invalid entry."<<endl;
cout <<endl;
}
}
if ((faq_YN=='N') || (faq_YN=='n'))
{
cout << "If you are not happy with your choice, then please choose another question."<<endl;
cout <<endl;
cout <<endl;
}
} while(faq_choice!=0);
//case 6 of the main menu!
case 6:
JOTAKU_LOGO ();
cout<<"6. Contact us"<<endl<<endl;
cout << "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl<<endl;
cout<<"Dear "<<Passenger_name<<" please don't hesitate calling us on the following numbers for further information."<<endl;
for (i =0;i<4;i++)
cout<<contact_us [i]<<endl;
cout << "\t\t====J-Otaku-Air====J-Otaku-Air====J-Otaku-Air===="<<endl<<endl;
}
}
}while(num!=0);
return 0;
}
void JOTAKU_LOGO ()
{
cout << "\t\t\t ================= "<<endl;
cout << "\t\t\t || || || || "<<endl;
cout << "\t\t\t || || || || "<<endl;
cout << "\t\t\t || || || "<<endl;
cout << "\t\t\t \\ || || "<<endl;
cout << "\t\t\t \\ || "<<endl;
cout << "\t\t\t \\ || "<<endl;
cout << "\t\t\t \\|| J-Otaku-Air "<<endl;
cout <<endl;
cout <<endl;
}
double DOLLAR_TO_YEN (double dollar_Z )
{
double crvrtd_dl;
crvrtd_dl=dollar_Z*95.1384264;
return (crvrtd_dl);
}
void ABOUT_JOTAKUAIR ()
{
cout<<endl
<<"J-Otaku-Air was founded on July 1990."<<endl
<<"Founded by two individuals in an extraordinary partnership."<<endl
<<"Wareef Al-Omair and Fadia Banafe built this company with the goal of helping"<<endl
<<"accommodate the curious nature of people and their need for exploration. "<<endl
<<"Throuh out the years, J-Otaku-Air has been thriving to expand its services and"<<endl;
cout<<"offer the best for their clients. And along their journey their hard work has"<<endl
<<"been rewarded by many establishments."<<endl
<<"In hopes of seeing you in one of our flights."<<endl<<endl
<<"Sincerely,"
<<endl
<<" J-Otaku-Air"
<<"\t\t\t\t Fly Safe, Fly Otaku.."<<endl;
}
double DOLLAR_TO_Yuan (double dollar_Z )
{
double crvrtd_dl;
crvrtd_dl=dollar_Z*6.84310 ;
return (crvrtd_dl);
}
double DOLLAR_TO_SINGAPORE_DOLLARS (double dollar_Z )
{
double crvrtd_dl;
crvrtd_dl=dollar_Z*2.5683;
return (crvrtd_dl);
}
double DOLLAR_TO_PESO (double dollar_Z )
{
double crvrtd_dl;
crvrtd_dl=dollar_Z*47.530000 ;
return (crvrtd_dl);
}
And this is the compiler's message:
1>------ Build started: Project: bla, Configuration: Debug Win32 ------
1>Compiling...
1>fa.cpp
1>c:\users\fofa\documents\visual studio 2005\projects\bla\fa.cpp(188) : error C2059: syntax error : 'break'
1>Build log was saved at "file://c:\Users\fofa\Documents\Visual Studio 2005\Projects\bla\Debug\BuildLog.htm"
1>bla - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
*******Even though the break is in it's right place!