Question: C++ Program 1. Create a class called myDate with month, date, and year fields 2. Overload the >> operator for the class to read a
C++ Program
1. Create a class called myDate with month, date, and year fields
2. Overload the >> operator for the class to read a date in the format mm/dd/yyyy a. E.g., 09/25/2017 should read 9 in the field month, 25 in the field date and 2017 in the field year.
3. Create a class called Student with fields name and birthday. Name should be of type string and birthday should be of type myDate.
4. Overload >, <, <=, >= to compare two objects of type myDate .
5. From a file called birthdays.txt, read a list of student birthdays in the format:
mm/dd/yyyy Alice
mm/dd/yyyy Bob
6. Print the oldest and youngest students name and birthdays.
**The program includes these files:
myDate.h
myDate.cpp
Student.h
Student.cpp
progExam1.cpp
birthdays.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
