Part I: Data Dictionary and Process specification

23
Part I: Data Dictionary and Process specification 1. The Motion Manufacturing Company assembles bicycles, tricycles, scooters, rollerblades and other outdoor sports equipment. Each outdoor product is built using many parts, which vary from product to product. Interviews with the head parts clerk have resulted in a list of elements for the Product-Part Listing, showing which parts are used in the manufacture of each product. A prototype of the Product-Part Listing is illustrated in Figure 1. Create a data structure dictionary entry for the Product-Part Listing. The head parts clerk has informed us that there are never more than 50 different parts for each product. Review 1

description

Review 1. Part I: Data Dictionary and Process specification. - PowerPoint PPT Presentation

Transcript of Part I: Data Dictionary and Process specification

Page 1: Part I: Data Dictionary and Process specification

Part I: Data Dictionary and Process specification

1. The Motion Manufacturing Company assembles bicycles, tricycles, scooters, rollerblades and other outdoor sports equipment. Each outdoor product is built using many parts, which vary from product to product. Interviews with the head parts clerk have resulted in a list of elements for the Product-Part Listing, showing which parts are used in the manufacture of each product. A prototype of the Product-Part Listing is illustrated in Figure 1.Create a data structure dictionary entry for the Product-Part Listing. The head parts clerk has informed us that there are never more than 50 different parts for each product.

Review 1

Page 2: Part I: Data Dictionary and Process specification
Page 3: Part I: Data Dictionary and Process specification

The data structure would be:

Product-Part Listing = Current Date + Page Number + {Product Information} + Total Number Of ProductsProduct Information = Product Number + Product Description + Creation Date + Product Cost + Number Of Parts + {Part Detail} Part Detail = Part Number + Part Description + Part Quantity + Warehouse Location

501

Page 4: Part I: Data Dictionary and Process specification

2. The Magic Video Company provides video rental services which include several copies of each video film. Each member can rent up to 10 video films at a time. Occasionally, a member may want to rent more than one copy of the same film, which is accepted by the Company. The following is a sample of the Video Rental Invoice which consists of the member’s personal information and the detail information of each rental film. Create a data structure dictionary entry for the Video-Rental Invoice.

Video Rental InvoiceRental No. 001 Date of Rental: 25 July 2003Member No. 334 Member Name …Ms. Fanny. P. Johnson……Contact No: ….6449-0296…………… Address …20 Angel Street, Kowloon, HK…

Film No. Film Name Copy No Payment

71632

Spider-Man 2Super ModelShrike II

1852

$10.00$10.00$30.00$25.00

Payment Total $75.00

Page 5: Part I: Data Dictionary and Process specification
Page 6: Part I: Data Dictionary and Process specification

3. The Wonderful Music Limited provides CD rental services which include several copies of each individual Music CD. Each member can rent up to 8 CDs at a time. The following is a sample of the Customer Transaction Report which prints all the transactions details of a specific month with the maximum of 25 transaction records in a single page. Create a data structure dictionary entry for the Customer Transaction Report.

Page 7: Part I: Data Dictionary and Process specification
Page 8: Part I: Data Dictionary and Process specification

4.

Page 9: Part I: Data Dictionary and Process specification
Page 10: Part I: Data Dictionary and Process specification

3. A computer supplies firm called True Disk has set up accounts for countless business in Hong Kong. True Disk sends out invoices monthly and will give discounts if payments are made within 18 days. The discounting policy is as follows: If the amount of the order for computer supplies is greater than $1,000, subtract 4 percent for the order; if the amount is between $500 and $1,000, subtract a 2 percent discount; if the amount is less than $500, do not apply any discount. Any special order (computer furniture, for example) is exempt (豁免 ) from all discounting.

Develop (a) a Decision Tree, and (b) Structured English for True Disk discounting decisions,.

Page 11: Part I: Data Dictionary and Process specification

A Decision Tree

Page 12: Part I: Data Dictionary and Process specification

Calculate the discount amount.

IF payments are made within eighteen daysTHEN IF order amount is greater than $1,000

THEN 4% discountELSE IF the order amount is between $500 and $1,000

THEN 2% discountELSE IF the order amount is less than $500

THEN No discountELSE No discountENDIF

Structured English for True Disk discounting decisions.

Page 13: Part I: Data Dictionary and Process specification

4. Prepare a decision tree according to the logic of the Structured English below.

Structured English: IF purchase is over $1000 THEN IF customer lives in Hong Kong Island THEN the delivery time is from 9:00am to 1:00pm ELSE IF customer lives in Kowloon East THEN the delivery time is from 2:00pm to 5:00pm. ELSE the delivery time is from 6:00pm to 10:00pm. ENDIF ENDIF ELSE no delivery ENDI

Page 14: Part I: Data Dictionary and Process specification
Page 15: Part I: Data Dictionary and Process specification

5. There is a Sales Promotion Policy as following. Describe the processing logic that the system must be apply using Structured English, Decision Tree and Decision Table.

Page 16: Part I: Data Dictionary and Process specification
Page 17: Part I: Data Dictionary and Process specification
Page 18: Part I: Data Dictionary and Process specification

Part II: Software Engineering

1. Use a figure to show the software evolution where the software is continually changed over its lifetime in response to the changing requirements and the customer needs.

Page 19: Part I: Data Dictionary and Process specification

2. Use a diagram to state the phases of the waterfall model.

Page 20: Part I: Data Dictionary and Process specification

Function Description

Loan book Student shows student card and the book to the librarian.Librarian checks the student’s loan status by using check loan status function.The process is completed if the student has no overdue book.

Check loan status

Checks the loan status of a student, to see if he has any overdue book now.

Return book

Student gives the book to the librarian.Librarian checks the student’s loan status by using check loan status function.If the book is overdue, student has to pay fine by using the pay fine function.

Renew book

Student shows the book to the librarian.Librarian checks the student’s loan status by using check loan status function.If the book is overdue, student cannot renew it.

Pay fine Student pays fine to the library if he has any overdue book.Librarian gives a payment receipt to the student.

Inquire information

Student can search the information about the books, his personal borrowing records, and booking records, by using computers.

Make booking

Student can reserve any book that has been borrowed, at the librarian counter.He can first search the book information by using the inquiry function.

1. A library is going to use a computerized library system for their daily work. The system should have seven major functions:

Draw a Use Case Diagram to show the above situation.

Page 21: Part I: Data Dictionary and Process specification

2. With reference to the above description, draw a child diagram describing Process 3 Return Book.

The return book function has the following procedures:Step 1: Student gives the BOOK to the librarian.Step 2: Librarian scans the book to get the BOOK IDStep 3: LOAN RECORD from the loan file/ class is found.Step 4: If the book is overdue, the DEADLINE DATE and the

STUDENT ID of the loan record are sent to calculate the fine amount.

Step 5: The FINE AMOUNT and the STUDENT ID are then sent to pay fine function (4. Pay Fine) for collecting the fine payment.

Step 6: No matter the book is overdue or not, the LOAN INFORMATION is passed to update loan file/class, by updating the SYSTEM DATE to the loan file/class.

Page 22: Part I: Data Dictionary and Process specification

Student

Library System

Librarian

Loan Book

Make Booking

Inquire Information

Pay Fine

Renew Book

Return Book

Check Loan Status

<<extends>>

<<extends>>

<<uses>>

<<uses>>

<<uses>>

Page 23: Part I: Data Dictionary and Process specification

3. With reference to the above description, draw a sequence diagram describing the Return Book use case.

Student Librarian Loan Pay Fine

giveBook(book)

scanBook(bookID) calculateFineAmount(fineAmount,

studentID) if overdue

updateLoan(systemDate)