Write code to ask the user how many honor students he


Questions 1 - 3 use the Student class

The Student class contains the following constructor:

public Student( String name, double gpa, String email )

It also contains a getter called getGPA( ) that returns the student's gpa and a getter called getEmail( ) that returns a String - the student's email.

1. Make an object called s1 of type Student for the Student: "Adam", gpa 3.8 and email.

2. The array interns is an array of Student. Write code to create an ArrayList of Student called honors and add Ahmed and only the interns whose gpa is > 3.5 to honors.

3. Write code to ask the user how many honor students he wishes to add. Then read in from the user using the Scanner class the name, gpa and email of those students and add them to the ArrayList.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write code to ask the user how many honor students he
Reference No:- TGS02910963

Expected delivery within 24 Hours