Question: Lab: Java Basics Objectives: To work with array within an object. To work with array of objects. Implement a simple grade book. Create a Student

Lab: Java Basics Objectives: To work with array within an object. To work with array of objects.

Implement a simple grade book.

Create a Student class which can hold a Students First Name, Last Name and Marks in three assessments. Provide required get and set methods. Student FirstName / LastName / Marks[] SetName() / GetName() SetMark(n,m) / GetMark(n) GetTotalMarks() Create a GradeBook class which can hold a bunch of Student objects and can perform data input and output operations for students. GradeBook Student[] DataInput() / Print() Write a GradeBookTester class having a main method to test the GradeBook. GradeBookTester main()

Sample Input Student Name: Amandeep Patti Marks for Aman Test 1: 7 Test 2: 9 Test 3: 10

Sample Output Students M1 M2 M3 Total Amandeep Patti 7 9 10 26 John Junior 6 3 8 17 John Senior 5 4 8 17

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!