Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In the heyday of the British empire, Great Britain used amonetary system based o

ID: 3615613 • Letter: I

Question

In the heyday of the British empire, Great Britain used amonetary system based on pounds, shillings, and pence. Therewere 20 shillings to a pound, and 12 pence to a shilling. Thenotation for this old system used the pound sign, £, and twodecimal points, so that for example, £5.2.8 meant 5 pounds, 2shillings, and 8 pence. (Pence is pural for penny).) Thenew monetary system, introduced in the 1950s, consists only ofpounds and pence, with 100 pence to a pound (like U.S. dollarsand cents). We'll call this new system decimal pounds. Thus5.2.8 in old notation is 5.13 in decimal pounds (actually5.133333). Write a program to convert the oldpounds-shillings-pence format to decimal pounds. An example ofuser's interaction is as follows: [call it I/O Figure #1A forthe specs.]

    Enter pounds: 7

    Enter shillings: 17

    Enter pence: 9

    Result in Decimal pounds = 7.89

Explanation / Answer

#include using namespace std; int main() {    double pounds=0, shillings=0, pence=0;    double newPound=0.0;    coutpounds;    coutshillings;    coutpence;    newPound = (pounds) + (shillings *0.05) + (pence* 0.05/12);    cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote