Your Task:
Create a survey that asks different questions depending on the previous responses.
Your survey code will need five questions.
Question 1: asks the user which survey to take
Questions 2-3: questions about the first topic
Questions 4-5: questions about the second topic
Your program needs to ask the right pair of questions according to the user’s response to question 1. Your program will always ask question1, but then it decides which other questions to ask. It will end up asking three questions each time you run the program.
For example, you could ask the user’s age, and then provide more relevant questions depending on the age.
At the end, the survey should say something about your user’s responses.
Coding Requirements:
- Your program must used nested if statements. This means one if statement is inside the other one.
- Use if / else if / else structure to sort through the responses. Use else to handle cases when the user provided a response the survey wasn’t expecting.