Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

i need correct answrrs 2 .

Answered: 1 week ago