Question: Solve it as soon as possible please. Classroom SCI 1300 Section 03 ELEMENTS OF PROGRAMMING Prev 0% Umrah and Hal comparty is running a promotion

 Solve it as soon as possible please. Classroom SCI 1300 Section

03 ELEMENTS OF PROGRAMMING Prev 0% Umrah and Hal comparty is running

a promotion for its Umrah packages. It is giving discounts to clients

based on the number of people in each package and the duration

Solve it as soon as possible please.

Classroom SCI 1300 Section 03 ELEMENTS OF PROGRAMMING Prev 0% Umrah and Hal comparty is running a promotion for its Umrah packages. It is giving discounts to clients based on the number of people in each package and the duration of stay in Makkah and Madinah. 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 do "Invalid entry. Please enter a value between 1-6 people only 2. Surly, your program should check the input of the duration of stay within the range 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 21 Duration of stay Package Normal Prie Digoni Number of People in the package GY Section 03 ELEMENTS OF PROGRAMMING 0% Duration of stay Package Normal Price Discount) Number of People in the package (RM per person) 900 1-2 "S 33 1500 5 'N 2300 75, 3-4 850 7 days 14 days 21 days 7 days 14 days 21 days 7 days 14 days 21 days "0 1400 U 2100 83 5-6 800 73 A 1300 Z 2050 Samples of Input and Output Sample 1: Enter number of people: 2 M1 CSCI 1300 Section 03 ELEMENTS OF PROGRAMMING 0% Samples of Input and Output Sample 1: Entertumber of peoples 2 Enter duration of stay: 7 You have selected Package S. You are given a 3% discount on the total initial amount. The total price for each person after discount is RM 873 The total number of people in this package is 2 persons The total amount to be paid for this package after discount is RM 1746 Sunripi 2 Enter number of people: Enter duration of stay: 14 Sample 2: Etter number of people: 4 Enter duration of stay: 14 You have selected Package 0. You are given a 6 % discount on the total initial amount. The total price for each person after discount is RM 1316 The total number of people in this package is 4 persons The total amount to be paid for this package after discount is RM 5264

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Problem Breakdown The goal is to write a C program that Accepts user input for the number of people ... View full answer

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!