[Share]Test your development skills

Posts 1–15 of 35 · Page 1 of 3
[Share]Test your development skills
I found a cool site that gives problems that you should solve by using programming. Its in my sig and the link is here: Project Euler

I have finished one project so far, and I am looking forward to solving all of them .

/done

PS: You can check your answers to the problem by registering (no spam kids!).
Not bad i may try a few of them after my projects are done.
Quote Originally Posted by cosconub View Post
Not bad i may try a few of them after my projects are done.
I see you are learning C#, its a good way to learn it too!
yea it's just so hard to leave vb though because

C# is dead i keep getting more and more ideas in vb.net
Quote Originally Posted by cosconub View Post
yea it's just so hard to leave vb though because

C# is dead i keep getting more and more ideas in vb.net
C# is dead here at MPGH.. Globally... C# is more used than VB according to TIOBE.

TIOBE Software: The Coding Standards Company

PS: Using a progress bar on how much you learned a language? lol... what a joke honestly..
Quote Originally Posted by 'Bruno View Post
C# is dead here at MPGH.. Globally... C# is more used than VB according to TIOBE.

TIOBE Software: The Coding Standards Company

PS: Using a progress bar on how much you learned a language? lol... what a joke honestly..
@PS thank your brinuz (Oh and hai thar long time no see right?) someone agrees with me. Fucker your never going to be able to fill that bar up. C++ is ever expanding with all the millions of man hours each day spent writing new functions, doing new things, the possibilities are endless. February 16 I believe a computer is versing Ken Jennings in jepordy. The software for the computer I heard was made in C++. No offense but you will never be able to make something like that. That is artificial intelligence and is a highly sophisticated study field which has not even begun to have been explored. Point being, you can always learn, you will never know 100% as implied in that bar that you will be able to. With a cockyass attitude like that you can just get off of MPGH because at MPGH we are thinkers and innovators, not dead ends. We never stop learning.
Quote Originally Posted by fukojr2 View Post


@PS thank your brinuz (Oh and hai thar long time no see right?) someone agrees with me. Fucker your never going to be able to fill that bar up. C++ is ever expanding with all the millions of man hours each day spent writing new functions, doing new things, the possibilities are endless. February 16 I believe a computer is versing Ken Jennings in jepordy. The software for the computer I heard was made in C++. No offense but you will never be able to make something like that. That is artificial intelligence and is a highly sophisticated study field which has not even begun to have been explored. Point being, you can always learn, you will never know 100% as implied in that bar that you will be able to. With a cockyass attitude like that you can just get off of MPGH because at MPGH we are thinkers and innovators, not dead ends. We never stop learning.
He meant C# not C++.


Can someone make a console project for me and put this in and find the success #? everytime I do it my computer overheats. Its for proj # 5 btw.

Code:
Sub Main()
        Dim num As String = 1
        Dim length As Integer = 1
Start:
        length = num.ToString.Length
        If Val(num / 11).ToString.Length <= length Then
            If Val(num / 12).ToString.Length <= length Then
                If Val(num / 13).ToString.Length <= length Then
                    If Val(num / 14).ToString.Length <= length Then
                        If Val(num / 15).ToString.Length <= length Then
                            If Val(num / 16).ToString.Length <= length Then
                                If Val(num / 17).ToString.Length <= length Then
                                    If Val(num / 18).ToString.Length <= length Then
                                        If Val(num / 19).ToString.Length <= length Then
                                            If Val(num / 20).ToString.Length <= length Then
                                                System.Console.WriteLine("Success: " & num)
                                                Console.ReadLine()
                                            Else
                                                System.Console.WriteLine("Fail: " & num)
                                                num = num + 1
                                            End If
                                        Else
                                            System.Console.WriteLine("Fail: " & num)
                                            num = num + 1
                                        End If
                                    Else
                                        System.Console.WriteLine("Fail: " & num)
                                        num = num + 1
                                    End If
                                Else
                                    System.Console.WriteLine("Fail: " & num)
                                    num = num + 1
                                End If
                            Else
                                System.Console.WriteLine("Fail: " & num)
                                num = num + 1
                            End If
                        Else
                            System.Console.WriteLine("Fail: " & num)
                            num = num + 1
                        End If
                    Else
                        System.Console.WriteLine("Fail: " & num)
                        num = num + 1
                    End If
                Else
                    System.Console.WriteLine("Fail: " & num)
                    num = num + 1
                End If
            Else
                System.Console.WriteLine("Fail: " & num)
                num = num + 1
            End If
        Else
            System.Console.WriteLine("Fail: " & num)
            num = num + 1
        End If
        GoTo Start
    End Sub
is it 1125899906842620?
Quote Originally Posted by mnpeepno2 View Post
He meant C# not C++.


Can someone make a console project for me and put this in and find the success #? everytime I do it my computer overheats. Its for proj # 5 btw.

Code:
Sub Main()
        Dim num As String = 1
        Dim length As Integer = 1
Start:
        length = num.ToString.Length
        If Val(num / 11).ToString.Length <= length Then
            If Val(num / 12).ToString.Length <= length Then
                If Val(num / 13).ToString.Length <= length Then
                    If Val(num / 14).ToString.Length <= length Then
                        If Val(num / 15).ToString.Length <= length Then
                            If Val(num / 16).ToString.Length <= length Then
                                If Val(num / 17).ToString.Length <= length Then
                                    If Val(num / 18).ToString.Length <= length Then
                                        If Val(num / 19).ToString.Length <= length Then
                                            If Val(num / 20).ToString.Length <= length Then
                                                System.Console.WriteLine("Success: " & num)
                                                Console.ReadLine()
                                            Else
                                                System.Console.WriteLine("Fail: " & num)
                                                num = num + 1
                                            End If
                                        Else
                                            System.Console.WriteLine("Fail: " & num)
                                            num = num + 1
                                        End If
                                    Else
                                        System.Console.WriteLine("Fail: " & num)
                                        num = num + 1
                                    End If
                                Else
                                    System.Console.WriteLine("Fail: " & num)
                                    num = num + 1
                                End If
                            Else
                                System.Console.WriteLine("Fail: " & num)
                                num = num + 1
                            End If
                        Else
                            System.Console.WriteLine("Fail: " & num)
                            num = num + 1
                        End If
                    Else
                        System.Console.WriteLine("Fail: " & num)
                        num = num + 1
                    End If
                Else
                    System.Console.WriteLine("Fail: " & num)
                    num = num + 1
                End If
            Else
                System.Console.WriteLine("Fail: " & num)
                num = num + 1
            End If
        Else
            System.Console.WriteLine("Fail: " & num)
            num = num + 1
        End If
        GoTo Start
    End Sub
Dude you completely missed the point of my post.
Quote Originally Posted by mnpeepno2 View Post
He meant C# not C++.


Can someone make a console project for me and put this in and find the success #? everytime I do it my computer overheats. Its for proj # 5 btw.

Code:
Sub Main()
        Dim num As String = 1
        Dim length As Integer = 1
Start:
        length = num.ToString.Length
        If Val(num / 11).ToString.Length <= length Then
            If Val(num / 12).ToString.Length <= length Then
                If Val(num / 13).ToString.Length <= length Then
                    If Val(num / 14).ToString.Length <= length Then
                        If Val(num / 15).ToString.Length <= length Then
                            If Val(num / 16).ToString.Length <= length Then
                                If Val(num / 17).ToString.Length <= length Then
                                    If Val(num / 18).ToString.Length <= length Then
                                        If Val(num / 19).ToString.Length <= length Then
                                            If Val(num / 20).ToString.Length <= length Then
                                                System.Console.WriteLine("Success: " & num)
                                                Console.ReadLine()
                                            Else
                                                System.Console.WriteLine("Fail: " & num)
                                                num = num + 1
                                            End If
                                        Else
                                            System.Console.WriteLine("Fail: " & num)
                                            num = num + 1
                                        End If
                                    Else
                                        System.Console.WriteLine("Fail: " & num)
                                        num = num + 1
                                    End If
                                Else
                                    System.Console.WriteLine("Fail: " & num)
                                    num = num + 1
                                End If
                            Else
                                System.Console.WriteLine("Fail: " & num)
                                num = num + 1
                            End If
                        Else
                            System.Console.WriteLine("Fail: " & num)
                            num = num + 1
                        End If
                    Else
                        System.Console.WriteLine("Fail: " & num)
                        num = num + 1
                    End If
                Else
                    System.Console.WriteLine("Fail: " & num)
                    num = num + 1
                End If
            Else
                System.Console.WriteLine("Fail: " & num)
                num = num + 1
            End If
        Else
            System.Console.WriteLine("Fail: " & num)
            num = num + 1
        End If
        GoTo Start
    End Sub
is it 1125899906842620?
So...ugly. C'mon there has to be a more efficient way of doing that mnpeep.

Code:
For i As Integer = 11 To 20
    If Not (num / i).ToString.Length <= length Then
         Console.WriteLine("Fail: " & num.ToString)
         num += 1
         Exit For
    Elseif i = 20 Then
         Console.WriteLine("Success: " & num.ToString)
         Console.ReadLine
    End If
Next i



Great share though, I'm looking at this now, looks AWESOME!
Quote Originally Posted by Jason View Post


So...ugly. C'mon there has to be a more efficient way of doing that mnpeep.

Code:
For i As Integer = 11 To 20
    If Not (num / i).ToString.Length <= length Then
         Console.WriteLine("Fail: " & num.ToString)
         num += 1
         Exit For
    Elseif i = 20 Then
         Console.WriteLine("Success: " & num.ToString)
         Console.ReadLine
    End If
Next i



Great share though, I'm looking at this now, looks AWESOME!
Thanks,but whats the number? (my computer is in the freezer)

Its ugly cause i was lazy as always cause i have no school tomorrow, but I have to help out my dad at his store...
Quote Originally Posted by mnpeepno2 View Post
Thanks,but whats the number? (my computer is in the freezer)

Its ugly cause i was lazy as always cause i have no school tomorrow, but I have to help out my dad at his store...
Um, didn't see any of the surrounding code, is this in a loop or something? What's the inital "num" variable and what is the "length" variable.
Nice job

Thanx for contrib
I know, but im a Big fan of mpgh, i got to other sites for c#...

the progress bar changes the more i learn......


@ topic

Do i have to register to get the projects?
Quote Originally Posted by cosconub View Post
I know, but im a Big fan of mpgh, i got to other sites for c#...

the progress bar changes the more i learn......


@ topic

Do i have to register to get the projects?
No, but you must register to be able to check the answer.
oh, i didnt see were the projects are.
Posts 1–15 of 35 · Page 1 of 3

Post a Reply

Tags for this Thread

None

Talk with us