Question: I need help completing this Java Assignment. Create a class Student with following attributes in private scope; long rollNo; String name; int mark1;//English int mark2;//Science

I need help completing this Java Assignment.

I need help completing this Java Assignment. Create a class Student with

Create a class Student with following attributes in private scope; long rollNo; String name; int mark1;//English int mark2;//Science int mark3; //Mathematics int mark4;//General Knowledge Create the default as well as parameterized constructor for the Student class. Also create getter and setter for the above attributes. Create another class StudentRatingSystem. In the main method, create a student object and set the value for above student attributes Create a method generateRating (Student s) to generate the rating of the student in the following format; Roll No : 10001 Mark1 : 78 Mark3 : 81 Grade : A Name : Anoop Mark2 : 82 Mark4 : 85 the rating is calculated using the below rule; If the Average Mark (average of Mark, Mark2, Mark3, Mark4) is between; 90 80 70 60 0 100 89 79 69 59 Grade ="A+" Grade ="A" Grade "B". Grade = "C" Grade = "D" NB: If the Average Mark is less than 0, then put the grade as "NA

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!