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

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.

// 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 Programming Questions!