عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 25-12-2013, 12:51 PM   #1071

sSEmoo

جامعي

 
تاريخ التسجيل: Oct 2013
كلية: كلية الحاسبات وتقنية المعلومات
التخصص: تقنيه معلومات
نوع الدراسة: إنتظام
المستوى: الأول
البلد: منطقة مكة المكرمة
الجنس: أنثى
المشاركات: 11
افتراضي رد: [cpcs 202 - برمجة 1] لديك سؤال , شيء غير مفهوم ,,, تفضل هنا , موضوع مفيد

ابغـــــــــــــــــــــــــــــــــــــــــــــــ ـــــــــــــــتى حل ذا السؤال ضررررررررررروي

Q1) Create Student class that have
1- two fields Name as string data type and ID as int
2- Two methods
A- Display method don't have return data type and print the Name and ID of student
B- Sum method return integer data type and accept two parameter x and y
return this function ( x + y)
- In main class Create object call s1
- Use object s1 to assigns value to variables Name and ID
- Use object s1 to Call method Display
- Use object s1 to Call methods sum and pass value to it
Q2) use java program to do this
- Declare two dimension array that have 3 rows and 3 column .
- Print the ODD elements of this array , use if statement
- Found the maximum number of it and print .
- Declare the Sum variable and assign value of sum element of array in it , print it .

 

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