Question: Java Question 1 . Create Class Student with 4 instance variables - Student ID - Student Name - Student Fees - Student GPA Java .

 Java Question 1 . Create Class Student with 4 instance variables

Java

Question 1 . Create Class Student with 4 instance variables - Student ID - Student Name - Student Fees - Student GPA Java . Create setter and getter for each instance variable . Create discount method (will give 20% discount for student with GPA higher than 3.5) . Create a display method to print all info . Create a driver class with one object, read values from the user and call the required methods

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!