A program calculates and displays bonus amounts to pay various types of employees. There are 3 separate departments, numbered 1, 2, and 3. Department 1 employees are paid a bonus based on their sales: If their sales amount is over $5000 they get 5% of those sales, otherwise they get nothing. Department 2 employees are paid a bonus based on the number of units they sell: They get $100 per unit sold, and an extra $50 per unit if they sell more than 25 units; if they sell no units, they get nothing. Department 3 employees assemble parts in the plant and are paid a bonus of 10 cents per part if they reach a certain level: Part-time employees must assemble more than 250 parts to get the 10-cent-per-part bonus, and full-time employees must assemble more than 700. Write a set of 3 overloaded methods called getBonus() that works with the program below, according to the specifications described above. public class Calculate { public static void main(String [] arg...
This Blog is a place to find all Basic Java Programs. If You can improve the code, please post it in comment.