Old School” British Money

computer science: c++ (QT) Hw

Old School” British Money

Write a program that will ask a user how much their purchase was, and then how much money they gave to a sales person. Your program will then show the sales person how many twenty dollar bills, ten dollar bills, five dollar bills, one dollar bills, quarters, dimes, nickles and cents the customer is to receive in change. Omit a value if and only if the value the to give back is not zero.

Re-write the program that computed change so that it will compute change for the “old style” British money (Pounds, Crowns, Shillings, Six pence, Three Pence, Pence, Half Pence, and Farthing). You will have to check with Wikipedia (or a similar site) to get the correct conversions.
Assuming that there is a 17.7% VAT (what sales tax is called in the UK), you must first compute the “actual” cost of the item (meaning, they enter how much it shows on the sticker and then you calculate the appropriate tax down to the Farthing). The user must then provide enough money to cover the item plus tax. (Note: In the UK, the price of items on the shelf already must include the total amount including tax.)
Assume that Pound notes come in 20, 10, 5, 2, and 1 denominations.