Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 4 Which of the following is true for diagram (a)? Select only one answer. a. PlayingRecord is not a required class b. A SportGame

QUESTION 4

image text in transcribed

Which of the following is true for diagram (a)? Select only one answer.

a.

PlayingRecord is not a required class

b.

A SportGame object should be declared within Player as private data field (i.e., this is the best implementation solution)

c.

positionPlayed is an attribute that could be stored with the Player class

d.

Three classes should be implemented from this diagram

QUESTION 5

Suppose there are 3 Guest objects that stay in 3 different HotelRoom objects on different dates. Assume only one Guest associated with one HotelRoom on a specific date. How many Stay objects should be created? (Use diagram c) Select only one answer.

a.

6

b.

9

c.

3

d.

Cannot determine without more information

QUESTION 6

Which of the following is true for diagram (d)? Select only one answer.

a.

A course must have at least one pre-requisite

b.

There must be a separate PreRequisite class created

c.

An ArrayList could be used when implementing the Course class

d.

a and c are both correct

QUESTION 7

Is it true for a Course that is a pre-requisite for some other course to not have any pre-requisites of its own? (diagram d)

a.

Yes

b.

No

QUESTION 8

How many classes should (i.e., best solution) be specified by diagram c?

a.

3

b.

2

c.

1

d.

4

Questions 4 - 8 Uses the tollowing diagrams SportGame PlayingRecord positonPlayed goalsScored timeOnField Spectator Ticket seatNumber ticketNumber price dateBought Guest Stay dateArrived plannedDepartureDate roomRate

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

Ehs 2.0 Revolutionizing The Future Of Safety With Digital Technology

Authors: Tony Mudd

1st Edition

B0CN69B3HW, 979-8867463663

More Books

Students also viewed these Databases questions

Question

2. Outline the functions of nonverbal communication

Answered: 1 week ago