Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started