Hey im having trouble with this homework, i will rate to anyone whoanswers Your
ID: 3618217 • Letter: H
Question
Hey im having trouble with this homework, i will rate to anyone whoanswers
Your swim school has two swimming instructors, Jeff and Anna. Theircurrent schedules are shown below. An "X" denotes a one-hour timeslot that is occupied with a lesson
Jeff.......Monday.....Tuesday ....Wednesday.....Thursday
11-12.......X.................. X
12-1 ............... ......... X...............X...................X
1-2 ...........................X............…
2-3 ...........X...............X............…
Anna.......Monday.....Tuesday ....Wednesday.....Thursday
11-12.........X................ X.................................X
12-1 ............... ..........X....................................X
1-2 ...........X...............X............…
2-3 ...........X.......... ............. ..............X ...........X
Write a program with array(s) capable of storing the schedules.Create a main menu that allows the user to mark a time slot as busyor free for either instructor. Also, add an option to ouput theschedules to the screen. Next, add an option to output all timeslots available for invidual lessons (slots when at least oneinstructor is free). Finally, add an option to output all timeslots available for group lessons (when both instructors arefree).
What I need
- as indicated in the problem description: 2two-dimensional arrays, one for Jeff’s schedule, and one forAnna’s
- a main menu that provides options to the user
- a function that prints the schedule
- a function that prompts the user to select an instructor, day,and slot
- a function that prompts the user, then schedules or frees oneof the instructor's slots. This function calls the secondfunction described above.
Explanation / Answer
please rate - thanks #include #include using namespace std; void set(char[][4],char[][4],char); void output(char[][4],string); void individual(char[][4],char[][4]); void group(char[][4],char[][4]); void getinfo(int&,int&,int&); int main() {char jeff[4][4],anna[4][4]; int i,j; int choice=0; 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.