Question: Coin Counting Problem. Solve using matlab please. Write a script using iteration to answer the following question: What is the average number of coins you
Coin Counting Problem. Solve using matlab please.
Write a script using iteration to answer the following question: What is the average number of coins you
can expect to receive in your change after a cash transaction?
To solve this problem, your script must calculate the number of coins required to form all cent
amounts in the range dots, and then compute the average. We'll assume that all
quantities of change are equally likely and that the denominations available are:
Quarter cents
Dime cents
Nickel cents
Penny cent
Additionally, we'll assume that all the individual amounts are formed using the minimum number of
coins. I.e cents require quarters, nickel, and pennies for a total of coins.
Your script should report the average number of coins using the exact formatting shown below:
Average Number of Coins
where will be replaced with your answer formatted using
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
