odify class date Do full code if date. H date. Cpp and main. Cpp.  Attach screenshot of output

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Modify class date

Do full code if date. H date. Cpp and main. Cpp.  Attach screenshot of output and input as well

Il default constructor: read the current system date
Il constructor using ddd yyyy format
Il constructor using dd/mm/yy format e.g. 23, 1, 1998
Date( string, int, int ); // constructor using Month dd, yyyy format e.g. January, 20, 1998
Dat e();
Date( int, int );
Date( int, int, int );
e.g. 254, 1998
void print() const3;
void printDDDYYYY() const;
void printMMDDYY() const;
void printMonthDDYYYY) const; / print date in Month dd, yyyy format
/ print date in month/day/year format
I/ print date in ddd yyyy format
Il print date in mm/dd/yy format
int checkDay( int ) const;
int daysInMonth( int ) const;
bool isLeap Year() const;
int convertDDToDDDO const;
void setMMDDFromDDD( int );
string convertMMTOMonth( int) const;
void setMMFromMonth( string );
int convertYYYYToYY() const;
Il check if day is proper for month and year
Il returns number of days in given month
I/ indicates whether date is in a leap year
Il get 3-digit day based on month and day
Il set month and day based on 3-digit day
Il convert mm to month name
Il convert month name to mm
Il get 2-digit year based on 4-digit year
Il set year based on 2-digit year
void setYYYYFromYY(int );
L diagram for modified class Date
Transcribed Image Text:Il default constructor: read the current system date Il constructor using ddd yyyy format Il constructor using dd/mm/yy format e.g. 23, 1, 1998 Date( string, int, int ); // constructor using Month dd, yyyy format e.g. January, 20, 1998 Dat e(); Date( int, int ); Date( int, int, int ); e.g. 254, 1998 void print() const3; void printDDDYYYY() const; void printMMDDYY() const; void printMonthDDYYYY) const; / print date in Month dd, yyyy format / print date in month/day/year format I/ print date in ddd yyyy format Il print date in mm/dd/yy format int checkDay( int ) const; int daysInMonth( int ) const; bool isLeap Year() const; int convertDDToDDDO const; void setMMDDFromDDD( int ); string convertMMTOMonth( int) const; void setMMFromMonth( string ); int convertYYYYToYY() const; Il check if day is proper for month and year Il returns number of days in given month I/ indicates whether date is in a leap year Il get 3-digit day based on month and day Il set month and day based on 3-digit day Il convert mm to month name Il convert month name to mm Il get 2-digit year based on 4-digit year Il set year based on 2-digit year void setYYYYFromYY(int ); L diagram for modified class Date
Date
- month : int
- day : int
year: int
<<constructor>> + Date();
<<constructor>> + Date( int, int );
<<constructor>> + Date( int, int, int );
<<constructor>> + Date( string, int, int );
+ void setDay( int )
+ void setMonth( int)
+ void print() const;
+ void printDDDYYYY() const
+ void printMMDDYY() const
+ void printMonthDDYYYY() const
- int checkDay( int ) const
- int daysInMonth( int ) const
- bool isLeap Year() const
- int convertDDToDDD0 const
- void setMMDDFromDDD( int )
- string convertMMToMonth( int ) const
- void setMMFromMonth( string)
- int convertYYYYToYY() const
UML diagram for modified class Date:
Transcribed Image Text:Date - month : int - day : int year: int <<constructor>> + Date(); <<constructor>> + Date( int, int ); <<constructor>> + Date( int, int, int ); <<constructor>> + Date( string, int, int ); + void setDay( int ) + void setMonth( int) + void print() const; + void printDDDYYYY() const + void printMMDDYY() const + void printMonthDDYYYY() const - int checkDay( int ) const - int daysInMonth( int ) const - bool isLeap Year() const - int convertDDToDDD0 const - void setMMDDFromDDD( int ) - string convertMMToMonth( int ) const - void setMMFromMonth( string) - int convertYYYYToYY() const UML diagram for modified class Date:
Expert Solution
steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY