Write a java program as shown in the following UML class diagram:(read the details below
Write a java program as shown in the following UML class diagram:(read the details below
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Write a java

Transcribed Image Text:QURN
- firsti String
- initial: char
- last : String
• Name (): void
+ Name (String aFirst, char aninitial,
String alast) ivoid
* read() i void
• getPirst (): String
+ getInitial(0 : char
• getlast () : String
+ setFirst (String newFirst) : void
• setinitial (char newInitial) : void
• void setlast (String newLast) I void
• tostring ( I String
* equals (Name other) : boolean
Date
- int month : int
- int day : int
- int year : int
+ Date () : void
• Date (int aMonth, int aDay, int aYear) : void
+ read () : void
* getMonth () i int
* get Day () : int
* getYear () int
* setMonth (int newMonth) : void
+ setDay (int newbay) : void
+ setYear (int newYear) : void
+ tostring (): String
+ equala (Name other) i boolean
Employee
* emplane : Name
* hirebate : Date
• Employeet: void
• Employee (Nane alame, Date abate) i void
• read) : vold
+ getimplane ( : Name
• getkirebatet) : Date
• setmplane (Nane nevinplane): void
+ setirebate(Date neirebate) : void
• tostringt) : String
• equals (Nane other) i boolean
HourlyEnployee
SalariedEmployee
hourlyRate i double
hoursWorked : double
- annualSalary: double
+ Salariedinployee() i void
+ Salariedimployee (Name animpliane,
Date anHirebate, double ansalary) : void
+ read () : void
+ double getAnnualSalary() : double
+ void setAnnualSalary(double nevRate) : void
+ tostring () : String
+ equals(Salariedinployee other) : boolean
* grossPay () double
Kourlytnployee ()1 vold
* Hourlytmployee (Name antnplane,
Date alirebate, double ankate,
double antoura) I vold
• read0 vold
• getkour lykate()i double
double get Hourslorked () : double
• vold setlour lyRate(double nevRate) 1 void
setkour sWorked (double neviiours): vold
• tostring() I String
+ equals(HourlyEnployee otheri boolean
double grossPay()
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 8 steps with 13 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY