Program that repeatedly asks the user to enter two money

Assignment Help Civil Engineering
Reference no: EM131047946

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.

Reference no: EM131047946

Questions Cloud

Report - project management plan : The project management plan is a stand-alone document that the Project Sponsor will use to assist in obtaining Project Stakeholder sign-off. Describe the project. Explain it in a way that someone completely unfamiliar with the industry, concept, or..
Assets appear on the balance sheet of an insurance company : a. What types of assets appear on the balance sheet of an insurance company?
Prepare income statements for each inventory method : ACC5202 Assignment Semester, 2016 - Prepare relevant journal entries for both the perpetual and periodic inventory methods and Prepare income statements for each inventory method.
Casualty insurance companies required to maintain loss : a. Why are property and casualty insurance companies required to maintain loss reserves? b. Briefly explain the following methods for determining loss reserves:
Program that repeatedly asks the user to enter two money : program that repeatedly asks the user to enter two money
Calculate the forces in members cb cg and fg : Calculate the forces in members CB,
Financial information for a specific line of insurance : a. What was the insurer's loss ratio for this line of coverage? b. Calculate the expense ratio for this line of coverage.
Calculate packing height required for the desired separation : Calculate packing height required for the desired separation.
Incurred losses and loss-adjustment expenses : A large casualty insurer writes a substantial amount of private passenger auto insurance. An actuary analyzed claims data for a specific class of drivers for a recent one-year policy period.

Reviews

Write a Review

Civil Engineering Questions & Answers

  Engineering ethics and ethical issue

what is the engineering ethics course where to write about any engineering ethical case and discuss the ethical issue?

  Engineering ethics and concept and cases

what is the engineering ethics case related to civil engineering with reference and discuss all the engineering ethics issues which covered the "Engineering etics concepte and cases?

  Transportation and management

In the construction management, there is a lot of procurement route that are necessary and suitable for the construction industry.

  Supporting Investment Promotion: ERNST & YOUNG

Ernst & young is currently providing support to various sectors. In this regards it was felt that if this report is able to document good practices currently being adopted or planned in ceramic sector.

  Personalized Cancer Therapy-A step forward

Cancer is the uncontrolled growth of abnormal cells in the body resulting in tumours that can be benign or malignant (cancerous cells). A proper treatment is necessary to fight with this serious disease.

  Discuss the different environmental companies

Discuss the different agencies, institutes, centers, different environmental companies that are active in UAE.

  Develop a simple urban constructed wetland design

Develop a simple urban constructed wetland design.

  Evaluate company performance in relation to GRI standards

Evaluate company performance in relation to GRI standards and comment on Stigler's theory.

  Water system design

Determine the corresponding error in the computed discharge

  Hydraulic behaviour in open channel

Describe how test flumes and associated equipment are used to assess and confirm hydraulic behaviour in open channel

  Write a paper on steel sustainability

Write a paper on steel sustainability.

  Writing case study about bridge collapse

Writing case study about bridge collapse

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd