Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Step 1 : Add your name and date comments to the top of the program. Step 2 : Create a variable to store the number

Step 1: Add your name and date comments to the top of the program.
Step 2: Create a variable to store the number 7(make sure that this is a meaningful name). Output this amount.
Step 3: Create an equation to divide the variable by 2. Output this result. Be sure to use the variable in your equation and not the number 7.
Step 4: Create an equation to subtract 2 from the step 3 variable and store this result in a new variable. Output the result. Be sure to use the variable in your equation from step 3 and not the 3.5.
Example Output:
Starting number =7
Divided by 2=3.5
Subtract 2=1.5
Grading Rubric:
Your name and date is in the comments at the top of the program. (1 point)
You created a variable with a meaningful name. (1 point)
You used the variable in your equations and your output. (3 points)
Your output is correct. (2 points)
Your output has spaces and is easy to read. (2 points)
You do not have errors in your code (1 point)
Note: You can submit the cpp file or you can paste your code into Notepad and save as a txt file to submit.
image text in transcribed

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 And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions

Question

Explain in simple terms how cross-validation of data works.

Answered: 1 week ago

Question

=+ For what reasons can and do unions go on strike?

Answered: 1 week ago

Question

=+ Is secondary industrial action common and/or legal?

Answered: 1 week ago