Class Exercise # 1 Create a class hierarchy with base class as Student and derived classes are Part-Time and Full-Time Full-time students will have an extra field to hold two Exam scores Use suitable data structure to hold 15 quizzes scores for each student (part-time or full-time) Create a class Session Use data structure to hold 20 students in a Session, some are part-time, some are full-time Create public methods to calculate average quiz scores per student for the whole class Create public method to print the list of quiz scores in ascending order for one session Create public method to print names of part-time students Create public method to print exam scores of full-time students Main Program Create an instance of Session, populate it with 20 students and dummy scores Call all public methods of Session and capture the output of those methods on console
-
Create a class hierarchy with base class as Student and derived classes are Part-Time and Full-Time
-
Full-time students will have an extra field to hold two Exam scores
-
-
Use suitable data structure to hold 15 quizzes scores for each student (part-time or full-time)
-
Create a class Session
-
Use data structure to hold 20 students in a Session, some are part-time, some are full-time
-
Create public methods to calculate average quiz scores per student for the whole class
-
Create public method to print the list of quiz scores in ascending order for one session
-
-
Create public method to print names of part-time students
-
Create public method to print exam scores of full-time students
-
-
Main Program
-
Create an instance of Session, populate it with 20 students and dummy scores
-
Call all public methods of Session and capture the output of those methods on console
-
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images