Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The members of an SDPTeam consists of students and two instructors: one with a role of a supervisor, and the other with the role of

The members of an SDPTeam consists of students and two instructors: one with a role of a supervisor, and
the other with the role of examiner. The grade is an array of three integers: the second integer of it is the
grade given by the supervisor, the third integer is the grade given by the examiner. The first integer of the
grade array is the average of second and third integers of the grade array which is calculated by the method
calcGrade whenever the method gradeTeam is called.
A student major is either CS or CE. An SDPTeam has a number which is automatically generated starting with
Depending on the major of the students in the group being all CS, CE, or mixed of CE and CS, the code is
the string CS, CE, or CECS followed by the value of number respectively, see Tester output. The method
setCode sets the value of the code whenever the method addMember is called. The method addMember
also adds a member to members.
The class method showHighest finds the group code and grade of the group having the highest grade and
display them on the screen, see Tester output.
The class method average returns the average of all SDP teams grades.
The class method SupervisedBy returns an ArrayList of all SDP teams supervised by the instructor with the
given name.
The Tester class and its output might give a better understanding of this diagram and expected functionality.
[1]
[1]
image text in transcribed

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 Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

More Books

Students also viewed these Databases questions

Question

need more help balance sheet?

Answered: 1 week ago

Question

What is Ethernet? How does it work?

Answered: 1 week ago