reate a C++ program that allows the user to book a cruise on Royal Caribbean Cruise Lines. The program should begin by offering the user a menu to select a Ship, Location, Stateroom, Drink package and...

1 answer below »
i did the flowchart and ipo. i just do not know how to start the code.


reate a C++ program that allows the user to book a cruise on Royal Caribbean Cruise Lines. The program should begin by offering the user a menu to select a Ship, Location, Stateroom, Drink package and Excursion. Royal Caribbean sails to The Bahamas, Bermuda, The Caribbean, Cuba and The Panama Canal. Royal Caribbean’s Ships are Allure of the Seas, Anthem of the Seas, Harmony of the Seas, Oasis of the Seas, and Symphony of the Seas. Base Prices for Staterooms on the Oasis of the Seas are: Interior ($599pp), Ocean View ($699pp), Balcony ($799pp), Royal Suite Class ($1,999pp) for Mid Deck. Aft Decks are 10% higher and Forward Decks are 10% lower. Because each ship offers different activities than the Oasis, Ship surcharges/discounts are as follows: Anthem of the Seas (+20%); Harmony of the Seas (-10%); Symphony of the Seas (+5%); Allure of the Seas (+15%). Excursions are available for Cultural Sightseeing, Snorkeling and Scuba Diving. Suba Diving costs offer PADI (Professional Association of Diving Instructors) lessons for $599pp (group of 6) which includes gear rental, 4 Open Water Dives, Pool Sessions and Transportation. Private lessons are available for an additional $100. The Symphony of the Seas does not offer Scuba Diving. Cultural Sightseeing costs $150 pp and Snorkeling costs ($100 pp). Drink Packages are $150pp for Alcoholic Drinks, Specialty Coffee and Tea, Soda and Bottled Water; $75pp for Specialty Coffee and Tea, Soda and Bottled Water, $25pp for Soda and Bottled water. Admission to The Bionic Bar – a robot pouring drinks, is included in the Alcoholic Drink package. Users can opt not to have a beverage package. When the user has made selections on all of the above, ask the user for first and last name, address, city, state, zip, credit card type and credit card number. C Print a Summary of all the options and the costs associated with each, as well as the final cost of the entire trip Upload your code, Flowchart, IPO Chart and Sample Program output
Answered Same DayMay 19, 2021

Answer To: reate a C++ program that allows the user to book a cruise on Royal Caribbean Cruise Lines. The...

Aditya answered on May 22 2021
154 Votes
#include
#include
#include
using namespace std;
class booking
{
public:
int userChoice;
string shipName;
string tripLocation;
string stateRoom;
string deckChosen;
string drink;
string scubaDiving = "No";
string culturalSightseeing = "No";
string snorkeling = "No";
string privateLesson = "No";
float drinkPrice;
float totalDrinkPrice;
float roomPrice = 0;
float totalRoomPrice;
float totalShipFare;
float deckPer;
float percent;
float stateFare;
float basicRoomPrice;
float excursionPrice = 0;
float totalExcursionPrice;
int totalNumberOfPeople;
string firstName,lastName,city,state,creditCardType,address;
int zip,creditCardNumber;
booking()
{
}
void showMenu()
{
shipSelection();
selectLocation();
selectStateRoom();
selectDeck();
selectDrink();
excursion();
cout<<""< cout<<"Enter The Total Number of People"< cin>>totalNumberOfPeople;
calulateDrinkCharge();
calculateRoomCharge();
calculateExcursionCharge();
caculateFare();
personaldetails();
printDetails();
}
void shipSelection()
{
cout<<""< cout<<"Please Select From The Below Ships"< while(true)
{
cout<<"Press 1 for Allure of the seas"< cout<<"Press 2 for Anthem of the seas"< cout<<"Press 3 for Harmony of the seas"< cout<<"Press 4 for Oasis of the seas"< cout<<"Press 5 for Symphony of the seas"< cin>>userChoice;
switch(userChoice)
{
case 1:
{
shipName = "Allure of the seas";
percent=15;
return;
}
case 2:
{
shipName ="Anthem of the seas";
percent=20;
return;
}
case 3:
{
shipName ="Harmony of the seas";
percent=-10;
return;
}
case 4:
{
shipName ="Oasis of the seas";
percent=0;
return;
}
case 5:
{
shipName ="Symphony of the seas";
percent=-5;
return;
}
default:
{
cout<<"Enter between 1 to 5"< }
}
}
}
void selectLocation()
{
cout<<""< cout<<"Select from the below locations"< while(true)
{
cout<<"Press 1 for The Bahamas"< cout<<"Press 2 for Bermuda"< cout<<"Press 3 for The Caribbean"< cout<<"Press 4 for Cuba"< cout<<"Press 5 for The Panama Canal"< cin>>userChoice;
switch(userChoice)
{
case 1:
{
tripLocation = "The Bahamas";
return;
}
case 2:
{
tripLocation = "Bermuda";
return;
}
case 3:
{
tripLocation = "The Caribbean";
return;
}
case 4:
{
tripLocation = "Cuba";
return;
}
case 5:
{
tripLocation ="Panama Canal";
return;
}
default:
{
cout<<"Enter between 1 to 5"< }
}
}
}
void selectStateRoom()
{
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here