java 2 chapter 7 solve problems part 2(Arabic)
2. [array of objects] Considering the class Student we wrote in tutorial 2.
A. Write a Java application that:
Create an array of type Student named students of size 5.
Ask the user to enter name, id, gender and gpa for the 5 students. Create objects of
Student class type and set its data members’ values using the input data. And put each
in the array students.
B. [sorting] Write a static method named sortStudents that takes as parameter an array of
students. The method sorts the array based on student id in ascending order using selection
sort algorithm.
C. [array as parameter of a method] Write a static method named countOfProbation that
takes as parameter an array of students. The method returns an integer representing the
number of students under probation (that is students with gpa less than MINIMUM_GPA).
D. [array returned by a method] Write a static method named listOfProbation that takes as
parameter an array of students. The method returns an array of students which are
students under probation only (you may need to use the method countOfProbation in this
method).
To test your program you need to do the following in the main method..
Call the method sortStudents then display the array elements after sorting (Hint: you may
use the student class method displayStudentDetails).
Call the method countOfProbation to find the number of students under probation.
If the number returned is not zero, call the method listOfProbation and display the
students’ names of the returned array.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «java 2 chapter 7 solve problems part 2(Arabic)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.