Answered step by step
Verified Expert Solution
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
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 programStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started