Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Section-A : Class Diagram Draw a class diagram modeling the following: In Kamloops, Snow removal trucks drive on several routes. Each truck is assigned a

Section-A : Class Diagram

  1. Draw a class diagram modeling the following:

In Kamloops, Snow removal trucks drive on several routes. Each truck is assigned a number. There are two types of trucks: dump trucks and snow plows. For dump trucks, there is a name of the type of equipment attached.

Truck goes on the route, which is a made up of several segments.

A segment is made up of several streets, and is defined by the crossing streets that start and end that segment. If the street is a dead-end, the crossing street is NULL.

Draw the class diagram, with classes, associations, multiplicities, attributes, operations, and generalizations.

  1. Draw a UML Class Diagram representing the following elements from the problem domain for a hockey league.
  • A hockey league is made up of at least six hockey teams.
  • Each hockey team is composed of six to twelve players, and one player captains the team. Each team has a name and a record. Players have a number and a position.
  • Games can be played against each other teams. Each game has a score and a location.
  • Teams may be lead by a coach. A coach has a level of accreditation and a number of years of experience, and can coach multiple teams.

Draw a class diagram for this information, and be sure to label all associations with appropriate multiplicities.

Section-B : Sequence Diagram

  1. Interpret the following sequence diagram?

image text in transcribed

user ATM machine cardReader bankDatabase print 1:startMachine 2. InsertCard seq ifvalid 3: enterPin 4: validate Pin 5: showMenu seg else 6: ejectCard

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

More Books

Students also viewed these Databases questions