WRITE A C++ PROGRAM THAT STORES INFORMATION FOR DA

WRITE A C++ PROGRAM THAT STORES INFORMATION FOR DATE TIME OBJECTS INCLUDING DATETIME

The primary theme of the paper is WRITE A C++ PROGRAM THAT STORES INFORMATION FOR DATE TIME OBJECTS INCLUDING DATETIME in which you are required to emphasize its aspects in detail. The cost of the paper starts from $120 and it has been purchased and rated 4.9 points on the scale of 5 points by the students. To gain deeper insights into the paper and achieve fresh information, kindly contact our support.

Write a C++ program that stores information for date‐time objects including DateTime, WeekDay, Age, and Days2Go objects. The program will display all the object information using the display() function provided by the objects.

 

Note

      Use a single vector to store information for all objects. Arrays, and other data structures are not allowed.

      When displaying information, the corresponding display() function of the object should be used.

      E.g. DateTime object will display local date time and Age object will display birthdate, current date and age.

    You may have to modify the class interface(s) to enable polymorphism.

    There is no need to implement error exception.

    Adjust current date to 15 Apr 2015.

      You have to submit date.h, date.cpp, task_2_5.cpp and task_2_5.txt containing compilation messages and sample runs.

     Dates to be stored:

 

DateTime: 1990, Jan, 7, 14:15:16

DateTime: 2000, Mar, 14, 14:15

DateTime: 2015, Apr, 15, 14 hour

DateTime: 2015, Apr, 10

DateTime: 2015, Feb, 16

DateTime: 2000, Feb, 16

 

WeekDay: 1990, Jan, 7, 14:15:16

WeekDay: 2000, Mar, 14, 14:15

WeekDay: 2015, Apr, 15, 14 hour

WeekDay: 2015, Apr, 10

WeekDay: 2015, Feb, 16

WeekDay: 2000, Feb, 16

 

Age: 1990, Jan, 7, 14:15:16

Age: 2000, Mar, 14, 14:15

Age: 2015, Apr, 15, 14 hour

Age: 2015, Apr, 10

Age: 2015, Feb, 16

Age: 2000, Feb, 16

 

Days2Go: 1990, Jan, 7, 14:15:16

Days2Go: 2000, Mar, 14, 14:15

Days2Go: 2015, Apr, 15, 14 hour

Days2Go: 2015, Apr, 10

Days2Go: 2015, Feb, 16

Days2Go: 2000, Feb, 16

 

    Expected output: (current date is 15 Apr 2015)

 

01/07/90 14:15:16

03/14/00 14:15:00

04/15/15 14:00:00

04/10/15 00:00:00

02/16/15 00:00:00

02/16/00 00:00:00

01/07/90 14:15:16 is Sunday

03/14/00 14:15:00 is Tuesday

04/15/15 14:00:00 is Wednesday

04/10/15 00:00:00 is Friday

02/16/14 00:00:00 is Saturday

02/16/00 00:00:00 is Wednesday

Birthday: 01/07/90 14:15:16

Current date: 04/15/15 10:21:59

Age is 26 years old. Birthday: 03/14/00 14:15:00

Current date: 04/15/15 10:21:59

Age is 16 years old.

Birthday: 04/15/15 14:00:00

Current date: 04/15/15 10:21:59

Age is 1 days old.

Birthday: 04/10/15 00:00:00

Current date: 04/15/15 10:21:59

Age is 6 days old.

Birthday: 02/16/15 00:00:00

Current date: 04/15/15 10:21:59

Age is 3 months old. Birthday: 02/16/00 00:00:00

Current date: 04/15/15 10:21:59

Age is 16 years old. Birthday: 01/07/90 14:15:16

Current date: 04/15/15 10:21:59

Days before next birthday: 267

Birthday: 03/14/00 14:15:00

Current date: 04/15/15 10:21:59

Days before next birthday: 333

Birthday: 04/15/15 14:00:00

Current date: 04/15/15 10:21:59

Days before next birthday: 0

Birthday: 04/10/15 00:00:00

Current date: 04/15/15 10:21:59

Days before next birthday: 360

Birthday: 02/16/15 00:00:00

Current date: 04/15/15 10:21:59

Days before next birthday: 307

Birthday: 02/16/00 00:00:00

Current date: 04/15/15 10:21:59

Days before next birthday: 307

 

You should also use your own test cases to test for error inputs.

 

Marking Criteria

Marks

Use of vector

5

Use of iterator

5

Storing data

5

Retrieving data

5

Polymorphic form of display()

5

Compilation messages and sample run outputs (if the program runs correctly)

5

 

100% Plagiarism Free & Custom Written, Tailored to your instructions