Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this assignment you will create a set of simple classes that model a student groups. Your submission will consist of the below three classes

For this assignment you will create a set of simple classes that model a student groups. Your submission will consist of the below three classes and a test driver (the only class with a main()) that exercises the functionality of your system. You will need to implement the following classes based on the description of their attributes and operations: Student firstName - the first name of the student (String) lastName - the last name of the student (String) id - the student id (String) require the creator to supply the name and id of the student in order to create one provide operations to retrieve and update each of the attributes appropriately provide an operation to get the student's participation score (random number between 1 and 10) Group name - the name of the group students - the students in the group (you may assume no more than 5) require the creator to supply the name of the group in order to create one provide operations to retrieve and update the group's name provide an operation to add a student to the group (a GroupFullException should be thrown if the group is at capacity) provide an operation to retrieve the students provide an operation to retrieve the number of students in the group provide an operation to obtain the group's participation score (the sum of the participation scores of the individual students) GroupFullException We haven't talked about inheritance yet. So, this is all the code you will need for this class: public GroupFullException extends Exception {} As always your code must meet the coding standards. Your submission should consist of a single zip file that contains only your .java files.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

Does it avoid typos and grammatical errors?

Answered: 1 week ago