Question: Write in java language. Problem 1 Implement a class Student. (This will be similar to class BankAccount) 1.1) An Student has a name (a string)

 Write in java language. Problem 1 Implement a class Student. (This

Write in java language.

Problem 1 Implement a class Student. (This will be similar to class BankAccount) 1.1) An Student has a name (a string) and a GPA (a double), Provide a constructor with two parametens public student (String student Name, double currentePa) and methods public string get Name o public double gotGPA) public void updateGPA (double newGPA) The updateGPA method should replace an old GPA with a new valuc of GPA. The getName and getGPA methods should return the name and GPA respectively 1.2) Create a tester program that creates a Student with a given GPA Construct an object of type Student. Print the Student's name, GPA Apply the updateGPA method Print the new GPA

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!