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

DISPLAY LOCAL DATE TIME USING VALUES FROM THE PARAMETERS

  100% Pass and No Plagiarism Guaranteed

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: DISPLAY LOCAL DATE TIME USING VALUES FROM THE PARAMETERS
  • Price: £ 109
  • Post Date: 2020-04-04T09:48:01+00:00
  • Category: Assignment Queries
  • No Plagiarism Guarantee
  • 100% Custom Written

Customer Reviews

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

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

The rates are a bit expensive for me of the essay writing service but the overall look is amazing. The references and formatting are done beautifully. So, I feel that the high rates are worth all these qualities. I want to thank you for great help.
Reviews: 5

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

Very professional and effective assignment writing service.