Software Design
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreSoftware Design

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 27th, 2008, 01:18 PM
086kerry 086kerry is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 4 086kerry Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 h 20 m 26 sec
Reputation Power: 0
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 }

Reply With Quote
  #2  
Old April 27th, 2008, 01:48 PM
086kerry 086kerry is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 4 086kerry Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 h 20 m 26 sec
Reputation Power: 0
its actually ok i've got it figured out!

Reply With Quote
  #3  
Old May 5th, 2008, 05:36 AM
Peter_APIIT Peter_APIIT is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 22 Peter_APIIT Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 40 m 10 sec
Reputation Power: 0
Can u post your code here and let others benefits.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreSoftware Design > Question about code for a flow graph


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT