Create a system that will tell the Cashier what changes to give to customer after input the price of the product and customer payment.
1.Try find the difference between price and actual payment. 2.use"/" to find the largest bill, and use "%" to find the next largest bill. 3.cast the number into integer. 4.round up for the smallest decimal to avoid error.
Java 8 if statement cast data type
call method in main