Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions