Top Banner
1 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING SESSIONAL SOFTWARE ENGINEERING LAB SRIJANI PAL CSE, 7 TH SEM 0810447, DATED-21/11/2011 NATIONAL INSTITUTE OF TECHNOLOGY AGARTALA
78
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: SESSIONAL_SE_0810447

1

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

SESSIONAL SOFTWARE ENGINEERING LAB

SRIJANI PAL

CSE, 7TH SEM

0810447,

DATED-21/11/2011

NATIONAL INSTITUTE OF TECHNOLOGY

AGARTALA

Page 2: SESSIONAL_SE_0810447

2

ACKNOWLEDGEMENT

On the eve of submission of the sessional laboratory file of SOFTWARE ENGINEERING LAB ,I

would like to thank our respected Madam Sharmistha without whose help and constant

supervision it would not have been possible to prepare this report. She has always been a

source of constant inspiration and provided us with all lab facilities, guiding us at each step.

I would also like to thank all laboratory personnel who really made us comfortable with lab and

made our work easy.

And last but not the least I would like to thank my fellow classmates who really helped me alot.

Srijani Pal

Roll no.0810447

7th semester,CSE

Page 3: SESSIONAL_SE_0810447

3

INDEX

SNO DATE PROBLEM STATEMENT PAGE NO. SIGNATURE

1. 21/11/2011 TIME MANAGEMENT SYSTEM 5-14

2. 21/11/2011 HOTEL MANAGEMENT SYSTEM 15-27

3. 21/11/2011 LIBRARY INFORMATION SYSTEM 28-40

4. 21/11/2011 BOOK AUTOMATION SOFTWARE 41-54

5. 21/11/2011 WORD PROCESSOR SOFTWARE 55-68

6. 21/11/2011 RESTAURANT AUTOMATION SOFTWARE

69-80

Page 4: SESSIONAL_SE_0810447

4

PROBLEM NO.1: TIME MANAGEMENT SYSTEM

Draw a labelled DFD for the following time management software.

Clearly show the context diagram and the various UML diagram.

A company needs to develop a time management system for its executives. The software

should let the executives register their daily appointment schedules. The information to be

stored includes person(s) with whom meeting is arranged, venue, the time and duration of the

meeting, and the purpose (e.g. for a specific project work). When a meeting involving many

executives needs to be organized, the system should automatically find a common slot in the

diaries of the concerned executives and arrange a meeting (i.e. make relevant entries in the

diaries of all the concerned executives) at that time. It should also inform the concerned

executives about the scheduled meeting through e-mail. If no common slot is available, TMS

should help the secretary to rearrange the appointments of the executives in consultation with

the concerned executives for making room for a common slot. To help the executives check

their schedules for a particular day the system should have a very easy-to-use graphical

interface. Since the executives and the secretaries have their own desktop computers, the time

management software should be able to serve several remote requests simultaneously. Many

of the executives are relative novices in computer usage. Everyday morning the time

management software should email every executive his appointments for the day. Besides

registering their appointments and meetings, the executives might mark periods for which they

plan to be on leave. Also, executives might plan out the important jobs they need to do on any

day at different hours and post it in their daily list of engagements. Other features to be

supported by the TMS are the following:: TMS should be able to provide several types of

statistics such as which executive spent how much time on meetings. For which project how

many meetings were organized for what duration and how many man-hours were devoted to

it. Also, it should be able to display for any given period of time the fraction of time that on the

average which executive spent on meetings.

Page 5: SESSIONAL_SE_0810447

5

ANS:

THE DFDS FOR THE STATED PROBLEM ARE:

CONTEXT DIAGRAM:

Page 6: SESSIONAL_SE_0810447

6

DFD LEVEL 1:

Page 7: SESSIONAL_SE_0810447

7

DFD LEVEL 2:

The UML diagrams are as following:

USE CASE DIAGRAM:

Page 8: SESSIONAL_SE_0810447

8

Structural view

CLASS DIAGRAM:

OBJECT DIAGRAM:

Page 9: SESSIONAL_SE_0810447

9

Behavioural view

SEQUENCE DIAGRAM:

Page 10: SESSIONAL_SE_0810447

10

COLLABORATION DIAGRAM:

Page 11: SESSIONAL_SE_0810447

11

STATE CHART DIAGRAM:

Page 12: SESSIONAL_SE_0810447

12

ACTIVITY DIAGRAM:

Page 13: SESSIONAL_SE_0810447

13

Implementation view:

COMPONENT DIAGRAM:

Page 14: SESSIONAL_SE_0810447

14

Environmental view:

DEPLOYMENT DIAGRAM:

Page 15: SESSIONAL_SE_0810447

15

PROBLEM NO.2: HOTEL MANAGEMENT SOFTWARE

Draw a labelled DFD for the following time management software.

Clearly show the context diagram and its UML Diagram.

A hotel has a certain number of rooms. Each room can be either single bed or double bed type

or may be AC or non-AC type. The rooms have different rates depending on whether they are of

single or double, AC or non-AC types. The room tariff however may vary during different parts

of the year depending upon the occupancy rates. For these the computer should be able to

display the average occupancy rate for a given month, so that the manager can revise the room

tariff for the next month either upwards or downwards by a certain percentage. Perform

structured analysis and design for this Hotel Automation Software:: software that would

automate the book keeping activities of a five-star hotel.

Guests can reserve rooms in advance or can reserve rooms on the spot depending on

availability of rooms. The receptionist would enter data pertaining to guests such as their arrival

time, advance paid, approximate duration of stay and the type of the room required.

Depending on this data and subject to the availability of a suitable room, the computer would

allot a room number to the guest and assign a unique token number to each guest. If the guest

cannot be accommodated, the computer generates an apology message. The hotel catering

services manager would input the quantity and type of food items as and when consumed by

the guest, the token number of the guest and the corresponding date and time. When a

customer prepares to check out, the hotel automation software should generate the entire bill

for the customer and also print the balance amount payable by him. During checkout guests

can opt to register themselves for a frequent guests program. Frequent guests should be issued

an identity number which helps them to get special discounts on their bills.

Page 16: SESSIONAL_SE_0810447

16

ANS:

THE DFDS FOR THE STATED PROBLEM ARE:

CONTEXT DIAGRAM:

Page 17: SESSIONAL_SE_0810447

17

DFD LEVEL 1:

Page 18: SESSIONAL_SE_0810447

18

DFD LEVEL 2:

Page 19: SESSIONAL_SE_0810447

19

The UML diagrams are as following:

USE CASE DIAGRAM:

Page 20: SESSIONAL_SE_0810447

20

Structural view

CLASS DIAGRAM:

Page 21: SESSIONAL_SE_0810447

21

OBJECT DIAGRAM:

Page 22: SESSIONAL_SE_0810447

22

Behavioural view

SEQUENCE DIAGRAM:

Page 23: SESSIONAL_SE_0810447

23

COLLABORATION DIAGRAM:

Page 24: SESSIONAL_SE_0810447

24

STATE CHART DIAGRAM:

Page 25: SESSIONAL_SE_0810447

25

ACTIVITY DIAGRAM:

Page 26: SESSIONAL_SE_0810447

26

Implementation view:

COMPONENT DIAGRAM:

Page 27: SESSIONAL_SE_0810447

27

Environmental view:

DEPLOYMENT DIAGRAM:

Page 28: SESSIONAL_SE_0810447

28

PROBLEM NO.3:LIBRARY INFORMATION SYSTEM

Draw a labelled DFD for the following time management software.

Clearly show the context diagram and the various UML diagram.

The different activities of the library of our institute pertaining to the issue and return of the books by

the members of the library and various queries regarding books as listed below are to be automated.

LIBRARY INFORMATION SYSTEM(LIS):

The library has 10000 books.Each book is assigned a unique identification number(called ISBN

no.). The library clerk should be able to enter the details of the book in the LIS through suitable

interface.

There are four categories of members of the library:

UNDERGRADUATE STUDENT,POST GRADUATE STUDENTS, RESEARCH SCHOLARS AND FACULTY

MEMBERS.

Each library member is assigned a unique library membership code number.

Each under graduate student can issue upto 2 books for 1 month duration.

Each post graduate student can issue upto 4 books for 1 month duration.

Each research scholar can issue upto 6 books for 3 months duration.

The faculty member can issue upto 10 books for 6 months duration

The LIS should answer user queries regarding whether a particular book is available. If the book

is available, LIS should display the rack number in which the book is available and the number

of copies available.

LIS registers each book issued to a member. When a member returns a book, LIS deletes the

book from the members account and makes the book available for future issue.

members should be allowed to reserve books which have been issued. When such a reserved

book is returned, LIS should print a slip for the concerned member to get the book issued and

should disallow issue of the book to nay other member for a period of seven days or until the

member who has reserved the book gets it.

When a member returns a book, LIS prints a bill for the penalty charge for over due books. LIS

calculates the penalty charge by multiplying the number of days the book is overdue by the

penalty rate.

LIS prints remainder messages for the members against whom books are overdue,upon a

request by the Librarian.

LIS should allow the Librarian to create and delete member records. Each member should be

allocated a unique membership identification number which the member can use to issue ,

return, and reserve books.

Page 29: SESSIONAL_SE_0810447

29

ANS:

THE DFDS FOR THE STATED PROBLEM ARE:

CONTEXT DIAGRAM:

Page 30: SESSIONAL_SE_0810447

30

DFD LEVEL 1:

Page 31: SESSIONAL_SE_0810447

31

DFD LEVEL 2:

Page 32: SESSIONAL_SE_0810447

32

The UML diagrams are as following:

USE CASE DIAGRAM:

Page 33: SESSIONAL_SE_0810447

33

Structural view

CLASS DIAGRAM:

Page 34: SESSIONAL_SE_0810447

34

OBJECT DIAGRAM:

Page 35: SESSIONAL_SE_0810447

35

Behavioural view

SEQUENCE DIAGRAM:

Page 36: SESSIONAL_SE_0810447

36

COLLABORATION DIAGRAM:

Page 37: SESSIONAL_SE_0810447

37

STATE CHART DIAGRAM:

Page 38: SESSIONAL_SE_0810447

38

ACTIVITY DIAGRAM:

Page 39: SESSIONAL_SE_0810447

39

Implementation view:

COMPONENT DIAGRAM:

Page 40: SESSIONAL_SE_0810447

40

Environmental view:

DEPLOYMENT DIAGRAM:

Page 41: SESSIONAL_SE_0810447

41

PROBLEM NO.4:BOOK AUTOMATION SYSTEM

From a discussion with the owner of the book shop, the following user

requirements for this Bookshop Automation Software (BAS): have been

arrived at.Prepare dfds and uml diagram.

BAS should help the customers query whether a book is in stock. The users can query the

availability of a book either by using the book title or by using the name of the author. If the

book is not currently being sold by the bookshop, then the customer is asked to enter full

details of the book for procurement of the book in future. The customer can also provide his e-

mail address, so that he can be intimated automatically by the software as and when the book

copies are received. If a book is in stock, the exact number of copies available and the rack

number in which the book is located should be displayed. If a book is not in stock, the query for

the book is used to increment a request field for the book. The manager can periodically view

the request field of the books to arrive at a rough estimate regarding the current demand for

different books. BAS should maintain the price of various books. As soon as a customer selects

his books for purchase, the sales clerk the sales clerk would enter the ISBN numbers of the

book. BAS should update the stocks, and generate the sales receipt for the book. BAS should

allow employees to update the inventory whenever new supply arrives. Also upon request by

the owner of the bookshop, BAS should generate sales statistics (viz. book name, publisher,

ISBN number, number of copies sold and the sales revenue) for any period. The sales statistics

will help the owner to know the exact business done over any period and also to determine

inventory level required for various books. The inventory level required for a book is equal to

the number of copies of a book sold over a period of one week multiplied by the average

number of weeks it takes to procure the book from its publisher. Everyday the bookshop owner

would give a command for the BAS to print the books which have fallen below the threshold

and the number of copies to be procured along with the full address of the publisher.

Page 42: SESSIONAL_SE_0810447

42

ANS:

THE DFDS FOR THE STATED PROBLEM ARE:

CONTEXT DIAGRAM:

Page 43: SESSIONAL_SE_0810447

43

DFD LEVEL 1:

Page 44: SESSIONAL_SE_0810447

44

DFD LEVEL 2:

Page 45: SESSIONAL_SE_0810447

45

The UML diagrams are as following:

USE CASE DIAGRAM:

Page 46: SESSIONAL_SE_0810447

46

Structural view

CLASS DIAGRAM:

Page 47: SESSIONAL_SE_0810447

47

OBJECT DIAGRAM:

Page 48: SESSIONAL_SE_0810447

48

Behavioural view

SEQUENCE DIAGRAM:

Page 49: SESSIONAL_SE_0810447

49

COLLABORATION DIAGRAM:

Page 50: SESSIONAL_SE_0810447

50

STATE CHART DIAGRAM:

Page 51: SESSIONAL_SE_0810447

51

ACTIVITY DIAGRAM:

Page 52: SESSIONAL_SE_0810447

52

Implementation view:

COMPONENT DIAGRAM:

Page 53: SESSIONAL_SE_0810447

53

Environmental view:

DEPLOYMENT DIAGRAM:

Page 54: SESSIONAL_SE_0810447

54

PROBLEM NO.5: WORD PROCESSOR SOFTWARE

Draw DFD and UML for the following word processing software.

The word processing software should be able to read text from an ASCII file or HTML file

and store the formatted text as HTML files in the disk.

The word processing software should ask the user about the number of characters in an

output line of the formatted text. The user should be allowed to select any number

between 1 and 132.

The word processing software should process the input text in the following way.

Each output line is to contain exactly the number of character specified by

the user (including blanks).

The word processing software is to both left and right justify the text so

that there are there are no blanks at the left- and right-hand ends of lines

except the first and possibly the last lines of paragraphs. The word

processing software should do this by inserting extra blanks between

words.

The input text from the ASCII file should consist of words separated by one

or more blanks and a special character PP, which denotes the end of a

paragraph and the beginning of another.

The first line of each paragraph should be indented by five spaces and

should be right justified.

The last line of each paragraph should be left justified.

The user should be able to browse through the document and add, modify or delete

words. He /She should also be able to mark any word as bold, italic, superscript, or

subscript.

The user can request to see the number of characters, words, lines, and paragraphs

used in the document.

The user should be able to save his documents under a name specified by him.

Page 55: SESSIONAL_SE_0810447

55

ANS:

THE DFDS FOR THE STATED PROBLEM ARE:

CONTEXT DIAGRAM:

Page 56: SESSIONAL_SE_0810447

56

DFD LEVEL 1:

Page 57: SESSIONAL_SE_0810447

57

DFD LEVEL 2:

Page 58: SESSIONAL_SE_0810447

58

The UML diagrams are as following:

USE CASE DIAGRAM:

Page 59: SESSIONAL_SE_0810447

59

Structural view

CLASS DIAGRAM:

Page 60: SESSIONAL_SE_0810447

60

OBJECT DIAGRAM:

Page 61: SESSIONAL_SE_0810447

61

Behavioural view

SEQUENCE DIAGRAM:

Page 62: SESSIONAL_SE_0810447

62

COLLABORATION DIAGRAM:

Page 63: SESSIONAL_SE_0810447

63

STATE CHART DIAGRAM:

Page 64: SESSIONAL_SE_0810447

64

ACTIVITY DIAGRAM:

Page 65: SESSIONAL_SE_0810447

65

Implementation view:

COMPONENT DIAGRAM:

Page 66: SESSIONAL_SE_0810447

66

DEPLOYMENT DIAGRAM:

Page 67: SESSIONAL_SE_0810447

67

PROBLEM NO.6: RESTAURANT AUTOMATION SYSTEM

Perform DFD,Structure chart & UML for developing the following

restaurant automation system using SA/SD technique.

A restaurant owner wants to computerize his order processing, billing and accounting activities. He also

wants the computer to generate statistical report about the sales of different items. A major goal of this

computerization is to make supply ordering more accurate so that the problem of excess inventory is

avoided as wellas the problem of noon-availability of ingredients required to satisfy orders for some

popular items is minimized. The computer should maintain the prices of all the items and also support

changing the prices by the manager. Whenever any item is sold, the sales clerk would enter the item

code and the quantity sold. The computer should generate bills whenever food items are sold.

Whenever ingredients are issued for preparation of food items, the data is to be entered into the

computer. Purchase orders are generated on a daily basis, whenever the stock for any ingredient falls

below a threshold value. The computer should calculate the threshold value for each item based on the

average consumption of this ingredient for the past three days and assuming that a minimum of two

days stock must be maintained for all ingredients. Whenever the ordered ingredients arrive, the invoice

data regarding the quantity and price is entered. If sufficient cash balance is available, the computer

should print checks immediately against invoice. Monthly sales receipt and expenses data should be

generated whenever the manager would request to see them.

Page 68: SESSIONAL_SE_0810447

68

ANS:

THE DFDS FOR THE STATED PROBLEM ARE:

CONTEXT DIAGRAM:

Page 69: SESSIONAL_SE_0810447

69

DFD LEVEL 1:

Page 70: SESSIONAL_SE_0810447

70

STRUCTURE CHART:

Page 71: SESSIONAL_SE_0810447

71

The UML diagrams are as following:

USE CASE DIAGRAM:

Page 72: SESSIONAL_SE_0810447

72

Structural view

CLASS DIAGRAM:

OBJECT DIAGRAM:

Page 73: SESSIONAL_SE_0810447

73

Behavioural view

SEQUENCE DIAGRAM:

Page 74: SESSIONAL_SE_0810447

74

COLLABORATION DIAGRAM:

Page 75: SESSIONAL_SE_0810447

75

STATE CHART DIAGRAM:

Page 76: SESSIONAL_SE_0810447

76

ACTIVITY DIAGRAM:

Page 77: SESSIONAL_SE_0810447

77

Environmental view:

DEPLOYMENT DIAGRAM:

Page 78: SESSIONAL_SE_0810447

78