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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter18: Stacks And Queues
Section: Chapter Questions
Problem 18PE
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage