Question: Write in C++ please. Write the InputPatients() function in the Appointments class. Within InputPatients(), use cin to read each line number until -999 is read

 Write in C++ please. Write the InputPatients() function in the Appointments

Write in C++ please.

Write the InputPatients() function in the Appointments class. Within InputPatients(), use cin to read each line number until -999 is read from input. If the line number is not equal to 999, use the Patient object's ReadDetails() to read the patient's age and name from input and append the Patient object to vector patientList. Ex: If the input is: 123399987Lin62Gy21Aya then the output is: Patient age: 87, Name: Lin Patient age: 62, Name: Guy Patient age: 21, Name: Aya

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!