Question: Construct two algorithms (one iterative and one recursive) to print the daily salary of a worker who, each day, is paid twice the previous day's salary (starting with one penny for the first day's work) for a thirty day period.
What problems are you likely to encounter if you implement your solutions on an actual machine?