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

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

جامعي

 
تاريخ التسجيل: Sep 2012
التخصص: تقنية معلومات
نوع الدراسة: إنتظام
المستوى: الثالث
الجنس: أنثى
المشاركات: 17
افتراضي cocs202


السلام عليكم ورحمة الله وبركاته




يسعد مسائكم
ويسهـــــــــل اختباراتكم






مممكن تساعدوني في حل هالسؤال















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 .



شكراً لكم


ربي يعطيكم الصحه والعافيه جميعاً

رد مع اقتباس