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.
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
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:
- 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.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
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.Recommended textbooks for you
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education