Question: Write the Java program to implement the following functionality. a . Create a Java Project with the name MySetterGetterProject. b . Create a package with

Write the Java program to implement the following functionality.
a. Create a Java Project with the name "MySetterGetterProject".
b. Create a package with the name "myjavapackage".
c. Create a class with the name "Student".
d. Create a class with the name "StudentDriver" that includes a "main".
e. The "Student" class should have the following attributes: String name, int
studentID, float gpa
f. The "Student" class should include a constructor that takes parameters to initialize
all attributes. In the constructor, ensure that studentID and gpa are not initialized
to values smaller than 1 and 0.0 respectively.
g. Provide setter and getter methods for all attributes. In setter methods, ensure that
attributes are set to meaningful values.
h. Provide a "printStudentInformation" method that prints the student's attributes.
i. In the "StudentDriver" class, create 3 different student objects. Print each
student's information on the console.
j. Using setter methods, change each student's attributes. This time, use getter
methods to print each student's information.
k. The "Student" and "StudentDriver" class diagrams are provided below to guide
your implementation.
Write the Java program to implement the following

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 Programming Questions!