Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HERES THE OUT PUT OF THE PROGRAM:: PLEASE CODE IN C++ USE 2D ARRAYS A swim school has two swimming instructors, Jeff and Anna. Their

image text in transcribed

HERES THE OUT PUT OF THE PROGRAM::

image text in transcribedPLEASE CODE IN C++ USE 2D ARRAYS

A swim school has two swimming instructors, Jeff and Anna. Their current schedules are shown below. An "X" denotes a 1-hour time slot that is occupied with a lesson. Mon Tue Wed Thu 11-12 12-1 X Mon Tue Wed Thu 11-12 X 12-1 2-3 Enter one of the following commands p-Print schedules s-Schedule a slot F-Free a slot 1Show slots available for individual lessons R-Show slots available for group lessons a-Quit 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 busy or free for either instructor. Also, add an option to output the schedules to the screen. Next, add an option to output all time slots available for individual lessons (slots when at least one instructor is free). Finally, add an option to output all time slots available for group lessons (when both instructors are free). Your program must use two 2-D arrays for the schedules. In addition, you must use at least three functions to: Prints a schedule to the screen Prompts the user to select an instructor, day, and slot Prompts the user to schedule or free one of the instructor's slots. Modify the above Project by adding menu options to load and save the schedules from a file. You must use at least two additional functions. .A function to save the schedules to a file, prompting the user for a file name. .A function to Load the schedules from a file, prompting the user for a file name

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

3. List ways to manage relationship dynamics

Answered: 1 week ago