Question: Write a Matlab program that breaks a given amount in cents into dollars, quarters, dimes, nickels, and pennies. For example, if the users enters 1258
Write a Matlab program that breaks a given amount in cents into dollars, quarters, dimes, nickels, and pennies. For example, if the users enters 1258 then the output will be 12 dollars, 2 quarters, 0 dimes , 1 nickel and 3 pennies. An example of input/output: Enter the amount of dollars in cents
1258
D, Q, d, N, P
12 2 0 1 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
