عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 06-01-2011, 04:21 PM   #1014

كرستال33

..ابتسم..

الصورة الرمزية كرستال33

 
تاريخ التسجيل: Jul 2009
التخصص: IT
نوع الدراسة: إنتظام
المستوى: الثامن
الجنس: أنثى
المشاركات: 177
افتراضي رد: [cpcs 202 - برمجة 1] لديك سؤال , شيء غير مفهوم ,,, تفضل هنا , موضوع مفيد

المشاركة الأصلية كتبت بواسطة ® βutteяfly aηgel«~. مشاهدة المشاركة
write a program that reads a number of employees, then enter the employee id , salary and age such as:
No. Of employee = 6



finally, print the array values after checking.
- using the following functions implement the program:
• void get_data(int x[],int no);
// to read id , salary and age from the user .
• void check_salary( int sal[], int age[],int no);
//to check if the age >=60, then salary/2
• void display(int id[], int sal[], int age[],int no);
// print the array values after checking.

Output:

Id salary age
103 6000 22
546 7000 25
264 5000 21
756 3000 30
760 5000 60
435 7500 70
حتى انا انتظر حله

اللي يعرف يحله ينقذنا قبل يوم السبت

الله يعطيكم العافية

 

توقيع كرستال33  

 

whatever....I will keep going

 

كرستال33 غير متواجد حالياً   رد مع اقتباس