Question: Pls don't use Using namespace std 4.3 - If/Else (Part 3) and Switch Statement (V2] / 11. Car Features 20 points possible Reset to Starter
Pls don't use "Using namespace std"
![Switch Statement (V2] / 11. Car Features 20 points possible Reset to](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2f8fad0c82_48266f2f8fa757d9.jpg)
4.3 - If/Else (Part 3) and Switch Statement (V2] / 11. Car Features 20 points possible Reset to Starter Code Saved When buying a Tesla Model 3, you have a choice between three versions/trims: 1) Standard Range Plus, 2] Long Range, and 3) Performance. All trims have the same base features, but the 2nd trim includes additional features, and the 3rd trim adds features on top of those from #2. In other words, the feature list is incremental. Write a program that asks the user to choose which Model 3 they want to buy. You will then output the feature list based on the user's selection. So that you understand which feature list belongs to each, my example below is for the most expensive trim (Performance), which includes everything. I used an empty line to separate the features for each trim. Be sure to reject invalid menu choices Menu/Prompts: Enter the lollor that corresponds to your desired Tesla Model 3 Iron lle choices below: (Standard kange 1:18 Long Rungo ['erformance Enter your choice Muund wer onlen P Output for 'P: Feature list: - Performance wheels and brakes - Lowered suspension - Track mode - All wheel drive - 310-mile battery range - Premiul audio - All electric motor - Autopilot - 15-inch touchscreen Error Output: Tealure List: Invalid selection. Please in the program again. 4.3 - If/Else (Part 3) and Switch Statement (v2) / 11. Car Features 20 points possible Reset to Starter Code Saved [Long Tange [P]erformance Enter your choice: [Assume user enters Pl Output for 'P! Feature List: - Performance wheels and brakes Towered suspension - Track mode All wheel drive 310-nile ballery funge - Premium audio - A11 electric motor - Autopilot - 15-inch touchscreen Error Output: Feature List: Invalid selection. Please run the program again. Notes and Hints: 1) Again, which programming structure is best for menus? Hmm..... 2] You must handle upper and lower case entries 3] Hint: Use the "falling-through' method for the most efficient code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
