XYZ Company gives year-end bonus to its employees based on their number of year service and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
XYZ Company gives year-end bonus to its employees based on their number of year service and their salary. using the following: Years of Service 1 2 to 5 6 to 10 50% of salary 11 and above 75% of salary Follow the UML design below and the sample output to test the program if it is working properly. -name: String -NumYears: int -Salary: double -Bonus: double bonus +getName: String +getNumYears0: int +getSalary0: double +getBonus(): double +toString(): String Bonus 10% of salary 20% of salary +SetEmployee (name: String, NumYears; int, Salary: double): void +SetBonus(NumYears: int, Salary: double): void Also write a test program (TestBonus) to exercise the class. Sample Output: Name: Juan Dela Cruz Number of years: 1 Salary: 1000 Name: Juan Dela Cruz Number of years: 2 Salary: 1000 Name: Juan Dela Cruz Number of years: 5 Salary: 1000 Hi! Juan Dela Cruz Hi! Juan Dela Cruz Your Bonus is: 200 Hi! Juan Dela Cruz Your Bonus is: 200 Your Bonus is: 100 This is 10% of your salary This is 20% of your salary This is 50% of your salary Name: Juan Dela Cruz Number of years: 13 Salary: 1000 Hi! Juan Dela Cruz Your Bonus is: 750 This is 75% of your salary XYZ Company gives year-end bonus to its employees based on their number of year service and their salary. using the following: Years of Service 1 2 to 5 6 to 10 50% of salary 11 and above 75% of salary Follow the UML design below and the sample output to test the program if it is working properly. -name: String -NumYears: int -Salary: double -Bonus: double bonus +getName: String +getNumYears0: int +getSalary0: double +getBonus(): double +toString(): String Bonus 10% of salary 20% of salary +SetEmployee (name: String, NumYears; int, Salary: double): void +SetBonus(NumYears: int, Salary: double): void Also write a test program (TestBonus) to exercise the class. Sample Output: Name: Juan Dela Cruz Number of years: 1 Salary: 1000 Name: Juan Dela Cruz Number of years: 2 Salary: 1000 Name: Juan Dela Cruz Number of years: 5 Salary: 1000 Hi! Juan Dela Cruz Hi! Juan Dela Cruz Your Bonus is: 200 Hi! Juan Dela Cruz Your Bonus is: 200 Your Bonus is: 100 This is 10% of your salary This is 20% of your salary This is 50% of your salary Name: Juan Dela Cruz Number of years: 13 Salary: 1000 Hi! Juan Dela Cruz Your Bonus is: 750 This is 75% of your salary
Expert Answer:
Answer rating: 100% (QA)
Based on the provided UML design here is the Java implementation for the Bonus class and a TestBonus ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
A random sample of data was collected on residential sales in a large city. The following table shows the sales price Y (in $ 1,000s), area X1 (in hundreds of square feet), number of bedrooms X2,...
-
Theresa Pratt works in the business office at Mills College, a technical college in Council Bluffs, Iowa. She has created a workbook to store and analyze registration and employee data. The workbook...
-
Count Dracula, the most famous vampire, rumored to have killed at least 200,000 people, was based on a real person who lived in eastern Europe about 600 years ago. He was indeed a "monster," although...
-
This trial balance of Cantpost Ltd. does not balance: Each of the listed accounts has a normal balance per the general ledger. An examination of the general ledger and general journal reveals the...
-
Solve each inequality. Graph the solution set, and write it using interval notation. 2x > -10
-
In 2014, Air Asia Flight No. 8501 crashed in the Java Sea while flying from Indonesia to Singapore. The crash resulted in the deaths of all passengers and crew on board. The plane involved in the...
-
Sharon Feldman, president of Allied Products, considers $20,000 to be a minimum cash balance for operating purposes. As can be seen from the following statements, only $15,000 in cash was available...
-
Discuss the effects of all five major accounting assumptions on the accounting process
-
Below is the summarized accounting information for Becca State Government as at 31 December 2010. Petty cash Cash in transit Revenue from land Entertainment tax Licenses Cash at bank Permit Revenue...
-
A cheerleader lifts his 22.3 kg partner straight up off the ground a distance of 0.579 m before releasing her. Assume the partner's velocity is zero at the beginning and the end of the lift. The...
-
You own a building that a local business wants to rent for the next ten years. The business owner has offered to pay $ 7 5 , 0 0 0 today or $ 1 2 , 0 0 0 each year's end for the next ten years. If...
-
How do advancements in surveillance technologies and data analytics impact the balance between individual privacy rights and the collective need for social control, and what policy frameworks are...
-
approach those three principles :1) corporate personality, 2)corporate governance and corporate social responsibility ,3) shareholders rights and remedies and relate them to the 3 cases: 1) Okpabi...
-
The separate legal entity theory for corporations involves the notion of a corporate veil.What is the purpose and effect of the corporate veil? REQUIRED Explain the attributes of a company once it...
-
The spot rate of the Mexican peso is $.049. Assume that purchasing power parity holds. The U.S. inflation rate over this year is expected to be 3%, whereas Mexican inflation over this year is...
-
Horse serum containing specific antibody to snake venom has been a successful approach to treating snakebite in humans. How do you think this anti-venom could be generated? What are some advantages...
-
Brian and Kim have a 12-year-old child, Stan. For 2012, Brian and Kim have taxable income of $52,000, and Stan has nonqualifying dividend income of $4,500 and investment expenses of $250. No election...
-
Mike sells his home to Jane on April 2, 2012. Jane pays the property taxes covering the full calendar year in October, which amount to $2,500. How much may Mike and Jane each deduct for property...
-
Clifford Johnson has a limited partnership investment and a rental condominium. Clifford actively manages the rental condominium. During 2012, his share of the loss from the limited partnership was...
-
In a(n)________ numbering system, all numeric values are written as sequences of 0s and 1s. a. hexadecimal b. binary c. octal d. decimal
-
What is a program?
-
List the five major components of a computer system.
Study smarter with the SolutionInn App