عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 04-11-2013, 09:36 PM

ام شموخ93 ام شموخ93 غير متواجد حالياً

جامعي

 
تاريخ التسجيل: Nov 2013
الكلية: كلية الحاسبات وتقنية المعلومات
التخصص: تقنية معلومات
نوع الدراسة: تحضيري علمي خطة أ
المستوى: الثامن
البلد: سلطنة عمان
الجنس: أنثى
المشاركات: 3
Skaau.com (10) سؤال في برنامج الجافا .. ساعدوني جزاكم الله خير


مراحب اخواني

عندي اكثر من سؤال في مادة الجافا باستخدام برنامج net beans
البعض حليته والبعض الاخر واجهت صعوبه في حله


Create a Student Class with Student-ID, Student-Name, and GPA. Create an array of objects, read values to all the objects with input( ).
Ask a User to search for a particular Student by entering Student-ID. Search that Student-ID in the Array. If the Student is found Print information about that student. If the Student is not found print “Student Does not Exist”.

Description:
Read how many objects to create. Say 5.
Create an array of objects with size 5.

Student obj = new Student[5]. ---------à array with 5 objects created.

Read Values to obj by calling input() in a for loop.
for(I = 0; I < 5; I++)
[I] obj.input();

read a student number to search in the array.
If the student is found print that student details… obj.output()
If not Found print “Student Not Exist”







هذا هو السؤال

الله يعطيكم العافيه ويوفق اللي بيردد علي *_*
رد مع اقتباس