Write a program Pay.java to calculate the amount of money a person would earn over a period of time. Assume the current

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a program Pay.java to calculate the amount of money a person would earn over a period of time. Assume the current

Post by answerhappygod »

Write a program Pay.java to calculatethe amount of money a person would earn over a period of time.Assume the current salary is $50,000, salary would increase 4% ayear and there is also a yearly bonus between $2000 and $6000. For the purpose of the calculation, the bonus will be arandom number between $2000 and $6000.
- Print out the person’s yearly earnings for the next 5years.
- Using loop structure determine the number of years needed toaccumulate 1 million dollars in total overall earnings
Sample output should look like this
Year Salary Bonus YearTotal Overall Total
1 $52,000 $3,242 $55,242 $55,242
2 $54,080 $2,771 $56,851 $112,093
3 $56,243 $5,325 $61,568 $173,661
4 $58,493 $5,200 $63,693 $237,354
5 $60,833 $5,912 $66,745 $304,099
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply