السلام عليكم
ابي احد يساعدني في حل هاذا البروجيكت تكككفون L
ابي اكتب اكواد بلغه C++
،،،،،،،،،،،،،،،،،،،،،،،،،،،،،،،،،،،،
Considera clinicsystem, which has a menu,offers the following options:1.Add new patient
2.Book an appointment
3.Show clinic incomes
4.Show the raise for a doctor
5.print the clinic information
6.Exit
a) If option 1 is chosen, the main function passes one-dimensionalarray named patientNames and one-dimensional arraysnamed patientID to a function ADD. This functionprompts the user for a new patient's information (name, id) and add themto these two arrays:a. patientNames array: is a one-dimensional array with onecolumnswhich stores the name and a maximum of 100 rows (patient)where each row stores a single patient.b. patientID array: is a one-dimensional array a maximumof 100patient which stores the patient's ID.Thefunction will return TRUE if the patient is added successfully, FALSEotherwise,thenthe main will print the new arrays. ===========================================b) If option 2 is chosen,the program should ask theuser to specify which doctor he's interested in by displaying the followingmessage:{ choosethe doctor you want to book an appointment with : (press1 for the pediatricianpress 2 for the dentist press 3 for the general doctor ) }Themain function passes DNandONE two-dimensional arraynamed appointmentto a function UPDATE. Thisfunction will search for the doctor, and then updates appointment'sinformation.The function will return TRUE if the appointment isupdated successfully, FALSEotherwise .c) If option 3 is chosen, the program will calculatethe clinic income per month.
d) If option 4 is chosen, the program should ask theuser to specify which doctor he's interested in computing the raise for, bydisplaying the following message:
{ choose a doctor to compute the raise for him / her : (press1for the pediatrician press 2 for the dentist press 3 for the general doctor ) }
If the doctor’sappointments more than 40 in the month, he will get 30% raise of his salary,else he will get 10% raise.
e) If option 5 is chosen, the main function passes theAppointment array to a function PRINT. This function prints allthe information for each Doctor in the clinic. (BONOUS)f) If option 6 is chosen, the main function stopsimmediately
===========================================
· Notes:
1. The menu should be displayed continuously until option 6is chosen.2. The program should validate the chosen choice.· If it is out of the range [1-6], then an error message isdisplayed "SORRY!!! you have chosena wrong choice, Please try again:".===========================================
· The Arrays:- patientNames ID |
0 |
|
|
0 |
0 |
Ahmad |
|
0 |
|
1 |
Nasser |
|
1 |
|
2 |
Khaled |
|
2 |
|
3 |
Fahad |
|
3 |
|
- Appointments
|
Appointment Price
(Price/ Appoint) |
|
|
|
|
|
|
|
|
|
|
المفضلات