A program that repeatedly asks the user to enter two money

Assignment Help Civil Engineering
Reference no: EM131048620

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: EM131048620

Questions Cloud

The potential adoption of flat-rate tax structure : There are a number of taxation rate structures in use in various countries in the world. For citizens residing in the United States, a progressive tax rate structure is applicable presently. Write a report comparing the advantages and disadvantages o..
Summer camp for kids with the average expenses : Pat Davis runs a summer camp for kids with the average expenses in each month as shown below. The camp uses a savings account for all funds that pays interest of 1.00% nominal annual rate with monthly compounding. Pat is getting older and wants to fu..
A relationship between gender and attending school : To estimate the average length of time spent in Barbados by long stay tourists, 150 immigration records were reviewed. The sample produced a mean stay of 8.8 days, with a standard deviation of 6 days.
Four investments-annually in mutual fund : You invest $3,000 annually in a mutual fund that earns 11 percent annually, and you reinvest all distributions. How much will you have in the account at the end of 15 years? You invest $3,000 annually in a mutual fund with a 4 percent load fee so tha..
A program that repeatedly asks the user to enter two money : 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.
Identify and explain the role of a specifc tourism : Identify what is actually occuring or being practised at a place, and relate this to the theoretical concepts introduced in this unit - identify and explain the role of a specifc tourism or hospitality industry in your TDR
What is your expected return on your investment : Suppose you have $10,000 in cash and you decide to borrow another $10,000 at a(n) 6% interest rate to invest in the stock market. You invest the entire $20,000 in an exchange-traded fund (ETF) with a 11% expected return and a 20% volatility. What is ..
Main issues facing this special population : What are the main issues facing this special population, particularly concerning access, quality, and cost-effective care? What are some public policies that would support the needs of this special population?
Interest rates versus the new mortgage payments : You are currently in the 9th year of a 30-year fixed rate, fully amortized mortgage with monthly payments, with the lock-in period of 10 years (prepayment penalty is 2% of the remaining balance). Assume that rate doesn’t change over the life of the l..

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