import java.util.Vector; class Student { private int ID; private String name; private double cgpa; public Student(int ID, String name, double cgpa) { this.ID = ID; this.name = name; this.cgpa = cgpa; } public int getID() { return ID; } public String getName() { return name; } public double getCGPA() { return cgpa; } } public class Main { public static void main(String[] args) { Vector students = new Vector<>(); // Create 5 objects of Student class students.add(new Student(1, "Alice", 3.8)); students.add(new Student(2, "Bob", 3.2)); students.add(new Student(3, "Charlie", 4.0)); students.add(new Student(4, "David", 3.7)); students.add(new Student(5, "Emma", 3.9)); // Show students with CGPA over 3.5 System.out.println("Students with CGPA over 3.5:"); for (Student student : students) { if (student.getCGPA() > 3.5) { System.out.println("ID: " + student.getID() + ", Name: " + student.getName() + ", CGPA: " + student.getCGPA()); } } } }