عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 26-12-2013, 05:56 PM   #524

مونيتآ

جامعي

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

مممكككن حل هالسؤال


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 .



شكراً لكم

 

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