|
50 50 problem
|
|
12-09-2009, 09:43 AM
(This post was last modified: 12-09-2009 09:46 AM by codecaine.)
Post: #1
|
|||
|
|||
|
50 50 problem
This seems like a easy program. I think they have a glitch on there site because they say my value is invalid. But I tested each function to make sure the returns were accurate. The link to this problem is here http://www.cstutoringcenter.com/problems....php?id=50
I attached my sourcecode at the bottom. I used my Extended Math Class ![]() In honor of our 50th problem, what is the sum of the 50th Fibonacci number, 50th prime number and the 50th odd number? Recall that the Fibonacci sequence looks like: 1 1 2 3 5 8 13 ..... the prime sequence looks like: 2 3 5 7 11 13 ..... and we all know the sequence of odd numbers which is trivial. Main program Code: public class MathTestMy extended math class Code: public class MathExtended {Without syntax highlighting etc code looks sloopy on here. You are better of downloading the zip. |
|||
|
12-09-2009, 09:58 AM
Post: #2
|
|||
|
|||
|
RE: 50 50 problem
Good Code
aand i think we should get syntax highlighting code tags "Character is determined more by the lack of certain experiences than by those one has had." Friedrich Nietzsche |
|||
|
12-09-2009, 10:04 AM
Post: #3
|
|||
|
|||
|
RE: 50 50 problem
Yea anything with a decent amount of code looks like crap lol
|
|||
|
12-10-2009, 03:54 AM
Post: #4
|
|||
|
|||
|
RE: 50 50 problem
I must say very good code codecaine. Good math class though !
@ Back_track You are right about syntax highlighting. I am going to search for addon for that. I am testing some addons and i am going to improve some things soon. There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
« Next Oldest | Next Newest »
|







a