Question
Beginning with the Fortune Teller program make the following additions and modifications: -Type in the fortune teller program (if you do not have the book,
Beginning with the Fortune Teller program make the following additions and modifications:
-Type in the fortune teller program (if you do not have the book, you can find the code from lecture 3).
-Change the program so that it accepts two more input from the user. you can make up what the new input are, examples include shoe size, age, etc.
-Change the expression used to generate the "mystic number", Line 19 of the original, program in the text so that it uses all four number.
-Add at least two more conditional so that there are more possible messages to the user.
The fortune Teller *a simple program introducing some fundimental programming concepts #includec iostream> // include a library using nanespace sta: int maino I/ main starts the program Variable Declarations int favorite; // create a variable to store the favorite number int disliked / create a variable to store the disliked number int cky; / create a variable to store the lucky number Get user input cout >favorite cout > disliked; lucky- {favorite*disliked) % 10; cout -5 && lucky
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