DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   Help Needed Urgently With Coding (http://www.daniweb.com/forums/thread13151.html)

NicolaD Oct 29th, 2004 4:35 pm
Help Needed Urgently With Coding
 
:sad: Hi all, been trying to code the following program for ages, if anyone can help please do so.

Code a java program that will determine the cyclomatic complexity(CC) of any given java source code module held in a text file. The program is to display the CC. Note- CC=Number of simple conditional statements (ifs, whiles, repeats, etc) + 1.

alc6379 Oct 29th, 2004 5:04 pm
Re: Help Needed Urgently With Coding
 
Please choose a different name for your thread titles in the future. "Help Needed Urgently With Coding" tells us nothing specific about what you need ( I mean, you've posted in a Coding forum, obviously you need coding help).

Additionally, stating you need help "Urgently" is rude. It is rude to the other members who have posted here before you. Urgent to you or not, wait your turn.

Narue Oct 29th, 2004 9:16 pm
Re: Help Needed Urgently With Coding
 
>if anyone can help please do so.
I don't see a problem. Open the Java source file, read it line by line, and do a string search for the appropriate keywords. The result is a good start for your solution; you can refine the search from there on the off chance that one of the keywords is a part of a larger identifier.

NicolaD Oct 29th, 2004 9:18 pm
Re: Help Needed Urgently With Coding
 
Quote:

Originally Posted by alc6379
Please choose a different name for your thread titles in the future. "Help Needed Urgently With Coding" tells us nothing specific about what you need ( I mean, you've posted in a Coding forum, obviously you need coding help).

Additionally, stating you need help "Urgently" is rude. It is rude to the other members who have posted here before you. Urgent to you or not, wait your turn.

Sorry for being so rude, first time on the site. In future I will name my thread correctly. Thank you for your advice. If possible you could please help me.

Narue Oct 30th, 2004 11:29 am
Re: Help Needed Urgently With Coding
 
Post some code so that we can see that you've made an attempt at solving the problem. A naive solution is immediately obvious and easily written. If you've put some effort into this problem then you'll have a workable solution and thus, a specific question as to how it can be improved.


All times are GMT -4. The time now is 2:50 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC