Question: Write a Java class named Change in a file named Change.java that reads from the keyboard an integer representing a monetary amount (in Korean Won).

Write a Java class named Change in a file named Change.java that reads from the keyboard an integer representing a monetary amount (in Korean Won). Then, determine the fewest number of each bill and coin needed to represent that amount, starting with the highest (assume that a 50 thousand won note is the largest bill available). For example, if the value entered is 77370, then the program should print the equivalent amount as: 1 50000 KRW notes 2 10000 KRW notes 1 5000 KRW notes 2 1000 KRW notes 0 500 KRW coins 3 100 KRW coins 1 50 KRW coins 2 10 KRW coins Note that you do not need to worry about the singular/plural form of the words notes and coins. Just use the plural form. Assume the input from the user will be a multiple of 10 since there is nothing less than a 10 KRW coin. Hand in Change.java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
