النتائج 1 إلى 6 من 6

الموضوع: الله يفتح ابواب الرزق في حياته اللي يساعدني :(

  1. #1
    عضوية جديدة
    تاريخ التسجيل
    Apr 2013
    المشاركات
    4
    معدل تقييم المستوى
    0

    Post الله يفتح ابواب الرزق في حياته اللي يساعدني :(

    السلام عليكم

    ابي احد يساعدني في حل هاذا البروجيكت تكككفون 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
    123
    1 Nasser 1
    223
    2 Khaled 2
    554
    3 Fahad 3
    346

    - Appointments
    Appointment Price

    (Price/ Appoint)
    Appointment # in month
    Pediatrician
    300
    40
    Dentist
    500
    60
    General Doctor
    800
    30

  2. #2
    عضوية جديدة
    تاريخ التسجيل
    Apr 2013
    المشاركات
    4
    معدل تقييم المستوى
    0

    رد: الله يفتح ابواب الرزق في حياته اللي يساعدني :(

    وينكم يا اهل الخير

  3. #3
    عضوية جديدة
    تاريخ التسجيل
    Mar 2010
    المشاركات
    38
    الدولة: Yemen
    معدل تقييم المستوى
    0

    رد: الله يفتح ابواب الرزق في حياته اللي يساعدني :(

    1D character array would only allow you to store one "string". Each element in the array would be a character, together which would comprise your "string".
    so that you needed for 2D array no 1D(i mean name&&id array)

  4. #4
    عضوية جديدة
    تاريخ التسجيل
    Apr 2013
    المشاركات
    4
    معدل تقييم المستوى
    0

    رد: الله يفتح ابواب الرزق في حياته اللي يساعدني :(

    ياليت تقولي بأي طريقة استعمل

  5. #5
    عضوية جديدة
    تاريخ التسجيل
    Apr 2013
    المشاركات
    4
    معدل تقييم المستوى
    0

    رد: الله يفتح ابواب الرزق في حياته اللي يساعدني :(

    يالله احتاج الرد لا هنتوا

  6. #6
    عضوية جديدة
    تاريخ التسجيل
    Mar 2010
    المشاركات
    38
    الدولة: Yemen
    معدل تقييم المستوى
    0

    رد: الله يفتح ابواب الرزق في حياته اللي يساعدني :(

    نظر لانشغلات ياليت تبدى في في المشروع و حنا انشالله نساعد قدر المستطاع
    1- اولا عليك باستخداام لوب في داله main الرئيسه ويكون شرط الخروج من هذ الوب في حاله ان احد الاختيارات غير العدد6 على حسب ما ذكر في المشروع
    في داخل هذ الوب للك الحريه في انك تسخدمي اسوتش كيس او اف وبعدين تبدي في عمليه الاستداعا للدوال على حسب الاختيار الرقم المناسب

المفضلات

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •