Question: WRITE A C++ PROGRAM : In the heyday of the British empire, Great Britain used a monetary system based on pounds, shillings, and pence. There
WRITE A C++ PROGRAM : 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). Well 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 users interaction with the program would be:
Enter Pounds:7
Enter Shillings:17
Enter Pence: 9
Decimal Pounds: 7.89 (PLO3, CLO3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
