Question: In C++ Question 6 (10 points): Price Quote - Switch statements You're planning a weekend in the great outdoors! You realize you need to buy

Question 6 (10 points): Price Quote - Switch statements You're planning a weekend in the great outdoors! You realize you need to buy supplies, so you go to the store to get a price quote (as seen below); Sport Price Equipment Mountain Bike $500 Biking Road Bike $400 2-Person Tent $200 Camping 4-Person Tent $300 Summer Boots $100 Hiking Winter Boots $150 $100 Rock Climbing Bouldering Pad Top Rope Pad $60 Write a menu-driven program that asks user input on the type of sport, then type of equipment depending on the sport and displays the cost for that equipment. Your program should account for invalid input. If the user inputs invalid menu options, then print "Invalid input." Use only switch statements instead of if-else statements. If-else statements will not be accepted for this problem. Expected output 1 (bold is user input) Enter Type of Sport: 1.Biking 2.Camping 3.Hiking 4.Rock Climbing Choose type of Equipment : 1. Mountain Bike 2. Road Bike 1 Price of Mountain Bike is $500. 1 Expected output 2 (bold is user input) Enter Type of Sport: 1.Biking 2. Camping 3.Hiking 4. Rock Climbing 3 Choose type of Equipment : 1. Summer Boots 2. Winter Boots 2 Price of winter Boots is $150. Expected output 3 (bold is user input) Enter Type of Sport: 1. Biking 2.Camping 3.Hiking 4.Rock Climbing 6 Invalid Input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
