I need some who can really help please!! The first question is about dayTpe a) s
ID: 3613833 • Letter: I
Question
I need some who can really help please!! The first question is about dayTpe a) set the day, b) Print the day, c) Return the day; d)Return the next day; f) return the day g) return previous day, and calculate and return the day by adding certain daysto the the current day . for example, if the current day is Mondayand we add 4 days, the day to be returned is friday, similarly, istoday is Teusday and we add 13 days, the day to be returned isMonday I need some who can really help please!! The first question is about dayTpe a) set the day, b) Print the day, c) Return the day; d)Return the next day; f) return the day g) return previous day, and calculate and return the day by adding certain daysto the the current day . for example, if the current day is Mondayand we add 4 days, the day to be returned is friday, similarly, istoday is Teusday and we add 13 days, the day to be returned isMondayExplanation / Answer
please rate - thanks best I can do with what you've defined #include #include using namespace std; class dayType { public: void dayType::setdays() { days[0] = "Sunday"; days[1] = "Monday"; days[2] = "Tuesday"; days[3] = "Wednesday"; days[4] = "Thursday"; days[5] = "Friday"; days[6] = "Saturday"; } dayType::dayType(string d) {day=d; setdays(); } string dayType::prev() {int i; for(i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.