Write a Java application to give calculate the change and give the least amount of coins for a shop in Great Britain. Most of Great Britain does not use the Euro although it may be accepted in some stores. Our shop does not accept the Euro. See the articlehttp://projectbritain.com/money.htmlfor an explanation of British currency. Do not worry about archaic denominations like “groats” or “shillings”.
As the article states, the pound is “divided into 100 pence.
Current coins are:
Bills start at 5 pounds. We won’t calculate change for bills, only for coins.
If someone gives you 5 pounds and their purchase totals 3 pounds 40 pence, you would calculate they need 1 pound, 60 pence returned to them. You would give them a:
Use the modulus operator and integer division to calculate the change. Use the command prompt to obtain user input.
Use the modulus operator and integer division to calculate the change. U
se the command prompt to obtain user input.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here