Home /
Expert Answers /
Computer Science /
in-js-only-needed-solution-create-a-function-that-takes-an-amount-of-monetary-change-e-g-47-cent-pa939
(Solved):
IN JS ONLY NEEDED SOLUTION Create a function that takes an amount of monetary change (e.g. 47 cent ...
IN JS ONLY NEEDED SOLUTION Create a function that takes an amount of monetary change (e.g. 47 cents) and breaks down the most efficient way that change can be made using USD quarters, dimes, nickels and pennies. Your function should return an object. Examples makeChange \( (92) \rightarrow\{ \) "q": \( \rightarrow \), "d": 1, "n":1, "p": 2\( \} \)