Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ ONLY 1. Ask the user to input both a favorite number and a number disliked. a. Validate the input b. Will you accept the

C++ ONLY image text in transcribed

1. Ask the user to input both a favorite number and a number disliked. a. Validate the input b. Will you accept the values if they are the same? You get to decide what to do. Make sure you document it in your code, though. 2. Determine the 'lucky' number by multiplying the 2 numbers and taking the 10 's modulus of the result. (In computing, the modulo operation finds the remainder after division of one number by another (sometimes called modulus)). 3. Based on the lucky number, a. If it is less than 0 display: "Try to be less negative" b. If it is between 0 to 4 inclusive, display: "Think Bigger" c. If it is between 5 and 9 exclusive, display: "Today you should embrace technology" d. If it is 9 or greater, display: "This is your lucky day" 1. Change the formula to determine the lucky number. (Remember to document your new formula) 2. 1. Add a 'farewell' message at the end of the program

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

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

Part 10: Part 10

Answered: 1 week ago

Question

find all matrices A (a) A = 13 (b) A + A = 213

Answered: 1 week ago

Question

6. What are some of the advantages and disadvantages of ESOPs?

Answered: 1 week ago