We're Open
+44 7340 9595 39
+44 20 3239 6980

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

  100% Pass and No Plagiarism Guaranteed

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

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


International House, 12 Constance Street, London, United Kingdom,
E16 2DQ

UK Registered Company # 11483120


100% Pass Guarantee

STILL NOT CONVINCED?

View our samples written by our professional writers to let you comprehend how your work is going to look like. We have categorised this into 3 categories with a few different subject domains

View Our Samples

We offer a £ 2999

If your assignment is plagiarised, we will give you £ 2999 in compensation

Recent Updates

Details

  • Title: [Solved] WRITE A C++ PROGRAM THAT STORES INFORMATION FOR DATE TIME OBJECTS INCLUDING DATETIME
  • Price: £ 110
  • Post Date: 2021-10-25T04:43:11+00:00
  • Category: Assignment Queries
  • No Plagiarism Guarantee
  • 100% Custom Written

Customer Reviews

[Solved] WRITE A C++ PROGRAM THAT STORES INFORMATION FOR DATE TIME OBJECTS INCLUDING DATETIME [Solved] WRITE A C++ PROGRAM THAT STORES INFORMATION FOR DATE TIME OBJECTS INCLUDING DATETIME
Reviews: 5

A masterpiece of assignment by , written on 2020-03-12

My order went 3 hours late and I also went mad. Then the customer support team calmed me down and offered me a flat discount of 50%. However, I did get my order and chilled out as the work was exactly what I requested. Next time I would place my order a bit sooner to save any trouble.
Reviews: 5

A masterpiece of assignment by , written on 2020-03-12

This is my second order which I booked recently at Insta Research. I just got my coursework completed expertly. Just waiting for good scores now.