Web customernbspuses our web site to make purchases online


Question 1: Explain and give an example for the following concepts

Encapsulation. Inheritance Polymorphism.

Question 2: Why is it desirable for a structure chart to be highly cohesive and loosely coupled?

Part 2

Question 3: Draw a use case diagram for the system described below:

Web Customer uses our web site to make purchases online. Top level functionality given by the web site are View ItemsMake Purchase and Client Register. View Items use case could be used by customer as top level use case if customer only wants to find and see some products before registration. This use case could also be used as a part of Make Purchase use case after registration. Client Register use case allows customer to register on the web site to Make Purchase. Note, that Checkout use case is part of making purchase.

View Items use case have several optional use cases - customer may search for items, browse items, view items recommended for him/her, add items to shopping cart or wish list.

Question 4: Draw a State Machine Diagram to show the following behaviors of a DVD player.

Be sure to label all transitions with the events that cause them. The DVD player is initially off. It can turned on or off by pressing the power button. When it is off, none of the other buttons do anything. When it is on, the tray can be opened or closed by pressing the eject button. When it is open, only the power and eject buttons will do anything. When the tray is closed, the motor is either spinning or stopped. When you turn on the power or close the tray, the machine first spins up the motor to read the disk. It then gets one of three signals:

(a) no disk - it stops the motor, and disables all buttons other than eject and power.

(b) timeout, indicating it was unable to read the disk - it stops the motor, displays an error message, and disables all buttons other than eject and power.

(c) disk okay - it stops the motor, but enables the play control buttons. There are three play control buttons. Play starts the DVD playing, spinning up the motor if necessary. Pause toggles between playing and paused, without stopping the motor. Pause does nothing if pressed when the motor is stopped. Stop stops the motor, if it was spinning. 

Question 5: Draw a sequence diagram to illustrate the normal operation of the Use Case for "Change DVDs" for the DVD player described in the previous question.

Your sequence should start in the Playing state, and describe the scenario in which the user ejects the current disk, inserts a new one, and selects play again. Assume the DVD player software has to send signals to the motor (to tell it when to spin) and to the tray (to open and close), and in both cases needs to await confirmation from the device before doing anything else. Use activation bars to indicate when the devices are active. State any further assumptions you make.

Solution Preview :

Prepared by a verified Expert
Business Management: Web customernbspuses our web site to make purchases online
Reference No:- TGS02138856

Now Priced at $30 (50% Discount)

Recommended (94%)

Rated (4.6/5)