Starting from:

$24.99

MATH208 Project 1 Solution

3. Operations
Implement at least the following operations:
(b) DateSub(date1, date2)
Return number of days from date1 to date2.
And then write a program to demonstrate the usage of the new data type according to the following requirements.
2 Input Format
There are 3 types of input format:
1. yyyy/mm/dd
2. yyyy/mm/dd - YYYY/MM/DD
3. yyyy/mm/dd + x
3 Output Format
“yyyy/mm/dd”.
Notes
(a) Description of the design of your program and the data structures used in your program.
(b) List of your program with comments.
(c) Outputs of the compilation and the executions of your program.
(d) In addition to the basic requirements specified in the assignment, functions or features you have implemented.
(e) Interesting thing you have learned from this assignment.
2. The output of the program execution should indicate the correctness of your program. In other words, a set of comprehensive (but not necessarily exhaustive) annotated test data for the problem should be provided to show that your program is indeed correct. This can be done by carefully selecting a set of test data.
3. Include assignment number, your name, student number and email address on the first page of your report.
4. Print or write the report on A4 papers. Bind them together in the upper left corner.

More products