Design and implement a class called DayType that implements the day of the week in a program. The class DayType should store the day, such as Sun for Sunday, Mon for Monday and so on and so forth. The program should be able to perform the following operations on an object of type of
DayType:
Set the day
Print the day
Return the day
Return the next day
Return the previous day
Calculate and return the day by adding and subtracting certain days to the current day (i.e if current day is Monday and we add 6 days, the day to be returned is Sunday. Similarly is we subtract 3 days, the day to be return is Friday)
Instructions
1. Define DayType class – appropriate methods and constructor
2. Your program should get the input/output via the main method and pass appropriate arguments through the class methods.
3. Your program should continuously running until it receives a special signal (character/number) in which the program will exit.
4. Compile and run
5. Write a short description on what you have done in your program