• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 15 páginas
Examen

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

Document preview thumbnail
Vista previa 2 fuera de 15 páginas

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

Vista previa del contenido

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

Información del documento

Subido en
30 de marzo de 2025
Número de páginas
15
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$26.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
0
Seguidores
0
Artículos
52
Última venta
-



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes