Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It needs to be C++ and very beginner level please. Explaining the process would be very welcomed.. The purpose of this assignment is to practice

It needs to be C++ and very beginner level please. Explaining the process would be very welcomed..

image text in transcribed

image text in transcribed

The purpose of this assignment is to practice programming conditional If statements. You are to write a program that outputs fortunes depending on the input values the user enters. The setup The pseudocode of the program is as follows: 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" 4. Be sure to comment!!!!!! Your changes: Change your code to do the following: 1. Change the formula to determine the lucky number. (Remember to document your new formula) 2. Change the program so that the basis of the fortune is different. (basically, change the \#3 list of things to talk about). While doing that change the output. For example, "Think Bigger" is nice, but change the output to something more interesting. 3. 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

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions

Question

What attracts you about this role?

Answered: 1 week ago

Question

How many states in India?

Answered: 1 week ago

Question

HOW IS MARKETING CHANGING WITH ARTIFITIAL INTELIGENCE

Answered: 1 week ago