Question: Please write the following program in Java That last idea at PicoSoft didn't work out too well management has a massive public relations disaster on

Please write the following program in Java That last idea at PicoSoft didn't work out too well management has a massive public relations disaster on their hands, and thus they decide to revise the bonus structure, as well as give eveyone some additional vacation time.

Write a program that reads in (from the keyboard) the following information about an employee:

Last name

First name

Years worked (a whole number)

Annual salary

An employee's vacation time is based upon the following table:

Years worked Weeks of vacation
0-3 1
4-6 2
7 or more 3

Bonuses are determined by the following table:

Years worked Bonus
0-4 None
5-9 $200
10 or more 5% of annual return

Your program should read in the information for an employee, calculate the vacation time and bonus amount for the employee, and display the employee's name, number of years worked, number of weeks of vacation and amount of bonus (on a single line). Please note that you are to print the actual amount of the bonus (calculated as 5% of the annual salary), and not simply the words 5% of salary".

This should be done for eight (8) employee (using a for loop).

Test Run

Enter last name: Weiss Enter first name: Gerald Enter years worked: 1 Enter salary: 100 Gerald Weiss gets 1 weeks vacation, and a bonus of $0 Enter last name: Arnow Enter first name: Davis Enter years worked: 3 Enter salary: 200 Davis Arnow gets 1 weeks vacation, and a bonus of $0 Enter last name: Tenenbaum Enter first name: Aaron Enter years worked: 4 Enter salary: 100 Aaron Tenenbaum gets 2 weeks vacation, and a bonus of $0 Enter last name: Thurm Enter first name: Joe Enter years worked: 6 Enter salary: 100 Joe Thurm gets 2 weeks vacation, and a bonus of $200 Enter last name: Whitlock Enter first name: Paula Enter years worked: 7 Enter salary: 400 Paula Whitlock gets 3 weeks vacation, and a bonus of $200 Enter last name: Jones Enter first name: Jackie Enter years worked: 9 Enter salary: 500 Jackie Jones gets 3 weeks vacation, and a bonus of $200 Enter last name: Dreizen Enter first name: Phil Enter years worked: 10 Enter salary: 1000 Phil Dreizen gets 3 weeks vacation, and a bonus of $50 Enter last name: Augenstein Enter first name: Moshe Enter years worked: 12 Enter salary: 1500 Moshe Augenstein gets 3 weeks vacation, and a bonus of $75

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!