q state the technique for converting a state


Q. State the Technique for converting a state diagram to code.

i) Identify the major control path. Starting with first state, find the path from diagram that corresponds to the expected sequence of events. Keep names of states in a linear sequence which now forms a sequence of statements in program.

ii) Identify alternate paths which branch off the major path and later joined again.

These become conditional statements in program.

iii) Identify loops i.e. backward paths branching off from major path and earlier. Multiple backward paths do not crossing over form nested loops.

iv) Left out states transitions correspond to exception conditions that can be tackled by exception handling or by error routines or even by testing and setting of status flags. 

 

Request for Solution File

Ask an Expert for Answer!!
Database Management System: q state the technique for converting a state
Reference No:- TGS0353516

Expected delivery within 24 Hours