• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 15 pages
Exam (elaborations)

IFT566 Mid Term Exam : SP21: CMPE-202 Sec 02 - SW Systems Engr 2025

Document preview thumbnail
Preview 2 out of 15 pages

IFT566 Mid Term Exam : SP21: CMPE-202 Sec 02 - SW Systems Engr 2025/IFT566 Mid Term Exam : SP21: CMPE-202 Sec 02 - SW Systems Engr 2025

Content preview

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

Document information

Uploaded on
March 30, 2025
Number of pages
15
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$26.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
52
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions