Question :
In the heyday of the British Empire, Great Britain used a monetary system based
on pounds, shillings, and pence. There were 20 shillings to a pound, and 12 pence to a
shilling. The notation for this old system used the pound sign, £, and two decimal points,
so that, for example, £5.2.8 meant 5 pounds, 2 shillings, and 8 pence. (Pence is the
plural of penny.) The new monetary system, introduced in the 1950s, consists of only
pounds and pence, with 100 pence to a pound (like U.S. dollars and cents). We’ll call
this new system decimal pounds. Thus £5.2.8 in the old notation is £5.13 in decimal
pounds (actually£5.1333333). Write a program to convert the old pounds-shillings-
pence format to decimal pounds. An example of the user’s interaction with the program
would be
Enter pounds: 7
Enter shillings: 17
Enter pence: 9
Decimal pounds = £7.89
In most compilers you can use the decimal number 156 (hex character constant ‘\x9c’)
to represent the pound sign (£).
Enjoy and subscribe my channel
On this page of the site you can watch the video online C Programming Tutorial - 2 | Currency Converter with a duration of hours minute second in good quality, which was uploaded by the user How To ? 21 August 2017, share the link with friends and acquaintances, this video has already been watched 9,536 times on youtube and it was liked by 49 viewers. Enjoy your viewing!