Our academic experts are ready and waiting to assist with any writing project you may have. From simple essay plans, through to full dissertations, you can guarantee we have a service perfectly matched to your needs.
GET A 40% DISCOUNT ON YOU FIRST ORDER
Write the definition of the class dayType that implements theday of the week in a program. The class dayType should store theday such as Sunday for Sunday. The program should be able toperform the following operations on an object of type dayType:a. Set the day.b. Print the day.c. Return the day.d. Return the next day.e. Return the previous day.f. Calculate and return the day by adding certain days to thecurrent day. For example if the current day is Monday and we add 4days the day to be returned is Friday. Similarly if today isTuesday and we add 13 days the day to be return is Monday.g. Add the appropriate constructors.