Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions

Question

Which operators cannot be overloaded?

Answered: 1 week ago