Software engineering

profileIstudyhelp_sa
2206350757503771389.pdf

KingSaudUniversity

College of Computer & Information Sciences

Computer Science Department

Tutorial:N98 0427/121/2014

Course Title: Software Engineering Course Code: CSC 342

Dr. S.Hammami Mr. Mudassar

Exercise 1:

Draw a Sequence Diagram for the process of registering a new voter who is not currently registered

to vote in an upcoming election.

 Assume that a voter starts by asking the online electoral web service if he is listed in the

online electoral registration database.

 When he finds that she is not listed, he contacts the electoral registrar, who sends him an

application form.

 As part of the application, he needs to contact the police, to request a copy of him police

record, as persons with recent criminal convictions cannot vote.

 He then sends the police record along with the application form to the registrar.

 The registrar checks the form is filled out correctly, and then enters him details in the

registration database.

 The registrar then sends an acknowledgement to the voter

 Who finally checks the online registration database again to confirm that him application

was processed.

Exercise 2:

To buy a book electronically from chapters.com, a customer needs to select the book from a list

provided by Chapters’ eCommerce system, provide credit card information to the system, then the

system gets authorization from the bank for the payment, and -- if positive -- confirms the sale.

The order is then sent to the orders department and when the book becomes available, it is shipped

to the customer. Also, the order department charges the customer’s credit card by informing the

bank of the amount.

Draw a sequence diagram that models this process. Make sure to model all relevant actors and the

interactions between them. Do show explicitly the time intervals when different actors actively

participate in the process you are modeling.