have midterms tomorrow and I cannot get this to work out. I will have an example like this on my test and I've tried all night. I need a C++ whiz!!! This is the problem.
The Early Raildroad Corporation pays an annual bonus as part of its profit sharing plan. This year all employees who have been with the company for 10 years or more receive a bonus of 12 percent of thier annual salary, and those who have worked at Early from 5 through 9 years will receive a bonus of 5.75 percent. Those who have been with the company less than 5 yrs receive no bonus.
Ask for the employee ID number, the employees annual salary, and the number of years employed with the company, then find and print the bonus. All bonuses should be rounded to the nearest dollar. Use a loop to allow for more that one employee. Use a cout to ask if there is another employee to be entered and a cin (y/n) and continue looping if (y). Keep a total of bonus paid. Output should be in the following form:
EARLY RETIREMENT CORP.
Years of Service:
If you have any advice please e-mail me at email@example.com
I will owe you my life!!!!