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 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.

image text in transcribed

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

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

More Books

Students also viewed these Databases questions

Question

Explain basic guidelines for effective multicultural communication.

Answered: 1 week ago

Question

Identify communication barriers and describe ways to remove them.

Answered: 1 week ago

Question

Explain the communication process.

Answered: 1 week ago