Question: It has to be done with C++. Description The purpose of this challenge is to use the for loops. This challenge uses accumulators and loops.
It has to be done with C++. Description
The purpose of this challenge is to use the for loops. This challenge uses accumulators and loops.
Requirements
Assume you were offered a job that paid $0.01 on the first day, $0.02 the 2nd day, $0.04 the 3rd day (each days income is double the previous days income)
Calculate how much you will make in 30 days of work
DO NOT USE
Any power or exponentiation formulas
Sample Interaction / Output
On day 1, you made $0.01 On day 2, you made $0.02 ... After 30 days, you made $10737418.23
The last line above shows the total amount earned having worked 30 days. Make sure your total shows the amount above, not a penny more, not a penny less.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
