The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Design and Implement a class dateTypethat manages a calendar. The class dateType should store day, month, year and display it in the following format (01-May-1998). For any object of dateType, your program should be able to perform the following operations on that object.
1. Set the date
2. Get the date
3. Display the date
4. Increment the day by 1
5. Increment the month by 1
6. Increment the year by 1
7. Create another object of dateType and compare it with the object you created earlier; determine whether they are equal or not.
8. Increment the day, month or year by certain number, suppose the date is 29-4-1976 and we add 4 days to it, now the date should be 3-5-1976.
Your class should be defined like this
Class dateType
{
private:
int day;
int month;
int year;
string mon; //Month name
public:
//define functions here with appropriate parameters and //return type.
}
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------sol-----------uti-----------on.-----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- ca-----------tch-----------