Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

KC App: Every year Kansas City schools hold trips for Orchestra and Band students to perform in different concerts . Students must register and pay

KC App:

Every year Kansas City schools hold trips for Orchestra and Band students to perform in different concerts. Students must register and pay for these trips ahead to be able to join.

Below are the prices and locations for these concerts:

Orchestra

Band

1- Wichita Trip costs: $80

1- Liberty Trip costs: $50

2- Branson Trip costs: $120

2- Branson Trip costs: $120

Parents may have more than one student in either Orchestra or Band or may be both. Your program will need to keep asking the users if they need to register for more trips and display the total cost for all trips registered.

Requirements:

1- Display a welcome message to users.
2- Ask users if they want to add items to their cart.
3- Display menu for above options ('Orchestra / Band' table).
4- Get user input and must validate all user inputs.
5- Keep track of the total cost and keep updating the total cost as the user adds more items to the cart.
6- The program will terminate once the user hit 'N' / 'n' for adding more items to the cart.
7- Once the user finish adding items to the cart, your program needs to display all items in the cart with the quantity and the final cost needed from the user.
8- MUST DEFINE AT LEAST 3 FUNCTIONS
a. Function for Orchestra.
b. Function for Band
c. Function for the main menu to keep track of user orders.
d. (80% of your grade will be towards using functions correctly).

Sample Output:

**Welcome to KC App!**

Do you want to add items to the cart

Enter Y/N

T

**Enter valid answer**

Do you want to add items to the cart

Enter Y/N

y

1- Orchestra

2- Band

Enter 1 for Orchestra and 2 for Band

4

Enter 1 for Orchestra and 2 for Band

1

Add to cart:

1- Wichita Trip $80

2- Branson Trip $120

1 for 1-Wichita , 2 for Branson

0

**Enter valid option**

1 for 1-Wichita , 2 for Branson

1

Your total is $80

Do you want to add items to the cart

Enter Y/N

y

1- Orchestra

2- Band

Enter 1 for Orchestra and 2 for Band

2

Add to cart:

1- Liberty Trip $50

2- Branson Trip $120

1 for Liberty , 2 for Branson

2

Your total is $200

Do you want to add items to the cart

Enter Y/N

y

1- Orchestra

2- Band

Enter 1 for Orchestra and 2 for Band

1

Add to cart:

1- Wichita Trip $80

2- Branson Trip $120

1 for 1-Wichita , 2 for Branson

1

Your total is $280

Do you want to add items to the cart

Enter Y/N

n

Items in your cart:

1- Whichita trip: 2 ticket(s)

2- Band_Branson trip: 1 ticket(s)

Your Final Cost is $280

Have a good day


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

More Books

Students also viewed these Databases questions