Your swim school has two swimming instructors, Jeff and Anna.Their current sched
ID: 3644302 • Letter: Y
Question
Your swim school has two swimming instructors, Jeff and Anna.Their current schedules are shown below. An "X" denotes a one-hourtime slot that is occupied with a lesson.Write a program with array(s) capable of storing theschedules. Create a main menu that allows the user to mark a timeslot as busy or free for either instructor. Also, add an option tooutput the schedules to the screen. Next, add an option to outputall time slots available for individual lessons ( slots when atleast one instructor is free). Finally, add an option to output alltime slots available for group lessons ( when both instructors arefree).
Explanation / Answer
#include #include using namespace std; void scedulejeff (char [][4]); void sceduleanna (char [][4]); void Print2DArray(char [][4]); int X; int main() { char jeffarray [4][4]; char annaarray [4][4]; char instructor; cout > instructor; if ((instructor == 'j') || (instructor == 'J')) { scedulejeff (jeffarray); } else if ((instructor == 'a') || (instructor == 'A')) { scedulejeff (annaarray); } else { cout day; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.