Program that repeatedly asks the user to enter two


Write a program that repeatedly asks the user to enter two money amounts expressed in old-style British currency: pounds, shillings, and pence. (See Exercises 10 and 12 in Chapter 2, "C++ Programming Basics.") The program should then add the two amounts and display the answer, again in pounds, shillings, and pence. Use a do loop that asks the user whether the program should be terminated. Typical interaction might beEnter first amount: £5.10.6Enter second amount: £3.2.6Total is £8.13.0Do you wish to continue (y/n)?To add the two amounts, you'll need to carry 1 shilling when the pence value is greater than 11, and carry 1 pound when there are more than 19 shillings.

Request for Solution File

Ask an Expert for Answer!!
Civil Engineering: Program that repeatedly asks the user to enter two
Reference No:- TGS01393811

Expected delivery within 24 Hours