How can i code this?

I have started this weekly question and can not complete the task. I'm getting stuck trying to create the list for the names and at step 2.

Develop a program in C and upload it into your Arduino Mega 2560 board to implement a simple Doctor
Appointment System for a clinic. The Arduino Mega 2560 should interact with the user via the Serial
Monitor. The program should do as described below. An example is given after the following description.
In the below description, ‘User’ means the Clinic Admin officer who is the user of the program.

  1. Display the following information on the Serial Monitor: Unit code and title, your name, your
    student ID.

  2. Set Digital Pins 8 to 10 of Arduino Mega board as inputs. Enable the internal pull-up resistor for
    each of these pins.

  3. Prompt the user to select one of the following options:

  4. Patient Details //Assume we will have maximum 15 patients

  5. Allocate Patient to Doctor //Jerome Mcclain, Teresita Lieu, Rocky Michael

  6. Call Patient //Call the next patient and send them to see their Dcotor

  7. Report //Generate a clinic financial report

  8. Receive the user’s selection via the Serial Monitor, e.g. 1, 2, … or 4. Depending on the selected
    option, prompt the user to enter relevant input information, and then implement the stated
    action/display as follows:

For 1 (Patient Details):
Full Name: //First Name Last Name, max 25 characters
// show full name to user
Medicare Card Number: //5 digits entered, show digits to user
//Receive the digits as a string of 5 characters
Symptoms: //Comma separated list of symptoms
// max 25 characters, show symptoms to user
Patient Number: //Generate patient number and display it
//this number should be an integer equal to the
//number of patients currently in the system + 1

/Store the entered information into appropriate variables/

For 2 (Allocate Patient to Doctor):
Doctor: //User selects one of the 3 doctors by connecting
//one of the Pins 8 to 10 of Arduino to GND
//with a jumper wire, the rest would be VCC due
// to pull-up resistors, then presses Enter key
//Pin 8 for Jerome Mcclain, Pin 9, for Teresita
//Lieu, Pin10 for Rocky Michael
//show the name of selected Doctor to user

Patient Number: //user enters the patient number,
//display the patient name, put
//patient number in the list for the selected
//doctor

For 3 (Call Patient):

/* The user selects Option 3 whenever they see a patient coming out of a doctor
office, or when the doctor has no patient, so they can call the next patient in the
list to see the doctor */

Doctor: //User selects one of the 3 doctors by connecting
//one of the Pins 8 to 10 of Arduino to GND
//with a jumper wire, the rest would be VCC due
// to pull-up resistors, then presses Enter key
//Pin 8 for Jerome Mcclain, Pin 9 for Teresita
//Lieu, Pin10 for Rocky Michael
//show the name of selected Doctor to user

Patient to Be Called: // Show the name of the next patient waiting to
//see the doctor selected.

For 4 (Report):
Show:

Jerome Mcclain:
Show the total earning of this doctor for the patients in their list (seen, currently
with, or waiting), each patient fee for this doctor is $50

Teresita Lieu:
Show the total earning of this doctor for the patients in their list (seen, currently
with, or waiting), each patient fee for this doctor is $60

Rocky Michael:
Show the total earning of this doctor for the patients in their list (seen, currently
with, or waiting), each patient fee for this doctor is $40

Total Clinic Income:
Show the total clinic income

  1. Return to Step 3 after the user selection is complete.

More here

Seems like a college or uni assignment: why not ask your Prof or tutor? That's what they get paid for....

Just a weekly questions. they will have answers released next week. Just tying to get ahead :slight_smile: :slight_smile:

Hi,
Please do not post the same question on the forum in more than one place.

Tom... :slight_smile: