DISPLAY LOCAL DATE TIME USING VALUES FROM THE PARA

DISPLAY LOCAL DATE TIME USING VALUES FROM THE PARAMETERS

The primary theme of the paper is DISPLAY LOCAL DATE TIME USING VALUES FROM THE PARAMETERS in which you are required to emphasize its aspects in detail. The cost of the paper starts from $109 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.

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