|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Question about code for a flow graph
could someone please tell me how many nodes, edges and predicate-nodes are in this piece of code when i do a flow graph.......
1 void printScore (int testScore, int studentAge) { 2 if (testScore >= 40) { 3 if (studentAge < 10) { 4 System.out.println("You did a great job"); 5 } else { 6 System.out.println("You did pass"); 7 } 8 } else if (testScore < 50) 9 System.out.println("You did not pass"); 10 } |
|
#2
|
|||
|
|||
|
its actually ok i've got it figured out!
|
|
#3
|
|||
|
|||
|
Can u post your code here and let others benefits.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Software Design > Question about code for a flow graph |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|