I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
Total Coinage

A lot of people, after a shopping trip, will put their loose change into a jar. Over time, this jar can have a lot of money! Your task is to create a program which will calculate how much money you have in a jar. A sample run could look like –

Enter the number of pennies – 40
Enter the number of two pence pieces – 10
Enter the number of five pence pieces – 6
Enter the number of ten pence pieces 2

Total = £1.10

You should try and output the final value in pounds and pence.



Leave a Reply

Your email address will not be published. Required fields are marked *

Information