I am a graduating student, taking up BS IT. Unfortunately, i don't have a talent in the field of programming. I have a problem regarding our final project this semester in Software Metrics. Our teacher requires us to have HALSTEAD METRICS PROGRAM to be pass on SEPT. 13 2010. Any language will do (C++ or Java, etc..). I really need your help, I'm asking for a favor if you could help in this. :cry: I need a code that will measure the following:
N1 = number of distinct operators (in each line)
N2 = number of distinct operands (in each line)
n1 = total number of unique operators (in each line)
n2 = total number of unique operands (in each line)
Thanks a lot!
drizzled42 0 Newbie Poster
jon.kiparsky 326 Posting Virtuoso
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
drizzled42 0 Newbie Poster
coil
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.