Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++ need help ASAP NEEDED FILES: myDate.h myDate.cpp Student.h Student.cpp main.cpp birthdays.txt The problem 1. 2. Create a class called myDate with month, date,

In C++ need help ASAP

image text in transcribed

NEEDED FILES:

myDate.h

myDate.cpp

Student.h

Student.cpp

main.cpp

birthdays.txt

The problem 1. 2. Create a class called myDate with month, date, and year fields Overload the>> operator for the class to read a date in the format mm/dd/vyyy a. E.g, 09/25/2017 should read 9 in the field month, 25 in the field date and 2017 in the field year Create a class called Student with fields name and birthday. Name should be of type string and birthday should be of type myDate. 3. 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/ywyy Bob 6. 7. 8. Print the oldest and youngest students' name and birthdays BONUS-Throw an error if the format of the date is wrong BONUS 2-Validate the date based on the calendar, e.g., 02/30/2017 should throw an error because February has only 28 days in 2017

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

The Database Factory Active Database For Enterprise Computing

Authors: Schur, Stephen

1st Edition

0471558443, 9780471558446

More Books

Students also viewed these Databases questions