Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help using C++ The Sharp Magazine published an article on 7/14/2015 about how to buy the right Porsche 911 model (So You Want To
Please help using C++
The Sharp Magazine published an article on 7/14/2015 about how to buy the right Porsche 911 model (So You Want To Buy A Porsche 911. Huh? Use Our Flowchart To Find Just The Right Model). The article can be accessed here. You have been assigned a task to develop an interactive program to help customers select the right Porsche 911 model based on the flowchart shown in the mentioned article. (The flowchart is shown in the next page) The program should ask the customers a series of questions, provide a list of numbered possible answers, then the customer selects the answer number. Use the provided C++ program skeleton (porsche-finder. cpp) to complete your code. Notes: 1. Include comments (at beginning of your code and inline comments) in your code 2. List answers for every question, and ask the customer to select a number that represents their answer 3. Use if statements efficiently and minimize number of conditions 4. Make your program interactive and user-friendly, creativity as highly appreciated Add your comments here ude ude ain() // anschoice is used for answer selection from the menue // this variable will be reused for all answers int anschoice =0; // recomendedporscheModel is used to store the recommended car model string recommendedPorscheModel; cout "Welcome to the Porsche 911 Model Recoomender" endl; cout "We will ask you a series of questions, please type the number of your answer" endl; cout "Press Enter to continue " endl; cin.get (); // Q1: So you want a Porsche 911 cout "m=n cout "So you want a Porsche 9112 " endl; cout "It (1) Yes" endl; cin > anschoice; if (anschoice =1 ) // do something cout "your answer is YES" endl; \} else // the choice is no 1 I/ do soething cout "your answer is No" endl; b // Display the formatted output here 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