IN C++ PLEASE!! Design and implement a programming (name it NextMeeting) to determine the day of your next meeting from today. The program reads from the user an integer value representing today’s day (assume 0 for Sunday, 1 for Monday, 2 for Tuesday, 3 for Wednesday, etc…) and another integer value representing the number of days to the meeting day. The program determines and prints out the meeting day. Format the outputs following the sample runs below.
#include <iostream> #include <string> using namespace std; int main() { int n1, n2; string days[] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}; cout << "What is the current day[0-6]: "; cin >> n1; cout << "How many days: "; cin >> n2; cout << "Today is " << days[n1] << endl; cout << "Days to the meeting is " << n2 << " days" << endl; cout << "Meeting day is " << days[(n1 + n2) % 7] << endl; return 0; }
Get Answers For Free
Most questions answered within 1 hours.