Question: Question 2 Write a class called StudentTest.java using main method. Create two Student objects with departments CENG and ECON, respectively. . Set features of the

 Question 2 Write a class called StudentTest.java using main method. Create
two Student objects with departments CENG and ECON, respectively. . Set features

Question 2 Write a class called StudentTest.java using main method. Create two Student objects with departments CENG and ECON, respectively. . Set features of the first student as follows: Student ID: 12345 Name: Ada Years of study: 4 GPA: 3.7 Department: ECON Scholarship (Yes/No): Yes Print information of the first student by using printinformation method. Predict future of the first student for the course CMPE113 by using predict Course method. . . . . Read information of the second student by using readinformation method. Print information of the second student by using printinformation method. Predict future of the second student for the course CMPE113 by using predictCourse method. . . Compare the two students by using are StudentsEqual method and print result as given in sample output. Sample Outputs: Ada, whose student ID is 12345, is studying 4th year at the "CENG" department with scholarship. Ada has a GPA of 3.7. The student will most likely pass CMPE1131 Enter Information of second student: Student ID: 54321 Name: Eda Years of study: 2 GPA: 1,3 Department: ECON Scholarship (Yes/No): No Eda, whose student ID is 54321, is studying 2nd year at the "ECON" department without scholarship. Eda has a GPA of 1.3. The student will most likely fail to pass CMPE1131 These students are not same. Ada, whose student ID is 12345, is studying 4th year at the "CENG" department with scholarship. Ada has a GPA of 3.7. The student will most likely pass CMPE113 Enter information of second student: Student ID: 12345 Name: Ada Years of study: 4 GPA: 3,7 Department: ECON Scholarship (Yes/No): Yes Ada, whose student ID is 12345, is studying 4th year at the "ECON" department with scholarship Ada has a GPA of 3.7. The student will most likely pass CMPE113 These students are same

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!