Question: write C++ programm Mount Fuji Company is running a promotion for its Tour packages. It is giving discounts to clients based on the number of

 write C++ programm Mount Fuji Company is running a promotion forits Tour packages. It is giving discounts to clients based on the

write C++ programm

Mount Fuji Company is running a promotion for its Tour packages. It is giving discounts to clients based on the number of people in each package and the duration of stay in Fuji Highland Resort Hotel. Using the information given in the following table, write a C++ program that accepts from the users the number of people per package and the duration of stay, to determine and display the type of promotion package, the discount value and the total price for each package after discount. Hint: Use your preferred nested selection to solve this problem. Please notice the following 1. Your program should only accept valid number of people based on the below table. Otherwise, you should display "Invalid entry. Please enter a value between 1-9 people only". 2. Similarly, your program should check the input of the duration of stay within the range given in the table below and display the following message if the input is invalid. "Invalid entry. Duration of stay must be at least 1 and not more than 7". Duration of stay Package Normal Price Discount (%) Number of People in the package (RM per person) 2 days 700 4% 4 days 'B' 1200 6% 6 days 'C' 1800 8% 4-6 2 days 'D' 650 5% 4 days 'E' 1100 7% 'F' 1700 9% 6 days 2 days 7-9 'G' 600 6% 4 days 'H' 1000 8% 6 days T 1600 10% Sample 1: Enter number of people: 2 Enter duration of stay: 4 You have selected Package B. You are given a 6 % discount on the total initial amount. The total price for each person after discount is RM 1128 The total number of people in this package is 2 persons The total amount to be paid for this package after discount is RM 2256 Sample 2: Enter number of people: 5 Enter duration of stay: 6 You have selected Package F. You are given a 9 % discount on the total initial amount. The total price for each person after discount is RM 1547 The total number of people in this package is 5 persons The total amount to be paid for this package after discount is RM 7735

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!