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

  What is the pressure force on one side of the disc

A vertical semicircular disc of 2 m diameter is submerged in a liquid of SG = 0.76 such that its diameter, which is at the top, is parallel to the liquid surface at a depth of 3 m. What is the pressure force on one side of the disc?

  How much error would there be in the volume calculation

Assume the actual water temperature for calibrating a 1/3 ft3 measure was 65 degrees F. If you had used a water temperature of 75 degrees F for your calibration, how much error would there be in your volume calculation (both in ft3 and as a percen..

  Determine the streamlines for this flow plot streamlines

Consider the two-dimensional steady flow where the velocity field is given by V=Vo/L(-xi+yj) . Determine the streamlines for this flow. Plot streamlines for x> or =0

  What are the final concentrations of no no2 and o3

A dark atmosphere initially contains no ozone (O3), 100 ppb NO, and 100 ppb NO2. The sun comes comes out and the photostationary state relationship below is achieved in a few minutes. What are the final concentrations of NO, NO2 and O3?

  Compose a list here of the geological terms

Was the dam itself of sound design and a product of quality construction?

  While the head surveyorheld .62 ft. what is the distance

Using Fy=50ksi, select the lightest available section for the spanand loading shown. Consider moment and shear only and neglect beamweight in all calculations. The member is assumed to have fulllateral bracing.

  Maximum acceptable tensile service load

Compute the maximum acceptable tensile service load T that may act on a single angle L6x4x3/4 that is welded along only one leg to a gusset plate; thus, there are no holes. The service load is three times the dead load. Solve for a0 A36 steel.

  Determine maximum shearig stress in the shaft

a hollow steel shaft with an outside diameter of 400 mm and inside diameter of 300mm is subjected to the torque of 300 Kn. The modulus of rigidity for the steel is 80 GPa.

  Determine what is the required pipe size to deliver

A concrete pipeline is installed to deliver 6m^3/sec of water (10degressC) between two reservoirs 17 km apart. If the elevation difference between the two reservoirs is 12m, what is the required pipe size

  Find probability that vehicle pulling out will get accident

The driver of the vehicle does not look for oncoming traffic. Road conditions and vehicle speeds on the highway are such that it takes 1.5 seconds for an oncoming vehicle to stop once breaks are applied.

  Determine the moment of the l6-n force about point b

A foot valve for a pneumatic systemis hinged at B. Knowing that a=28degrees, determine the moment of the l6-N force about point B by resolvingthe force into horizontal and vertical components

  Smply supported beam l1l2 m long carries a point load gk

simply supported beam l1l2 m long carries a point load gk a kn qk b kn at mid-span and its self-weight with fire

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