From IHolland@Kronos.com Wed Jul 21 15:43:31 1999 Received: from rusty.kronos.com (kronos.com [158.228.12.253]) by amber.ccs.neu.edu (8.9.1a/8.9.1) with ESMTP id PAA01710 for ; Wed, 21 Jul 1999 15:43:30 -0400 (EDT) Received: from exchg_cb.kronos.com (exchgcb.kronos.com [158.228.40.156]) by rusty.kronos.com (2.5 Build 2639 (Berkeley 8.8.6)/8.8.4) with ESMTP id PAA00158 for ; Wed, 21 Jul 1999 15:47:08 -0400 Received: by EXCHG_CB with Internet Mail Service (5.5.2448.0) id ; Wed, 21 Jul 1999 15:41:52 -0400 Message-ID: From: "Holland, Ian" To: iholland@ccs.neu.edu Date: Wed, 21 Jul 1999 15:41:51 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: application/octet-stream; name="COM3205 Mid Term Exam.htm" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="COM3205 Mid Term Exam.htm" Status: R COM3205 Mid Term Exam =96 Summer 1999

COM3205 Mid Term Exam =96 Summer = 1999

All questions have equal weight.

Candy Habits is a company that maintains and manages a = large number of candy vending machines. The vending machines are = installed in office building locations across the city. Each location = can have one or more machines installed on one or more floors of each = building.

The machines need to be refilled with candy at different rates =96 = depending on the number of people in each location and their candy = habits.

Each location is included on exactly one route that is served by one = service van. The driver of a service van is responsible for deciding = the frequency that each machine is refilled and for determining if the = machine is broken, in need of maintenance or is working well.

The candy is stored in the Candy Habits warehouse.

Before the driver leaves to service the route, they request and = collect the candy from the warehouse.

After they return, they hand the money from each machine to the = cashier, return any unused candy and inform the maintenance department = of any problems with the machines.

The warehouse generates purchase orders for additional candy from = the candy distributor when they notice that the stock is getting = low.

All the information is currently being managed by paper forms and = paper book keeping.

Candy Habits wants to manage their business using a new computer = system that keeps track of the machines, locations, frequency of = refilling, maintenance history, the amount of candy requested and = returned by each driver, and total cash generated per machine, per = location and per driver, as well as keep track of the frequency and = details of any purchase orders send by the warehouse.

Daily reports will need to be generated and provided to senior = management detailing all these details.

Candy Habits is requesting that the software company called COM3205 = Inc. provide an information system that meets these needs. Candy Habits = is nervous about the cost and getting something that really fits what = they need. Other than word processing and spreadsheets, this will be = their first business application.

Questions

1A. Choose the software cycle model that you think = will best suit the needs of this customer and this application. Explain = why your choice is a good match for the project.

1B. Produce a data flow diagram that captures the main processes, = data flows, information sources and data stores of this = application.

1C. Draw an Entity Relationship Model that describes the = relationships between the different data entities. Name the = relationship and define its cardinality.

Vending Brothers is a company that supplies the candy vending = machines to Candy habits. They are building a new machine the = CandyMaster 2000, and they need software to control it.

Each CandyMaster 2000 contains seven rows of candy labeled A through = G. Each row has 10 different positions, labeled 0 through 9, giving a = total of 70 different candy selections for each machine. Each position = can hold 10 of each selection. Each selection can have a different = price, up to a max of $1.

The machines have a coin slot which takes nickels (5 cent pieces), = dimes (10 cent pieces) and quarters (25 cent pieces). They have an LCD = display which displays the amount of money inserted into the machine, = and a key pad which allows the selection of one letter and one number. = The letter and number selected by the customer is also displayed in the = display. When a selection is made, change is provided if required and = the machinery activated to drop a piece of candy into the machine=92s = drawer. The customer can then retrieve the candy from the drawer.

Vending Brothers is a long time customer of COM3205 Inc, who has = implemented control software for prior versions in the CandyMaster = line. They just want to be clear up front that the requirements and = specifications are clear and match the hardware.

Questions

2A. Choose the software cycle model that you think will = best suit the needs of this customer and this application. Explain why = your choice is a good match for the project.

2B Produce a Finite State Machine that represents the events and = states of the candy machine as money is inserted, candy selected and = delivered.

2C. Represent the objects in the application in terms of the = classes, the class responsibilities and the collaborations between = classes.