Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using C++ Your objective: To write a program that will predict the future. Use the main function to do the following Prompt the user for
Using C++
Your objective: To write a program that will predict the future. Use the main function to do the following Prompt the user for his/her lucky number. This number will be largely ignored by the rest of the program (it's only for show, for the user's sake) 1. Prompt the user for which life topic he/she wants a prediction. Based on the user's response call one of three functions. Suggestions are love, finance, and school, but you may use three of your own choosing. Use a nested if-else statement to control which function is called. 2. Each function will... Call the rand function Use the value generated by the rand function and modulus operator as the selector expression in a switch statement. Create a SWITCH that will print out the predictions. Allow for five different predictions per function. 1. 2. 3. 4. Finally, prompt the user to see if they want another prediction. Keep executing the program until the user tells you to quit. Make sure that you code for all possible user inputs, including wrong ones
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