Program



You are to write a program that calculates the amount of money 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.  The program should ask the user for the number of days worked.
Display a table showing what the salary was for each day, then show the total pay at the end of the period.  The output should be displayed in a dollar amount, not the number of pennies.
Additional Program Requirements:
You are to use a function to output the standard header information
You are to use a program loop to calculate and print out the amount of pennies, and accumulate a total amount of earnings.  (recommend a for loop)
You are to use a function to display the final amount of earnings in dollars.  This function will be passed the number of days worked, and the accumulated total pennies earned.