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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!