9/22/21, 10:34 AM Mid Term Exam - Requires Respondus LockDown Browser + Webcam: SP21: CMPE-202 Sec 02 - SW Systems Engr
Mid Term Exam - Requires Respondus LockDown
Browser + Webcam
Due Mar 27 at 3pm Points 100 Questions 9
Available after Mar 27 at 12pm Time Limit 120 Minutes
Requires Respondus LockDown Browser
Instructions
Closed Books, Closed notes
2 Blank scratch sheets allowed for rough work
Please show the sheets on camera before you start the Exam
and at the end, before submitting the exam
Attempt History
Attempt Time Score
LATEST Attempt 1 135 minutes 93 out of 100
Score for this quiz: 93 out of 100
Submitted Mar 27 at 2:22pm
This attempt took 135 minutes.
Question 1 pts
Consider a basketball conference. Each conference has 10 teams. Each
team has 12 players. Each player has a specific height, speed, and
accuracy. Players know which team they belong to. Some players are
scholarship players. Scholarship players need to record their current
grade-point average. Players may be transferred between teams. Teams
play basketball games against other teams in the conference. The result
of each game is determined using a function based on the height,
https://sjsu.instructure.com/courses/1420191/quizzes/1475518 1/15
, 9/22/21, 10:34 AM Mid Term Exam - Requires Respondus LockDown Browser + Webcam: SP21: CMPE-202 Sec 02 - SW Systems Engr
strength, speed, and accuracy of the players on each team. Design a
system for simulating this basketball conference.
We want to model a system to manage this basketball conference.
Identify classes and attributes (10 points)
Identify relationships and multiplicities (5 points)
Write Java declarations for the classes (including the attributes). (10
points)
Your Answer:
Class Attribute Operation
teams[10],
Conference
game[*]
conference,
Game estimateResult(height,strength,speed,accuracy)
teams[2]
Team players[12], addPlayer(p),removePlayer(p),getPlayer(i)
height,
speed,
getters and setters for attributes,
Player accuracy,
assignTeam(team)
strength,
team
height,
speed,
Scholarship accuracy,
getters and setters for attributes
Player strength,
team,
grade-point
Relationships and Multiplicity:
Conference -----> Team via association relation Game ([1..10]) where
Game has an operation which estimates result of the game. 1 conference
has 10 teams. Also, 1 game is assigned with single Team and single
Conference.
Team has list of Player. It is aggregation relationship where Team side has
list of Player and Player side has associated Team. ([1..12])
https://sjsu.instructure.com/courses/1420191/quizzes/1475518 2/15
Mid Term Exam - Requires Respondus LockDown
Browser + Webcam
Due Mar 27 at 3pm Points 100 Questions 9
Available after Mar 27 at 12pm Time Limit 120 Minutes
Requires Respondus LockDown Browser
Instructions
Closed Books, Closed notes
2 Blank scratch sheets allowed for rough work
Please show the sheets on camera before you start the Exam
and at the end, before submitting the exam
Attempt History
Attempt Time Score
LATEST Attempt 1 135 minutes 93 out of 100
Score for this quiz: 93 out of 100
Submitted Mar 27 at 2:22pm
This attempt took 135 minutes.
Question 1 pts
Consider a basketball conference. Each conference has 10 teams. Each
team has 12 players. Each player has a specific height, speed, and
accuracy. Players know which team they belong to. Some players are
scholarship players. Scholarship players need to record their current
grade-point average. Players may be transferred between teams. Teams
play basketball games against other teams in the conference. The result
of each game is determined using a function based on the height,
https://sjsu.instructure.com/courses/1420191/quizzes/1475518 1/15
, 9/22/21, 10:34 AM Mid Term Exam - Requires Respondus LockDown Browser + Webcam: SP21: CMPE-202 Sec 02 - SW Systems Engr
strength, speed, and accuracy of the players on each team. Design a
system for simulating this basketball conference.
We want to model a system to manage this basketball conference.
Identify classes and attributes (10 points)
Identify relationships and multiplicities (5 points)
Write Java declarations for the classes (including the attributes). (10
points)
Your Answer:
Class Attribute Operation
teams[10],
Conference
game[*]
conference,
Game estimateResult(height,strength,speed,accuracy)
teams[2]
Team players[12], addPlayer(p),removePlayer(p),getPlayer(i)
height,
speed,
getters and setters for attributes,
Player accuracy,
assignTeam(team)
strength,
team
height,
speed,
Scholarship accuracy,
getters and setters for attributes
Player strength,
team,
grade-point
Relationships and Multiplicity:
Conference -----> Team via association relation Game ([1..10]) where
Game has an operation which estimates result of the game. 1 conference
has 10 teams. Also, 1 game is assigned with single Team and single
Conference.
Team has list of Player. It is aggregation relationship where Team side has
list of Player and Player side has associated Team. ([1..12])
https://sjsu.instructure.com/courses/1420191/quizzes/1475518 2/15