Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedimage text in transcribed

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) 1-3 2 days 'A' 700 4% 4 days 'B' 1200 6% 6 days 'C' 1800 8% 4-6 2 days 'D' 650 5% 4 days 'E' 1100 7% 6 days 'F' 1700 9% 7-9 2 days 'G' 600 6% 4 days 'H' 1000 8% 6 days T 1600 10% Samples of Input and Output 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Database Systems With Internet And Java Applications

Authors: Greg Riccardi

1st Edition

020161247X, 978-0201612479

More Books

Students also viewed these Databases questions

Question

6. Conduct a cost-benefit analysis for a training program.

Answered: 1 week ago