Question: Code in C++ Write a code where the user starts off with a starting value in dollars. Then another question is asked whether the user

Code in C++

Write a code where the user starts off with a starting value in dollars. Then another question is asked whether the user would like to increase or decrease the value by a certain amount and how many times they would like to repeat this process. The ending result of all the outputs are added up in the end.

Please use the example below to write the code

inputs :

Enter a Starting value: 1

Would You like to increase or decrease this value(inc/dec): inc

By how much would you like to increase this value by: 1.5

How many times would you like to repeat this process: 5

Outputs:

1 | $1

2 | $1.5

3 | $2.25

4 | $3.375

5 | $5.0625

Total: $13.1875

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!