Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It must done in Java, not c++. This is a clearer picture I guess. Must be done in java. Instructions: You must upload the java

It must done in Java, not c++. image text in transcribed
This is a clearer picture I guess. Must be done in java. image text in transcribed
Instructions: You must upload the java file(s) in Google Classroom Late submission will not be allowed. The solution that you submit must be your own work Plagiarism will lead to a straight zero. Question 01: Implement the following UML dass diagrams and test their methods department Song Employee Personne Sorg address: gebers -seters preson Sering designation pply Song Fugle Partemployee hours double -alte double - Part TimeEmployeerame Sermont address Song department Stone estion ang hours tout geniers-seters la double ango Saring Pulimemployeerane Sensage: address: Sangeet San en songs getters - double ng sang For Part Time Employee hours is the total hours employee worked, Le.20 rate is the per hour rate, le 80 So, salary = 20 80 1600 For FulTimeEmployee: basic is the base salary, Le 15000 Allowance is usually provided as a percentage. Le 25% So, Total salary = 15000 - 25% of 15000 = 18750 Create two objects of Part TimeEmployee and FullTimeEmployee. Then call the toString and salary0 methods to show the details and their salaries respectively FulTimeEmployee te= new Full TimeEmpioyee("Rais". 27. "Farmgate". "ECE. *Professor, 15000, 25) Part TimeEmployee ple = new Part Time Employee Kabir, 35. Mirpur. "ECE "Associate Professor 20, 80) 6:53 4 Lab Final.pdf Question 01: Implement the following UML class diagrams and test their methods department Shring designationem Swing . -adressing Persontra String age address: others-seters Prson: Sering department design proyes 4 Fun - do Partemployee house - double Partimeployerme: Sering Song Sepatu Sang desting ale double - V - salaryo conth Sing Sering SES designation owned Porte- doute ring Sering For Part TimeEmployee hours is the total hours employee worked, i.e. 20 rate is the per hour rate, le 30 So, salary = 20 80 = 1600 For Full TimeEmployee: basic is the base salary, le 15000 Allowance is usually provided as a percentage, le 25% So. Total salary 15000 25% of 15000 = 18750 Create two objects of Part TimeEmployee and Full TimeEmployee. Then call the toString and salary() methods to show the details and their salaries respectively. FulTimeEmployee fte= new FulTimeEmployee("Raidur27, "Farmgate". "ECE. "Professor, 15000.25) Part TimeEmployee pte new Part TimeEmployee(Kabir, 35. Mirpur". ECE Associate Professor, 20, 80); Question 02: Implement the following UML class diagrams which include an abstract class Employee, an interface TaxCalculator, and a child dass Faculty

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

=+2. Do they use a similar tone of voice and point of view?

Answered: 1 week ago