Question
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:
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started