Question: in write java Assignments than 0, otherwise GPA should be initialized to the default value 4. Provide a set and a get method for each


Assignments than 0, otherwise GPA should be initialized to the default value 4. Provide a set and a get method for each instant variable Ensure that the GPA in set method is grater than 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 set Time Table (int row_index, String column Valuel, String column Value2), then add the following condition Reset Timtable if row_index=0 Assign Time Table raw and columns with parameters Add a method called ComputeTotalHours that takes the credit hours, transforms it to integer then returns the sum of credit hours c.g: 4+3+29 Hint Integer.parsInt( Time Table[raw][U]); Add a method called AddSubject that adds a subject to the students Time Table, check if the amounted hours is more than 16 by using ComputeTotalHours method. do not add subject and display an error Message: (Name of student) credit hours will exceed 16 hours. Hint: you can use your own code or use the following: the countRow Toe (introw Grow Time Mobile Rethrow femme Tablets mall & Timetablemowl mail count Room This code checks at which row you can add Write a class called TestStudent with a main method in this method you will create 2 objects of the class student. Prompt the user to enter the ID. NameAge, an initial GPA and initial Time Table (print information). Then ask the user for the wanted operation (show Add subject, adjust GPA) and perform it, then print the updated information adjust GPA setGPA Assignments than 0, otherwise GPA should be initialized to the default value 4. Provide a set and a get method for each instant variable Ensure that the GPA in set method is grater than 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 (introw_index, String columnValuel, String column Value2), then add the following condition Reset Timtable if row_index 0 Assign Time Table raw and columns with parameters Add a method called ComputeTotalHours that takes the credit hours, transforms it to integer then returns the sum of credit hours. eg.: 4+3+29 Hint. Integer.parsint( Time Table[raw][1]); Add a method called AddSubject that adds a subject to the students Time Table, check if the amounted hours is more than 16 by using ComputeTotal Hours method. do not add subject and display an error Message (Name of student) credit hours will exceed 16 hours. Hint: you can use your own code or use the following: incontro Time Table'ow to mule Time Tablete mult This code checks at which row you can add Write a class called TestStudent with a main method in this method you will create 2 objects of the class student. Prompt the user to enter the ID. Name, Age, an initial GPA and initial Time Table (print information). Then ask the user for the wanted operation (show Add subject, adjust GPA) and perform it, then print the updated information adjust GPA setGPA > Assignments Assessment 3 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) Row : 5 or 4 Columns 2 . Your class should have a constructor that take the ID. Name, Age, an initial GPA and TimeTable (use them to initialize the students' GPA and Time Table). Your constructor should validate that the initial GPA is greater than otherwise GPA should be initialized to the default value 4. Provide a set and a get method for each instant variable Ensure that the GPA in set method is grater than 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 column Valuel, String column Value2), then add the following condition Reset Timtable if row_index
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
