Question: use java Write a program that calculates the amount a person would earn over a 15 day period if his/her salary is one penny for
Write a program that calculates the amount a person would earn over a 15 day period if his/her salary is one penny for the first day, two pennies the second day, and continues to double eaclh day. The program should display a table similar to the one below. You should also display the total amount of money earned over that period, Use a for loop for this Day Amount Earned $0.01 $0.02 S0.04 S0.08 S0.16 S0.32 S0.64 S1.28 S2.56 S5.12 10 Page 1 of 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
