Pennies for Pay Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day, four pennies the third day, and so on with the...



Pennies for Pay


Write a program that calculates how much a person earns in a month if the salary is one


penny the first day, two pennies the second day, four pennies the third day, and so on


with the daily pay doubling each day the employee works. The program should ask the


user for the number of days the employee worked during the month, validate that it is


between 1 and 31, and then display a table showing how much the salary was for each


day worked, as well as the total pay earned for the month. The output should be


displayed in dollars with two decimal points, not in pennies.



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here