Question: Write a C+ + code to create a class date. Using this class calculate the age of a person as on current date. Input D.O.B.
Write a C+ + code to create a class date. Using this class calculate the age of a person as on current date.
Input D.O.B. from user. Estimate present date from system state and then calculate the age using given class and its methods.
(b) Write a C++ code to create a class date. Using this class calculate the age of a person as on current date. 10
Step by Step Solution
There are 3 Steps involved in it
To solve this problem we need to create a C class named Date that allows us to calculate a persons age based on their date of birth The class will use ... View full answer
Get step-by-step solutions from verified subject matter experts
