Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C# console application: A Doctors office hired you to create an appointment scheduling system that allows patients to choose from a Morning appointment or

In C# console application: A Doctors office hired you to create an appointment scheduling system that allows patients to choose from a Morning appointment or Evening.

Using a 2-dimensional array, create a C# application that prompts the user to enter for the appointment type (morning or evening) then reserves a slot of that type.

There are 5 appointments for the morning & 5 for the evening.

The first-row array slots are morning and the second-row slots are evening.

If there is no appointment of that type available, show a message telling the user that there is no appointment available.

In addition, You should also have a display option so that the appointment list may be viewed prior to selection of an appointment.

Example Output:

Prompts that should ask user:

Do you want to schedule an appointment? enter y for Yes or n for no.

Do you want to see appointment availability? enter y for Yes or n for no.

Morning Appointment#

Slot 1: Open

Slot 2: Booked

Slot 3: Open

Slot 4: Booked

Slot 5: Open

Evening Appointment#

Slot 1: Open

Slot 2: Booked

Slot 3: Open

Slot 4: Open

Slot 5: Open

Do you want a Morning or Evening appointment? enter m for Morning or e for Evening.

Which slot would you like to reserve?

Thank you, Your appointment for Morning Slot 2, is confirmed.

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

2. Identify conflict triggers in yourself and others

Answered: 1 week ago