عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 31-12-2010, 10:56 PM   #1005

® βutteяfly aηgel«~.

يآآآآآآآآآرب ’● ܢ

الصورة الرمزية ® βutteяfly aηgel«~.

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

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

 

 

,.



اللهم أجعل أمي ممن تقول لهآ الناآر
"أعبري فان نورك أطفأ نآري"
وتقول لهآ الجنه
" أقبلي فقد اشتقت اليكٍ قبل أن أرآكِ "
،’ღ

 

® βutteяfly aηgel«~. غير متواجد حالياً   رد مع اقتباس