Assigning a number to a patient then displayed when called upon.
What is the best solution for this task below?
I want to know how to assign a number to a patient then when i entered that number the patients name will show up. i am also struggling to include firs and last name>
Prompt the user to select one of the following options:
1. Patient Details //Assume we will have maximum 15 patients
2. Allocate Patient to Doctor //Jerome Mcclain, Teresita Lieu, Rocky Michael
3. Call Patient //Call the next patient and send them to see their Dcotor
4. Report //Generate a clinic financial report
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
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):
Doctor: //User selects one of the 3 doctors
//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
What is the best solution for this task below?
I want to know how to assign a number to a patient then when i entered that number the patients name will show up. i am also struggling to include firs and last name>
Do i create a list to do this or an array?
I need some direction to get things started!!
:)
Prompt the user to select one of the following options:
1. Patient Details //Assume we will have maximum 15 patients
2. Allocate Patient to Doctor //Jerome Mcclain, Teresita Lieu, Rocky Michael
3. Call Patient //Call the next patient and send them to see their Dcotor
4. Report //Generate a clinic financial report
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
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):
Doctor: //User selects one of the 3 doctors
//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