Write a program that calculates how much a person would earn over a period of time if his or her salary is one penny the first day,two pennies the second day, and continues to double each day.
Input Validation: DO NOT ACCEPT A NUMBER LESS THAN 31 FOR THE NUMBER OF DAYS WORKED