Question: Assessment 3: Classes and objects Complete the following tasks in Java within the lab time using NetBeans. . Create a class called Student and has

 Assessment 3: Classes and objects Complete the following tasks in Java
within the lab time using NetBeans. . Create a class called Student
and has 5 instance variables 1. ID as a String 2. Name
as a String 3. Age as a Integer 4. GPA as a

Assessment 3: Classes and objects Complete the following tasks in Java within the lab time using NetBeans. . Create a class called Student and has 5 instance variables 1. ID as a String 2. Name as a String 3. Age as a Integer 4. GPA as a Double 5. Time Table as a two dimensional Array of type string, that consist of name of subjects and credit hours, eg: [{OOP, 4}, {English, 3}, {Quran, 2)... etc) Your class should have constructor that take the ID, Name, Age, an initial GPA and Time Table (use them to initialize the students' GPA and Time Table). Your constructor should validate that the initial GPA is greater than 0, otherwise GPA should be initialized to the default value 4. o Provide a set and a get method for each instant variable Ensure that the GPA in set method is grater than 0 otherwise do not change GPA value and print the following error Message: "The new value of the student GPA: (GPA value) is not an acceptable value please try again" Add an option to Set method for Time Table that takes 3 parameters setTime Table (int row_index, String columnValue1, String columnValue2), then add the following condition Reset Timtable if row_index

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!