Question: Write a code that would work as a self-checkout machine system. For example, the consumer inserts a $20 note for a purchase of $2.37, then

Write a code that would work as a self-checkout machine system. For example, the consumer inserts a $20 note for a purchase of $2.37, then the code should calculate the difference and return it in the very minimum number of notes and coins possible, as follows: $100 - $72.37 = $27.63 $20(1), $5(1), $1(2), $0.25(2), $0.10(1), $0.01(3) Your code should ask first for the balance, then the money deposited, and finally it should calculate the difference and the change returned. USING MATLAB LANGUAGE. Please make as simpleas possible.

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!