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
icon
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
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
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
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Predicate
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
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education