You are on page 1of 15

Pass Year Questions (Use Case and Activity Diagram)

1. Draw a context diagram and diagram 0 for the grading system. Process: 1.0 Establish gradebook 2.0 Assign Final Grade 3.0 Grade Student Work 4.0 Produce Great Report Entities: o Student Record System o Instructor o Student

Database: D1 Gradebook Data Flow: 1.0 Class Gradebook 1.0 Class Roster 1.0 Grading Parameter 2.0 Final Grade 2.0 Grading detail 3.0 Student Grade 3.0 Submitted work 3.0 Graded work 4.0 Class Detail 4.0 Report Grade

Answer: Context Diagram Final Grade


Student Record System

Submitted Work
Student

Graded Work Class Foster


______0______ Grading System

Grade Report
Instructor

Grading Parameter

Answer: Diagram 0

Student Record System

______2______ Assign Final Grade

______3______ Grade Student Work

Class Roster

Final Grade

Student Grade

Submitted Work
______1______ Establish Gradebook

Grading detail

Graded

Work

Gradebook Grading Parameter Class detail


Student Instructor

Grade report

______4______ Produce Grade Report

2. Draw a use case diagram for Vending machine. Make use of inclusion and extension associations, mark multiplicities.

1. Precision Tools sells a line of high quality woodworking tools. When customers place an orders on the companys website, the system checks to see if the items are in stock, issues a status message to the customer and generates a shipping order to the warehouse, which fles the order. When the order is shipped, the customer is billed. The system also produces various reports. Draw a context diagram and diagram 0 for the order system. Entities: Customer, warehouse, accounting Process: 1.0 Check Status, 2.0 Issues Status Messages, 3.0 Generate Shipping Order, 4.0 Manage Accounts Receiveable, 5.0 Produce Reports. Data Stores: D1 Pending orders, D2 Accounts Receiveable Data Flows:

1.0: Order, In Stock request, order data, status data 2.0: Status data, status message 3.0: Shipping order, order data 4.0: Invoice, Shipping confirmation, Accounting data, payment 5.0: Account receiveable data, order data, inventory report

Answer: Context Diagram

Answer: Level 0 Diagram

2. Draw a use case diagram for an ATM Machine for withdrawing cash. Make the use case simple yet informative, only include the major features.

1.As System Analyst at HotMovie Company, you are required to model Movie Ticket Selling System using Unified Modeling Language (UML). For the initial stage, you have to design use case diagram and activity diagram based on the following functional requirements of the Movie Ticket Selling System. Movie Ticket Selling System is mainly used for searching movie and purchasing movie tickets. Each movie is described with a movie ID, movie title, descriptions, date, time, duration and venue. Movie Ticket Selling System should consist of touch screen as interface between customer and system, credit card reader and ticket printer. Each customer should use screen for searching movie in order to read movie details or preview the trailer of the movie. After customer selected the movie, the screen will display the available seats. The customer selects the seat and the system will prompt the payment amount. The payment transaction should be settled by credit card. The payment will be confirmed if the card does not exceed its credit limit. If the payment cannot be confirmed, error message will be displayed on the screen and purchasing will be terminated. Once the payment has been confirmed, the ticket will be issued to the customer.

search movie

Customer

purchase ticket

Credit Card Centre

a. Draw the activity diagram. (16 MARKS)

Customer

Mov ie Ticket Selling Machine

search movie

display movie details

[ no ]

preview? [ yes ]

preview movie trailer

select movie

select seat

display available seats display payment amount check overlimit

insert credit card

if over limt?

no confirm payment

yes display error message

issue/print ticket

1. Using the example of a retail clothing store in a mall, list relevant data flows, data

stores, processes, and sources/sinks.Exercise 1 Problem and Observe several sales transactions. Draw a context diagram and a level-0 diagram that represent the selling system at the store. Context Diagram Explain why you chose certain elements as processes versus sources/sinks.

Customer

Payment Receipt

0 Point of Sale System

Management Report

Store Manager

Context Diagram

Context Diagram Marks: Point of Sale System 0.5 Mark Customer 0.5 Mark Store Manager 0.5 Mark Payment 0.5 Mark Receipt 0.5 Mark Management Report 0.5 Mark Total Marks: 3 Marks

Problem and Exercise 1 Level-0 Diagram

Receipt Customer Payment

1 Transform Customer Purchase

Sales Data

Goods Sold

Inventory Data

2 Update Goods Sold File

3 Update Inventory File

4 Update Sales Total File

Formatted Goods Sold Amount

Formatted Inventory Amount

Formatted Sales Total Amount

Goods Sold File

Inventory File

Sales Total File

Goods Sold Amounts

5 Produce Management Reports

1. Consider the problem of obtaining money from an ATM cash machine. You need to determine that the user of the ATM is a valid user, and that the user of the ATM has enough money in their account to complete the transaction. Draw a data flow (level 0) diagram to illustrate the logical flow of data and the processes necessary for the transaction. (12 Marks) Hint: 1. Verify user card n pin no. 2. Check balance before withdraw money from an account 3. Proceed to withdraw money

Inventory Amounts

Sales Totals

Management Report Store Manager

Perfect Pizza wants to install a system to record orders for pizza and chicken wings. When regular customers call Perfect Pizza on the phone, they are asked their phone number. When the number is typed into a computer, the name, address, and last order date is automatically brought up on the screen. Once the order is taken, the total, including tax and delivery, is calculated. Then the order is given to the cook. A receipt is printed. Occasionally, special offers (coupons) are printed so the customer can get a discount. Drivers who make deliveries give customers a copy of the receipt and a coupon (if any).Weekly totals are kept for comparison with last years performance.

a. Write a summary of business activities for taking an order at Perfect Pizza. (10 Marks)

A summary of the business activities for Perfect Pizza is: Display customer record. Input is the customer number and the customer record. Output is customer information. Take customer order. Input is the order information (including the customer number). Output is the total amount due for the order. Send order to cook. Input is the customer order. Output is the cook's order. Print customer receipt. Input is the customer order and the customer master record. Output is the customer receipt. Deliver customer order. Input is the customer receipt and coupons. Output is the delivered receipt to the customer. Print weekly totals. Input is the customer order and the previous years customer order summary. Output is the weekly performance figures.

b. Draw a context-level data flow diagram for Perfect Pizza. (10 Marks)

Management

Phone Number

Customer Order Customer Customer Information

0 Customer Order System

Performance Statistics Cook Order

Product

Delivery Cook

c.

Explode the context-level diagram by showing all the major processes. (15 Marks)

2 Customer Information Add Customer Record Customer Record

1 Phone Number Customer Find Customer Record D1 Customer Record Customer Master

Customer Information 3 Customer Order T ake Customer Order D2 Product Price Product File

T otal Order Amount Due 4 Customer Order Print Customer Receipt Customer Receipt 5 D3 Coupons Coupons Deliver Customer Order Delivery Customer Customer Record D1 Customer Master

6 Customer Order Send Order T o Cook D4

Product Cook Order Cook

Sales History File 7 Order Summary Record Customer Order Print Weekly T otals Performance Statistics Management

Question 4: (25 Marks)

Develop a use case diagram and activity diagram for using an ATM machine to withdraw cash using the following guidelines:1. The customer inserts a bank card. 2. The system validates the card and prompts the person to enter a personal identification number (PIN). 3. The customer enters a PIN. 4. The system validates the PIN and prompts the customer to select an action. 5. The system prompts for an amount. 6. The customer enters the amount to withdraw. 7. The system validates the amount (assuming sufficient funds), and then issues cash and receipt. 8. The customer takes the cash and receipt, and then retrieves the bank card. 9. The use case ends. (25 Marks)

Use case diagram for using an ATM machine to withdraw cash

1. Draw context diagram and level 0 diagrams for course registration system. Students have to request their class/subject and make payment based on class/subject requested. Student and course data will be store in a database name Student Class Record. Information from the database will be used to collect payment from the registered students. After student made payment, system will issue receipt and student can get their schedule based on subject they have requested from the system. At the same time, payment information will be recorded in a Student Payment File. Class roster produced by the system will be given to the professor. System also will produce enrollment report for registrar contain enrollment statistic. Some ideas: o Identify the entities. o Identify the major process. o Identify the data store.

1.

Answer questions based on the given case study for Student Registration System In this system, students need to register for their courses. After that, professor will select their courses to teach and request class roster. Then registrar will generate course syllabus, maintain professor information, maintain student information and also main curriculum. Step to use system:o o The student Login into the College Student Web portal, on successful login, he/she will (proceed to step 2) Browses through the Course Catalog which presents his/her with various courses for the semester and for which he/she have to register at least FOUR (4) courses. Also in this phase, he/she has the privilege to Add/Drop courses. o o o On successful selection of courses, he/she proceeds to the registrar portal to register selected Courses. The registered are approved in the phase. Student Course registration details is the forwarded to the Bursar or Billing system which then generates and issues the student bill for the course offered for the semester. On successful payment the student becomes full qualified to attend classes for the registered courses. This ends the student registration.

Draw a use case and activity diagram (with and without swim lanes) based on the case study.

You might also like