Question
You are implementing a brand new type of ATM that provides exact amounts of cash (bills only, no coins). In order to maximize potential revenue
You are implementing a brand new type of ATM that provides exact amounts of cash (bills only, no coins). In order to maximize potential revenue an algorithm is needed that will allow for using different denomination amounts as needed by the local currency (value of bills will vary, but are integers). : 1. The program shall graphically prompt the user for a file. 2. The program shall read the selected file of which the first line will be a space separated list of the bill denomination sizes. 3. The program shall then read each line in the rest of the file containing an integer and output the number of different ways to produce that value using the denominations listed in the first line. 4. The program shall indicate after that the number the number of milliseconds the program spent calculating the answer. 5. The program shall implement 2 different forms of the algorithm: 1 recursive and 1 using dynamic programming. 6. The program shall have 2 sets of output, 1 for each implementation. 7. The program shall write the output to a file in the same directory as the input file.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started