write a program that computes and displays the number of days that have elapsed between January 1, 1900 and today (the day the program is run). The program must be designed as follows:

write a program that computes and displays the number of days that have elapsed between January 1, 1900 and today (the day the program is run).
The program must be designed as follows:
Within a class named Elapsed_Days, provide the following functions:
• bool is_year_valid(long year)
returns true if year is >= 1900; otherwise false
• bool is_month_valid(long month)
returns true if month is between 1 and 12 (inclusive); otherwise false
• bool is_leap_year(long year) returns true if year is a leap year
• long return_days_in_month(long year, long month) returns the number of days for the month month in year year
• long return days_in_year(year) returns the number of days in year
• void set_elapsed_days(long elapsed_days) sets the field value set_elapsed_days
• long get_elapsed_days()
returns the field value set_elapsed_days
• void compute_elapsed days()
returns the number of days elapsed between January 1, 1900 and the day the program is run
• void display_elapsed_days()
displays the number of days elapsed in the form “The number of days elapsed since Jan 1, 1900 is xxxx.” Where xxxx is the number of the elapsed days
• A constructor that determines the number of elapsed days
• A suitable destructor
Within a main(…) driver function:
• Instantiates an instance of elapsed_days
• Displays the number of elapsed days

 

c++

Looking for a similar assignment? Get help from our qualified experts!

Order Now

Don't use plagiarized sources. Get Your Custom Essay on
write a program that computes and displays the number of days that have elapsed between January 1, 1900 and today (the day the program is run). The program must be designed as follows:
Just from $8 /Page 0r 300 words
Order Now