Answered step by step
Verified Expert Solution
Question
1 Approved Answer
this exercise is from the course Fundamentals of software design and development. this is in jupyter . i have to write in every cell Week
this exercise is from the course Fundamentals of software design and development.
Week 1 - Exercise Notebook created by Jonathan Penava For this exercise you are going to write a function that makes change for amounts less than one dollar. Input must be a positive integer up to 100, representing an amount of money, in cents. Output must be the original amount of money together with a set of coins (quarters, dimes, nickels) that could make up the amount. The function must produce change containing the minimum number of coins required to produce the given amount. Remember that the penny is no longer in production, so you must round the value up or down accordingly. The output must be reasonable and non-stilted. for example, the input of 54 should produce results such as: 54 cents requires 2 quarters, 1 nickel rather than 54 cents requires 2 quarters, 0 dimes, 1 nickels Provide some message if values do not produce output. fof makechange(chence) t raturn = os Phatan nakeChange (68) File fest selaction View gewes. Wrek 1 - Enercitaipynb x Q. formhin + code + Mandown | = Outine ... Select kenal makechange (65) Bytan 14) 'be cents requires 2 quarters, 2 dines' makechancet(54) (19) Whan "54 cents requiren 2 quartare, 1 nickel' nakechange (31) [ia] ine 201 cents requires 1 quarter, 1 alckel' nakechanget (18) [v] Python t18 cents requires 2 dimest Woek 1 -Exercise ipynb 0 formshtm nakechange (82) '82 cents requires 3 quarters, 1 nicket * nakechange (49) " 49 cents requires 1 quarter, 1 dime, 1 nickel" makechange (99) "Cannot nake change," makechange (2) 'Casnot make change this is in jupyter .
i have to write in every cell
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