The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 4 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Please write a program using c++.
Â
At the beginning of every year, Paul receives a raise on his previous year's salary. He wants a program that calculates and displays the amount of his annual raises for the next three years, using rates of 3%, 4%, 5%, and 6%. The program should end when Paul enters a sentinel value as the salary.
Sample run: Salary (negative number or 0 to end): 100 Raise rate: 3% Year 1: Raise: $3.00 Year 2: Raise: $3.09 Year 3: Raise: $3.18 Raise rate: 4% Year 1: Raise: $4.00 Year 2: Raise: $4.16 Year 3: Raise: $4.33 Raise rate: 5% Year 1: Raise: $5.00 Year 2: Raise: $5.25 Year 3: Raise: $5.51 Raise rate: 6% Year 1: Raise: $6.00 Year 2: Raise: $6.36 Year 3: Raise: $6.74
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll