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.

Beginning with the Fortune Teller program make the following additions and modifications:

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!