Write a program that will calculate how much a person would


Program Specifications:
Write a program that will calculate how much a person would earn over a period of time if his or her salary is one penny per day and the pay will double each day. I.E. 1 penny the first day, 2 pennies the next day, 4 pennies the next and so on.
Requirements:
? The program should ask the user for the number of days
? Display the total salary showing how much was earned each day
? Show the total pay (running total) at the end of the time period. NOTE: Must be displayed in dollar amounts $
? Input validation: The user can not enter a day less than 1. Show an error and let the user reenter the number if less than 1.
? The program should include at least one function in a separate .cpp file.
? Include remarks with your name and date.
? Use a for or while loop for iterations. Since you know the max number, you can use a for loop.
? Write the data to the console and to a text file. The text file will be located in project folder. I.E. ("pennies.txt")
? The data file should look like the console output.
? Include an output line that tells the user the data file has been written.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a program that will calculate how much a person would
Reference No:- TGS0142394

Expected delivery within 24 Hours