Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hello, this question for my Introduction to Data Structures using C++. Your help

ID: 667894 • Letter: H

Question

Hello, this question for my Introduction to Data Structures using C++. Your help will be appreciated! Thank you.

Write the definition of the class dayType that implements the day of the week in a program. The class dayType should store the day, such as a number. E.g., store Sunday as 0. The program should be able to perform 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 the current day. For example, if the current day is Monday and we add 4 days, the day to be returned is Friday. Similarly, if today is Tuesday and we add 13 days, the day returned is Monday.

g. Add the appropriate constructors.

Explanation / Answer

dayType.cpp