You are on page 1of 4

AIR UNIVERSITY

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 12

Lab Title: UML State Diagrams

Student Name: RIZWAN AHMAD Reg. No: 190450

⮚ Objective: Learn to draw State Diagrams for C++ code design

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)

Ability to Conduct
Experiment

Ability to assimilate the


results

Effective use of lab


equipment and follows
the lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Signature:
LAB TASKS
TASK NO 1
Draw a State Diagram for placing an online order
SOLUTION
State diagram for an online order is as following;

Description about the task:


Steps that we followed are given below;
1. On the event of an order being received, we transit from our initial state to Unprocessed
order state.
2. The unprocessed order is then checked.
3. If the order is rejected, we transit to the Rejected Order state.
4. If the order is accepted and we have the items available we transit to the fulfilled order
state.
5. However if the items are not available we transit to the Pending Order state.
6. After the order is fulfilled, we transit to the final state. In this example, we merge the two
states i.e. Fulfilled order and Rejected order into one final state.
Note – Here we could have also treated fulfilled order and rejected order as final states
separately.
TASK NO 2
Draw Airport check in state diagram in Visio.

SOLUTION

Airport check in state diagram is as following;


Description about the task;

Steps that we followed are given below;


1. First there will be a check on time whether the passenger is on time or not on time.
2. If the passenger is on time then it will check the information regarding the passenger.
3. After checking and verifying the passenger’s information now it will check the passenger
whether the passenger is carrying any harmful material or not.
4. Now if the passenger is carrying something harmful or not permitted then it will be rejected.
5. But if the passenger is alright after checking then a seat will be chosen for him.
6. After that boarding pass will be awarded to him.
7. After that the belonging and luggage will be checked.
8. After that the boarding pass information will be shown.
9. Then the boarding pass will be brought to passenger.

CONCLUSION:-

Here in this lab we learned more about the UML state diagram that how a lengthy
and complicated task can be easy summarized in a diagram which gives us an
overall idea about the activity.

The end

You might also like