making student program by java
Student |
-name : String -id : int -scores : int[] |
+Student() +Student(String,int, int[]) + calculateGPA() :double +toString() :String |
Create a student class based on the above UML
Create a TestStudent class.
In this class, you should create a Student object array and save at least 5 Student objects
Use Student Class to create Student Object. Use Student class’s method to calculate GPA.
Pass the appropriate parameters to the constructors as shown in the UML
In this TestStudent class, ask the user to enter a Student name.
Your code should go through the Student object array and print the details of the Student using the toString() method of the Student class.
Details should include name, id and gpa