Question: Develop, compile, and run a C++ program that requires the use of C++ variables and if, if / else, if / else if statements, conditional
Develop, compile, and run a C++ program that requires the use of C++ variables and if, if / else, if / else if statements, conditional operators, and/or switch statements. Write a C++ program that asks the user the questions from the Are you Meatloaf? flow chart and displays the appropriate message to the user.
The user should be prompted to ask the first questions in the diamond on the flow chart and asked to respond with a Y or y for Yes and a N or n for No.
If the user enters a valid option the corresponding path on the flow chart is followed.
Otherwise, the user is told that they entered invalid data and asked to run the program again
Once you reach the end of the path on the flow chart, the message at the end is displayed to the user and the program ends and the user should only be asked questions when required. Don't ask the user all of the questions at the beginning of the code.
Valid input validation response on each question asked
Properly nested conditionals
Properly test for valid user input
Display appropriate messages
Include comments in your code as required
Only use Iostream and iomanip, no global variables
All input and output must be done with streams, using the library iostream and have comments on the line of code
Are You Meat Loaf? Yes Would you do - anything for love? No Even that? No, I won't do that Yes, even that You are Meat Loaf plantalan You are not Meat Loaf
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
