Assume below basic skeleton of Student and GradeBook class: public class GradeBook { private String courseName; private Student[] students; // ... other methods .... } public class Student{ private int id; private String name; int marks[]; // marks in different tests } Encapsulate fields and defined needed constructors. Then, make a GradeBook object and fully initialize it based on user input. Get number of students from user input. As number of tests each student given may be different, so your program shall take number of tests and marks in each test, form user input too. You can also generate and use random number to quickly initialize whole data, instead of getting from user, but choose decent ranges e.g. maximum marks 100, maximum students 50 and maximum number of test each student may give shall be less or equal to 10. After fully initializing the GradeBook object, print following information: Which student given maximum number of test, print student id Who got maximum average marks, print student id. Average marks of the class Average marks of each student in the class Minimum marks of each student, print marks and student id Maximum marks of each student,  print marks and student id Average, minimum and maximum marks of the student (get student from user) Some methods shall be written in Student class and some inside the GradeBook class, decide the best place for a method based on what it does. Perform all listed tasks in different methods and call those methods from the main method in GradeBook test class.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Assume below basic skeleton of Student and GradeBook class:
public class GradeBook {
private String courseName;
private Student[] students;
// ... other methods .... }
public class Student{
private int id;
private String name;
int marks[]; // marks in different tests }
Encapsulate fields and defined needed constructors. Then, make a GradeBook object and fully initialize it based on user input. Get number of students from user input. As number of tests each student given may be different, so your program shall take number of tests and marks in each test, form user input too. You can also generate and use random number to quickly initialize whole data, instead of getting from user, but choose decent ranges e.g. maximum marks 100, maximum students 50 and maximum number of test each student may give shall be less or equal to 10. After fully initializing the GradeBook object, print following information:
  1. Which student given maximum number of test, print student id
  2. Who got maximum average marks, print student id.
  3. Average marks of the class
  4. Average marks of each student in the class
  5. Minimum marks of each student, print marks and student id
  6. Maximum marks of each student,  print marks and student id
  7. Average, minimum and maximum marks of the student (get student from user)
Some methods shall be written in Student class and some inside the GradeBook class, decide the best place for a method based on what it does. Perform all listed tasks in different methods and call those methods from the main method in GradeBook test class.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education