Question
In C++ A travel agency Travel-a-lot wants you to write a program to sell travel packages to its customers. This travel agency has packages that
In C++
A travel agency Travel-a-lot wants you to write a program to sell travel packages to its customers. This travel agency has packages that go to three destinations: Paris, New York and Hong Kong. To go to Paris and Hong Kong there is only an air transportation option, but to go to NY people can choose to use ground or air transportation. In addition to choosing the destination and the type of transportation, customers can also choose what kind of hotel they want to use, the options range from a 2 stars hotel to a 5 stars hotel. Another choice the customer has is whether he wants a VIP treatment or not, however, customers that choose 5 stars hotel have their VIP treatment included in the hotel price.
The costs of the packages are as follow: Base package:
Air fare
Hotel selection, the hotel selection is a factor, that increases or decreases the value of the whole package.
Hotel selection factor:
VIP treatment, customers can select to have VIP treatment, this option adds a 20% to the total cost of the package once destination, transportation and hotel have been selected. When customers select to go to a five stars hotel, the VIP treatment is already included and not optional, so, for these customers there is no 20% increase.
The travel agency owner asks you to make this program. The idea is that the program requires the following information:
Number of people traveling
Destination (Paris, NY, HK)
Transportation method (Only for NY since Paris and HK are defaulted to Air)
Hotel Stars
VIP Treatment (Only for 2,3 and 4 stars hotel, it is default to 5 stars hotels)
The program then should print out a receipt showing:
The number of people
The destination
The transportation method
The hotel selection
Whether VIP treatment is selected
The subtotal per person
The subtotal
The tax for Seattle
The grand total
The program should run as long as the user wants to create a new package. When the user decides to close the store, the program should print a summary of the day:
Total number of travel packages sold
Total number of packages to Paris
Total number of packages to New York
Total number of packages to Hong Kong
Sales grand total
Example:
A customer wants to take his family of 3 to Paris, stay in a 2 stars hotel with VIP treatment. His fee calculation as follows:
Each person needs to pay $1,350.00, for a family of three the grand total would be: $4,050.00
The sales tax would be: $409.05, and the customer needs to pay $4,459.05
This assigment is split into two parts:
Write the code for the travel agency for a single travel package. Only sell one package and do not ask if the user wants to continue, nor give a final summary (you sold only one package).
Finish up the code, enable to program to sell packages continously until the user asks to stop and print the final summary.
Also:
Ask how many children will travel. Give 25% discount to children
Save the receipt into a text file (ask the user for the name of the text file)
Count how many people are traveling to each destination, show in the summary
Propose a credit option for the customer, if accepted, ask for a down payment of the 25% of the grand total and calculate the monthly payment for a 2.05% APR for 2 years.
Actually use colors in your program.
Here is the output:
Paris New York Hong Kong $2,095 $1,000 $575
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started