Write a C/C++ program to compute the number of days for the following scheme. The recipient receives a penny on day 1 and the amount is doubled on subsequent days. That is on day 2 the amount received is 2, on day three 4 pennies, day four 8 pennies and so on. The recipient accumulates the amount received. Write a program to compute how many days will it take for the recipient to accumulate more than 100 dollars of instance. Develop a function that returns the number of days. The prototype or declaration of the function should be as shown here : int Accum( int). The parameter represents the dollar amount. Inside the function this amount must be converted to cents as the initial starting amount is stated in pennies. Submit program code and program output that states the number of days as well as the amount on that day in dollars and cents. Test your program for 50 and 100 dollars. All code must be documented and the code should be readable. Select variable names that are suggestive of their properties. Use indentation to match program structure and constructs.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Complete ownership and distribution copyrights to all work purchased.
Windows Xp, MS Visual C++