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

[Solved] DISPLAY LOCAL DATE TIME USING VALUES FROM THE PARAMETERS

  100% Pass and No Plagiarism Guaranteed

[Solved] DISPLAY LOCAL DATE TIME USING VALUES FROM THE PARAMETERS

In this paper, you are required to derive class Week-Day from class Date-Time. You are required to display local date time using values from the parameters.

Derive class WeekDay from class DateTime such that WeekDay::display() will display local date time using values from the parameters and the corresponding weekday. For a handy online weekday calculator: What Day is this Date? 

 

class WeekDay : public DateTime {

public:

WeekDay(int y, int m, int d, int h = 0, int min = 0, int s = 0);

void display();

};

 

Implement

    WeekDay(int y, int m, int d, int h = 0, int min = 0, int s = 0);

    Validate the parameter values the same ways as in DateTime().

    void display();

    display the local date time and the corresponding weekday.

You have to provide:

    a header file weekday.h with code to prevent multiple inclusion.

    an class implementation file weekday.cpp.

    a text file task_2_2.txt containing compilation messages and sample runs.

 

Note

    You have to include the code for class DateTime in weekday.h and weekday.cpp.

      Do not modify DateTime and WeekDay class public and protected sections. You may add private members (data/functions) only.

    There is no need to implement error exception.

 

You may use sample_WD_app.cpp to test your implementation. Expected output:

 

C:>a

01/02/15 03:04:05 is Friday

01/02/15 03:04:00 is Friday

01/02/15 03:00:00 is Friday

01/02/15 00:00:00 is Friday

 

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

 

Marking Criteria

Marks

WeekDay()

2

display()

2

weekday.h with code to prevent multiple inclusion.

2

weekday.cpp

2

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

2

 

 


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] DISPLAY LOCAL DATE TIME USING VALUES FROM THE PARAMETERS
  • Price: £ 99
  • Post Date: 2021-10-25T04:42:41+00:00
  • Category: Assignment Queries
  • No Plagiarism Guarantee
  • 100% Custom Written

Customer Reviews

[Solved] DISPLAY LOCAL DATE TIME USING VALUES FROM THE PARAMETERS [Solved] DISPLAY LOCAL DATE TIME USING VALUES FROM THE PARAMETERS
Reviews: 5

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

CIPD assignment is not my cup of tea. That’s the reason I sought out this place suggested by my friend. I would say that the writers of this site are really admiring. I was assigned the best CIPD writer that solved all my issues. He explained to me the difficult topics so well that now I am able to talk on those topics eloquently. I owe my writer a huge thanks and praise! And yes, I would recommend other students as well to come to instaresearch.co.uk for the top CIPD assignment help.
Reviews: 5

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

Very professional and effective assignment writing service.