Question: 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  C++ ONLY 1. Ask the user to input both a favorite

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

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!