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

    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
                          • 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

                            R Offline
                            R Offline
                            Ravi Bhavnani
                            wrote on last edited by
                            #22

                            :thumbsup: /ravi

                            My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                            1 Reply Last reply
                            0
                            • P PIEBALDconsult

                              I once worked with a guy named Atul...

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

                              Come on, don't leave us hanging. Finish your limerick.

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

                              P 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

                                D Offline
                                D Offline
                                dlhale
                                wrote on last edited by
                                #24

                                My first job out of school was at Hewlet Packard Data Systems Division in Cupertino CA. Where I repaired 21MX computers. That machine was user micro programmable, you could add your own instructions on the fly. I met a guy going to Foothill College that had a homework assignment to add a string operation instruction to the 21MX and didn't have a clue. So I told him I would write the microcode but I would only give it to him if he could explain to me, after I tutored him, how it worked - each and every line of code. I wrote "professional quality code" that would take an interrupt in the middle of running and continue where it left off when the interrupt handler completed. The guy learned it well. He later told me he got an A+ with extra credit on the assignment. The instructor did ask him to explain it to the class and gave him the A+ for the code and extra credit for finding "the only guy in silicon valley who could have written that code". I think there were a few others who could have done it. But I got to tech more than one guy a dying art. In my career, I designed more than one micro coded machines, I even help with the processors that flew on the Galileo. It is sad that very few get to experience writing micro code.

                                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

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

                                  Top :thumbsup:

                                  Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                                  1 Reply Last reply
                                  0
                                  • T TNCaver

                                    Come on, don't leave us hanging. Finish your limerick.

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

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

                                    Do I really need to?

                                    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.

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

                                      F-ES Sitecore wrote:

                                      You missed out the "b" in "Numbnuts"

                                      A bit of toy code I wrote about five years ago in response to some question or another on here is called NumNuts -- one of many classes that "converts between numbers and words". ;P

                                      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