Question: Class activity description: Create a C++ code that will calculate the total price for purchasing some tickets. The program has the following requirement: The user

Class activity description: Create a

C++

code that will calculate the total price for purchasing some tickets. The program has the following requirement:\ The user can earn points depending on the total price of the tickets.\ Purchase of 1 to 5 tickets:\ 10 points for the total purchase between

$130

and

$389

\ 13 points for the total purchase greater than

$390

\ Purchase of 6 to 20 tickets:\ 15 points for the total purchase between

$550

and

$1099

.\ 20 points for the total purchase between

$1100

and

$1649

.\ 30 points for the total purchase greater than

$1650

\ User can only purchase between 1 and 20 tickets.\ The ticket's price for 1 to 5 tickets purchase is

$130

per ticket.\ The ticket's price for 6 to 20 tickets purchase is

$110

per ticket.\ \\\\table[[Number of tickets,price,Points],[1 to 5,

$130

per ticket,\\\\table[[- 10 points for the total purchase between

$130
 Class activity description: Create a C++ code that will calculate the

Class activity description: Create a C++ code that will calculate the total price for purchasing some tickets. The program has the following requirement: - The user can earn points depending on the total price of the tickets. - Purchase of 1 to 5 tickets: - 10 points for the total purchase between $130 and $389 - 13 points for the total purchase greater than $390 - Purchase of 6 to 20 tickets: - 15 points for the total purchase between $550 and $1099. - 20 points for the total purchase between $1100 and $1649. - 30 points for the total purchase greater than $1650 - User can only purchase between 1 and 20 tickets. - The ticket's price for 1 to 5 tickets purchase is $130 per ticket. - The ticket's brice for 6 to 20 tirkets nurrhace ic $110 nor tirkat Hint: the assignment of points is set as nested conditional statement

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!