Question: ( penny ) Write a program to calculate a person's salary calculated in this manner. The person will be paid 1 penny on the first

( penny )Write a program to calculate a person's salary calculated in this manner. The person will be paid 1penny on the first day or $ 0.01.The pay will be doubled for every day worked. For example, pay will be doubled to 2pennies on the second day for a total pay of $ 0.03.The program should accept the number of days worked as input and output the total pay in dollars with two decimal places. 10points -correct use of loop 10points -correct output 10points -correct output format

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!