عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 09-01-2011, 08:08 AM   #1039

..همس..

جامعي

الصورة الرمزية ..همس..

 
تاريخ التسجيل: May 2009
نوع الدراسة: إنتظام
المستوى: متخرج
الجنس: أنثى
المشاركات: 19
افتراضي رد: [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
انا كمان انتظر حلو
هيلب اس بليزنقرتين لعرض الصورة في صفحة مستقلة

 

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