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

sSEmoo sSEmoo غير متواجد حالياً

جامعي

 
تاريخ التسجيل: Oct 2013
الكلية: كلية الحاسبات وتقنية المعلومات
التخصص: تقنيه معلومات
نوع الدراسة: إنتظام
المستوى: الأول
البلد: منطقة مكة المكرمة
الجنس: أنثى
المشاركات: 11
افتراضي واجب


الســـــــــــــــــــــــــــــــــــــــــــــــ لام عليـــــــــــــــــــــــــــــــــــــــكم

لو سمحتو ابغى حل هالسؤال ضروري هاليومين


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 .
رد مع اقتباس