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.