سؤال في برنامج الجافا .. ساعدوني جزاكم الله خير
مراحب اخواني
عندي اكثر من سؤال في مادة الجافا باستخدام برنامج 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”
هذا هو السؤال
الله يعطيكم العافيه ويوفق اللي بيردد علي *_*
|