DESCRIPTIONS OF PROBLEM: Define a superclass Person and class Date based on the UML diagram given below: Person Date firstName lastName dd dateOfJoin mm раyment уу calPay0 Employee Student Researcher credit type salary rate calPay() calPay() SAMPLE OF OUTPUT: Output: 1] Student 2]Employee 3] Researcher or 0 to exit:> 2 Enter first name, last name and date of join Manal Adnan 22 3 2017 Status [ T or P]: P 1] Student 2]Employee 3] Researcher or 0 to exit:> 1 Enter first name, last name and date of join Ali Basher 21 2 2017 Credit:> 5 Rate:> 500
DESCRIPTIONS OF PROBLEM: Define a superclass Person and class Date based on the UML diagram given below: Person Date firstName lastName dd dateOfJoin mm раyment уу calPay0 Employee Student Researcher credit type salary rate calPay() calPay() SAMPLE OF OUTPUT: Output: 1] Student 2]Employee 3] Researcher or 0 to exit:> 2 Enter first name, last name and date of join Manal Adnan 22 3 2017 Status [ T or P]: P 1] Student 2]Employee 3] Researcher or 0 to exit:> 1 Enter first name, last name and date of join Ali Basher 21 2 2017 Credit:> 5 Rate:> 500
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Java
![DESCRIPTIONS OF PROBLEM:
Define a superclass Person and class Date based on the UML diagram given below:
Person
Date
firstName
lastName
dd
dateOfJoin
mm
payment
y
calPay()
Employee
type
salary
Student
Researcher
credit
rate
calPay()
calPay()
SAMPLE OF OUTPUT:
Output:
1] Student 2]Employee 3] Researcher or 0 to exit:> 2
Enter first name, last name and date of join
Manal
Adnan
22 3 2017
Status
T or P]: P
1] Student 2]Employee 3] Researcher or 0 to exit:> 1
Enter first name, last name and date of join
Ali
Basher
21 2 2017
Credit:> 5
Rate:> 500](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fc65eee65-ff68-44e6-82e1-bee6d71eb203%2F5cbedee7-fa6b-47de-8cd4-74ffa5a10b15%2F2vs0j2c_processed.jpeg&w=3840&q=75)
Transcribed Image Text:DESCRIPTIONS OF PROBLEM:
Define a superclass Person and class Date based on the UML diagram given below:
Person
Date
firstName
lastName
dd
dateOfJoin
mm
payment
y
calPay()
Employee
type
salary
Student
Researcher
credit
rate
calPay()
calPay()
SAMPLE OF OUTPUT:
Output:
1] Student 2]Employee 3] Researcher or 0 to exit:> 2
Enter first name, last name and date of join
Manal
Adnan
22 3 2017
Status
T or P]: P
1] Student 2]Employee 3] Researcher or 0 to exit:> 1
Enter first name, last name and date of join
Ali
Basher
21 2 2017
Credit:> 5
Rate:> 500
![1] Student 2]Employee 3] Researcher or 0 to exit:> 3
Enter first name, last name and date of join
Alaa
Quraishi
21 2 2017
1] student 2]Employee 3] Researcher or 0 to exit:> 2
Enter first name, last name and date of join
Najla
Habshi
21 2 2017
status [T or P]: T
Hours of working: 8
Paysheetn 1438/1439
Date of join
22/03/2017
No
Name
Amount to pay
Manal Adnan
[P]
SR
10 000.00
2
Ali Basher
21/02/2017
SR
2500.00
Alaa Quraishi [R]
21/02/2017
SR
4000.00
4
Najla Habshi
[T]
21/2/2017
SR
1600.00](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fc65eee65-ff68-44e6-82e1-bee6d71eb203%2F5cbedee7-fa6b-47de-8cd4-74ffa5a10b15%2F00zzu19_processed.jpeg&w=3840&q=75)
Transcribed Image Text:1] Student 2]Employee 3] Researcher or 0 to exit:> 3
Enter first name, last name and date of join
Alaa
Quraishi
21 2 2017
1] student 2]Employee 3] Researcher or 0 to exit:> 2
Enter first name, last name and date of join
Najla
Habshi
21 2 2017
status [T or P]: T
Hours of working: 8
Paysheetn 1438/1439
Date of join
22/03/2017
No
Name
Amount to pay
Manal Adnan
[P]
SR
10 000.00
2
Ali Basher
21/02/2017
SR
2500.00
Alaa Quraishi [R]
21/02/2017
SR
4000.00
4
Najla Habshi
[T]
21/2/2017
SR
1600.00
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 2 steps with 4 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education