Write the program, which has two classes one, is Date having members (day, month, year) and the other class is called Employee. The employee has Date class as member as each employee has Date of joining, Date of Birth etc. a. Determine if an employee joined the organization within last five years if the current year is 2012. b. Determine if an Employee has age less than 40 years?

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 14PE
icon
Related questions
Question
Write the program, which has two classes one, is Date having members (day, month,
year) and the other class is called Employee. The employee has Date class as member
as each employee has Date of joining, Date of Birth etc.
a. Determine if an employee joined the organization within last five years if
the current year is 2012.
b. Determine if an Employee has age less than 40 years?
Transcribed Image Text:Write the program, which has two classes one, is Date having members (day, month, year) and the other class is called Employee. The employee has Date class as member as each employee has Date of joining, Date of Birth etc. a. Determine if an employee joined the organization within last five years if the current year is 2012. b. Determine if an Employee has age less than 40 years?
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
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