Question: 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.
 Step 1: Add your name and date comments to the top

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!