Question: Problem 1: Using MatLab Coding Only Write a code that would work as a self-checkout machine system. For example, the consumer inserts a $20 note
Problem 1:
Using MatLab Coding Only
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.
Export the change (notes and coins) sequence coefficients to the word file.
Using MatLab Coding ( Introduction to MATLAB for Engineers )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
