The following are the coin denominations available in a country: A (20 peso), B (10 peso), C (5 peso), and D (1 peso). A bus conductor should provide a change of 48 pesos to a passenger using these coins only. Furthermore, at most 1 20-peso coin, and 3 10-peso are available. The cashier aims to minimize the number of coins used to settle the required change. Use Dynamic Programming to solve the problem.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter3: Performing Calculations With Formulas And Functions
Section: Chapter Questions
Problem 2.7CP
icon
Related questions
Question

The following are the coin denominations available in a country: A (20 peso), B (10 peso), C (5 peso), and D (1 peso). A bus conductor should provide a change of 48 pesos to a passenger using these coins only. Furthermore, at most 1 20-peso coin, and 3 10-peso are available. The cashier aims to minimize the number of coins used to settle the required change. Use Dynamic Programming to solve the problem.

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Payback period
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr