Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Lab exercise questions (AD & CD)
1. (Topic: Activity Diagram)
Software Engineering (UCS 507)
Faculty Coordinator: Vinay Arora
Draw an activity diagram exemplifying proper partitioning of whole figure for the
following Change Student Information use case: It starts with the student logging onto the
system by filling out a web form and clicking the Submit button. The form is transmitted to the
web server, which then passes the data to the mainframe computer. The mainframe accesses the
STUDENT database and passes either a “Not Found” message or selected student data to the
web server. If the student record has not been found, the web server displays an error message on
the web page. If the student record has been found, the web server formats a new page
containing the current student data in a web form. The student may cancel the change from either
the Logon system or the Enter change states, and the activity halts. If the student enters changes
on the web form and clicks the submit button, the change data is transmitted to the server and a
program starts running that validates the changes. If there are errors, an error message is sent to
the web page. If the data are valid, the student record is updated and a Change Student Journal
Record is written. After a valid update, a confirmation web page is sent to the browser and the
activity terminates.
(Topic: Class Diagram)
Software Engineering (UCS 507)
Faculty Coordinator: Vinay Arora
In a HR management system five classes are involved namely HRTransaction, Employee,
DepartmentHead, TimeSheetEntry and PayrollAction. One DepartmentHead submits one or
more TimeSheetEntry as well as manages zero or more Employee. HRTransaction is related to
Employee with the relationship name maintained for and multiplicity 1 is to 1. Class
HRTransaction notifies class PayrollAction. One instance of class TimeSheetEntry is related to
one or many instances of class PayrollAction with the relationship name based on. Class
HRTransaction have EmployeeName and State as private data members and Notify as private
member function. Class Employee have Deduction and TelephoneNumber as public data
members and ChangeState, ChangeAddress as protected member functions. Class
DepartmentHead constitutute DateOfBirth, State as protected data members and AddNew,
ManagesWork as private member functions. Class TimeSheetEntry has no data members and
member functions. Class PayrollAction have Contributions, StateTax and LocalTax as private
data members and Notify, Calculate and GenerateCheque as public member functions. Draw a
suitable class diagram.