I have a project due at midnight tonight that I cannot figure out. I need to write a program that will calculate a user's salary if their pay starts at a penny and doubles every day from then on for up to a month. I cannot figure out what formula to write to get my pay amounts to calculate and I do not know how to total them all up either. Please please help! This is the code I have so far.
Well then.... might as well help you out. lol I messed up your code and got this. If you don't see this by midnight, then its not my fault. Stay awesome Gotham!
Sorry, but your solution is not correct. The salary is doubled each day, so day 1 would be .01, day 2, .02 cents, day 3 is .04 cents and so on. The correct way is...