Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Olive Branch to Newbies

Olive Branch to Newbies

Scheduled Pinned Locked Moved The Lounge
comdata-structureshelpquestion
27 Posts 13 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • realJSOPR realJSOP

    Over the last 17 years, we've been bombarded by new programmers wanting us to help them with their homework. In the past, I've been loath to participate in such transactions, but recently had a change of heart. In the interest of extending a helping hand to homework requestors, I've decided to help in any way I can, starting with this Q/A question. How I can create a class with array[^] I think the key here is to give them the code using features of the language that they haven't yet been taught. EDIT======================= I don't understand the 1-vote(s) - I gave him exactly what he asked for (a 4x6 array of players), and even updated my answer to provided the required info from the collection (average height/weight, tallest/heaviest user, and a list of players shorter than 70kg). EDIT======================= He accepted my solution. God I wish I could be there when the instructor sees it.

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

    S Offline
    S Offline
    Slacker007
    wrote on last edited by
    #2

    Eventually, the pain meds that you are taking are going to wear off and you will have the all too common "WTF was I thinking" moment.

    -- rants are the vehicle of the lazy and uninspired - JSOP 2/2018

    realJSOPR 1 Reply Last reply
    0
    • realJSOPR realJSOP

      Over the last 17 years, we've been bombarded by new programmers wanting us to help them with their homework. In the past, I've been loath to participate in such transactions, but recently had a change of heart. In the interest of extending a helping hand to homework requestors, I've decided to help in any way I can, starting with this Q/A question. How I can create a class with array[^] I think the key here is to give them the code using features of the language that they haven't yet been taught. EDIT======================= I don't understand the 1-vote(s) - I gave him exactly what he asked for (a 4x6 array of players), and even updated my answer to provided the required info from the collection (average height/weight, tallest/heaviest user, and a list of players shorter than 70kg). EDIT======================= He accepted my solution. God I wish I could be there when the instructor sees it.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      F Offline
      F Offline
      F ES Sitecore
      wrote on last edited by
      #3

      How does that help him?

      new Player(){ID=118, Height=random.Next(155,180), Name="Numnuts", Weight=random.Next(63,80)}

      You missed out the "b" in "Numbnuts", such sloppy work might cost him his grade. Please give him the proper codes, it's urgent.

      realJSOPR L P 3 Replies Last reply
      0
      • S Slacker007

        Eventually, the pain meds that you are taking are going to wear off and you will have the all too common "WTF was I thinking" moment.

        -- rants are the vehicle of the lazy and uninspired - JSOP 2/2018

        realJSOPR Offline
        realJSOPR Offline
        realJSOP
        wrote on last edited by
        #4

        Slacker007 wrote:

        Eventually, the pain meds that you are taking are going to where off and you will have the all too common "WTF was I thinking" moment.

        "wear" off. :)

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

        S 2 Replies Last reply
        0
        • F F ES Sitecore

          How does that help him?

          new Player(){ID=118, Height=random.Next(155,180), Name="Numnuts", Weight=random.Next(63,80)}

          You missed out the "b" in "Numbnuts", such sloppy work might cost him his grade. Please give him the proper codes, it's urgent.

          realJSOPR Offline
          realJSOPR Offline
          realJSOP
          wrote on last edited by
          #5

          I didn't want to make it real obvious... The omission of the "b" was intentional.

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

          1 Reply Last reply
          0
          • realJSOPR realJSOP

            Slacker007 wrote:

            Eventually, the pain meds that you are taking are going to where off and you will have the all too common "WTF was I thinking" moment.

            "wear" off. :)

            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
            -----
            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
            -----
            When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

            S Offline
            S Offline
            Slacker007
            wrote on last edited by
            #6

            :laugh: Today, I identify as a full retard. What can I say?

            -- rants are the vehicle of the lazy and uninspired - JSOP 2/2018

            1 Reply Last reply
            0
            • realJSOPR realJSOP

              Slacker007 wrote:

              Eventually, the pain meds that you are taking are going to where off and you will have the all too common "WTF was I thinking" moment.

              "wear" off. :)

              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
              -----
              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
              -----
              When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

              S Offline
              S Offline
              Slacker007
              wrote on last edited by
              #7

              :-O :)

              -- rants are the vehicle of the lazy and uninspired - JSOP 2/2018

              1 Reply Last reply
              0
              • F F ES Sitecore

                How does that help him?

                new Player(){ID=118, Height=random.Next(155,180), Name="Numnuts", Weight=random.Next(63,80)}

                You missed out the "b" in "Numbnuts", such sloppy work might cost him his grade. Please give him the proper codes, it's urgent.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #8

                It wouldn't surprise me that this code shows up again in a future article. The student, so cocky due to his good grade, will submit it as his own. :-D

                When you are dead, you won't even know that you are dead. It's a pain only felt by others. Same thing when you are stupid.

                F realJSOPR 2 Replies Last reply
                0
                • L Lost User

                  It wouldn't surprise me that this code shows up again in a future article. The student, so cocky due to his good grade, will submit it as his own. :-D

                  When you are dead, you won't even know that you are dead. It's a pain only felt by others. Same thing when you are stupid.

                  F Offline
                  F Offline
                  F ES Sitecore
                  wrote on last edited by
                  #9

                  How to use google to translate Numnuts into Hindi. Plz send codes, its urgent.

                  L realJSOPR 2 Replies Last reply
                  0
                  • realJSOPR realJSOP

                    Over the last 17 years, we've been bombarded by new programmers wanting us to help them with their homework. In the past, I've been loath to participate in such transactions, but recently had a change of heart. In the interest of extending a helping hand to homework requestors, I've decided to help in any way I can, starting with this Q/A question. How I can create a class with array[^] I think the key here is to give them the code using features of the language that they haven't yet been taught. EDIT======================= I don't understand the 1-vote(s) - I gave him exactly what he asked for (a 4x6 array of players), and even updated my answer to provided the required info from the collection (average height/weight, tallest/heaviest user, and a list of players shorter than 70kg). EDIT======================= He accepted my solution. God I wish I could be there when the instructor sees it.

                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                    -----
                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                    -----
                    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                    T Offline
                    T Offline
                    TNCaver
                    wrote on last edited by
                    #10

                    Extra points awarded for such clever pseudo-Indian names. Reetard, Dumass, Numnuts... I think I went to college with these guys.

                    If you think 'goto' is evil, try writing an Assembly program without JMP.

                    P 1 Reply Last reply
                    0
                    • L Lost User

                      It wouldn't surprise me that this code shows up again in a future article. The student, so cocky due to his good grade, will submit it as his own. :-D

                      When you are dead, you won't even know that you are dead. It's a pain only felt by others. Same thing when you are stupid.

                      realJSOPR Offline
                      realJSOPR Offline
                      realJSOP
                      wrote on last edited by
                      #11

                      I updated my answer to fulfill his requirements. I wonder if he'll turn it in that way... Even better, I wonder how his instructor will respond, given the somewhat advanced nature of the code. If he can't build a simple array, how is he going to defend his use of generics and Linq? I'd love to be a fly on the wall to see it (mostly because it would be hard to identify me among all the other flies that are no doubt on the wall).

                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                      -----
                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                      -----
                      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                      K 1 Reply Last reply
                      0
                      • realJSOPR realJSOP

                        I updated my answer to fulfill his requirements. I wonder if he'll turn it in that way... Even better, I wonder how his instructor will respond, given the somewhat advanced nature of the code. If he can't build a simple array, how is he going to defend his use of generics and Linq? I'd love to be a fly on the wall to see it (mostly because it would be hard to identify me among all the other flies that are no doubt on the wall).

                        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                        -----
                        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                        -----
                        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                        K Offline
                        K Offline
                        Kevin Marois
                        wrote on last edited by
                        #12

                        I taught Computer Science for two years. I had students regularly turn on code that they got off the internet somewhere. As soon as I saw it I would hold a Code Review in front of the whole class and have the student come up in front and explain their code. They only every did that once.

                        If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                        realJSOPR 1 Reply Last reply
                        0
                        • K Kevin Marois

                          I taught Computer Science for two years. I had students regularly turn on code that they got off the internet somewhere. As soon as I saw it I would hold a Code Review in front of the whole class and have the student come up in front and explain their code. They only every did that once.

                          If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                          realJSOPR Offline
                          realJSOPR Offline
                          realJSOP
                          wrote on last edited by
                          #13

                          I'm not convinced this is going to happen in this case. :)

                          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                          -----
                          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                          -----
                          When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                          K 1 Reply Last reply
                          0
                          • realJSOPR realJSOP

                            I'm not convinced this is going to happen in this case. :)

                            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                            -----
                            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                            -----
                            When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                            K Offline
                            K Offline
                            Kevin Marois
                            wrote on last edited by
                            #14

                            The instructor's probably just as clueless as the student

                            If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                            1 Reply Last reply
                            0
                            • realJSOPR realJSOP

                              Over the last 17 years, we've been bombarded by new programmers wanting us to help them with their homework. In the past, I've been loath to participate in such transactions, but recently had a change of heart. In the interest of extending a helping hand to homework requestors, I've decided to help in any way I can, starting with this Q/A question. How I can create a class with array[^] I think the key here is to give them the code using features of the language that they haven't yet been taught. EDIT======================= I don't understand the 1-vote(s) - I gave him exactly what he asked for (a 4x6 array of players), and even updated my answer to provided the required info from the collection (average height/weight, tallest/heaviest user, and a list of players shorter than 70kg). EDIT======================= He accepted my solution. God I wish I could be there when the instructor sees it.

                              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                              -----
                              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                              -----
                              When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                              G Offline
                              G Offline
                              GuyThiebaut
                              wrote on last edited by
                              #15

                              It sounds like you have been graced by being touched by the noodly appendages of the Flying Spaghetti Monster and at last seen the light, ramen! Maybe what they wanted was abuse and you dissappointed them by being helpful.

                              “That which can be asserted without evidence, can be dismissed without evidence.”

                              ― Christopher Hitchens

                              1 Reply Last reply
                              0
                              • F F ES Sitecore

                                How to use google to translate Numnuts into Hindi. Plz send codes, its urgent.

                                L Offline
                                L Offline
                                Lost User
                                wrote on last edited by
                                #16

                                :laugh: :laugh: :laugh: :-\ :thumbsup:

                                When you are dead, you won't even know that you are dead. It's a pain only felt by others. Same thing when you are stupid.

                                1 Reply Last reply
                                0
                                • realJSOPR realJSOP

                                  Over the last 17 years, we've been bombarded by new programmers wanting us to help them with their homework. In the past, I've been loath to participate in such transactions, but recently had a change of heart. In the interest of extending a helping hand to homework requestors, I've decided to help in any way I can, starting with this Q/A question. How I can create a class with array[^] I think the key here is to give them the code using features of the language that they haven't yet been taught. EDIT======================= I don't understand the 1-vote(s) - I gave him exactly what he asked for (a 4x6 array of players), and even updated my answer to provided the required info from the collection (average height/weight, tallest/heaviest user, and a list of players shorter than 70kg). EDIT======================= He accepted my solution. God I wish I could be there when the instructor sees it.

                                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                  -----
                                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                  -----
                                  When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                                  W Offline
                                  W Offline
                                  W Balboos GHB
                                  wrote on last edited by
                                  #17

                                  Thanks to everyone's favorite Turk, Olive Branch has taken on a whole new meaning. Perhaps you are referring to that and not the old-school ideas?

                                  Ravings en masse^

                                  "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                                  "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                                  1 Reply Last reply
                                  0
                                  • F F ES Sitecore

                                    How to use google to translate Numnuts into Hindi. Plz send codes, its urgent.

                                    realJSOPR Offline
                                    realJSOPR Offline
                                    realJSOP
                                    wrote on last edited by
                                    #18

                                    नंब नट

                                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                    -----
                                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                    -----
                                    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                                    1 Reply Last reply
                                    0
                                    • realJSOPR realJSOP

                                      Over the last 17 years, we've been bombarded by new programmers wanting us to help them with their homework. In the past, I've been loath to participate in such transactions, but recently had a change of heart. In the interest of extending a helping hand to homework requestors, I've decided to help in any way I can, starting with this Q/A question. How I can create a class with array[^] I think the key here is to give them the code using features of the language that they haven't yet been taught. EDIT======================= I don't understand the 1-vote(s) - I gave him exactly what he asked for (a 4x6 array of players), and even updated my answer to provided the required info from the collection (average height/weight, tallest/heaviest user, and a list of players shorter than 70kg). EDIT======================= He accepted my solution. God I wish I could be there when the instructor sees it.

                                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                      -----
                                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                      -----
                                      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                                      Mike HankeyM Offline
                                      Mike HankeyM Offline
                                      Mike Hankey
                                      wrote on last edited by
                                      #19

                                      Even when you do their homework they still don't appreciate it. BTW Could you give me the solution files so I don't have to cut and paste...it's due today! :)

                                      Don't let your mind wander too far. It's too small to be let out alone.

                                      1 Reply Last reply
                                      0
                                      • realJSOPR realJSOP

                                        Over the last 17 years, we've been bombarded by new programmers wanting us to help them with their homework. In the past, I've been loath to participate in such transactions, but recently had a change of heart. In the interest of extending a helping hand to homework requestors, I've decided to help in any way I can, starting with this Q/A question. How I can create a class with array[^] I think the key here is to give them the code using features of the language that they haven't yet been taught. EDIT======================= I don't understand the 1-vote(s) - I gave him exactly what he asked for (a 4x6 array of players), and even updated my answer to provided the required info from the collection (average height/weight, tallest/heaviest user, and a list of players shorter than 70kg). EDIT======================= He accepted my solution. God I wish I could be there when the instructor sees it.

                                        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                        -----
                                        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                        -----
                                        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                                        J Offline
                                        J Offline
                                        Jorgen Andersson
                                        wrote on last edited by
                                        #20

                                        John Simmons / outlaw programmer wrote:

                                        I gave him exactly what he asked for (a 4x6 array of players),

                                        Actually, his example is an array of 6 players with four properties. Which of course makes it even more desirable to be there when the instructor sees it. :)

                                        Wrong is evil and must be defeated. - Jeff Ello

                                        1 Reply Last reply
                                        0
                                        • T TNCaver

                                          Extra points awarded for such clever pseudo-Indian names. Reetard, Dumass, Numnuts... I think I went to college with these guys.

                                          If you think 'goto' is evil, try writing an Assembly program without JMP.

                                          P Offline
                                          P Offline
                                          PIEBALDconsult
                                          wrote on last edited by
                                          #21

                                          I once worked with a guy named Atul...

                                          T 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups