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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to create a program to sort people into groups.

How to create a program to sort people into groups.

Scheduled Pinned Locked Moved Visual Basic
helptutorial
9 Posts 4 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.
  • M Offline
    M Offline
    marvolo3
    wrote on last edited by
    #1

    I have this assignment but I'm not getting any ideas. I have to create a program which sort people into a specified number of groups. I need help.

    C W P 3 Replies Last reply
    0
    • M marvolo3

      I have this assignment but I'm not getting any ideas. I have to create a program which sort people into a specified number of groups. I need help.

      C Offline
      C Offline
      Chandrasekharan P
      wrote on last edited by
      #2

      You may not get any ideas if you dont explain the problem properly. On what basis do you have to sort the people into groups? without this it would be difficult to provide any help.

      Every new day is another chance to change your life.

      M 1 Reply Last reply
      0
      • M marvolo3

        I have this assignment but I'm not getting any ideas. I have to create a program which sort people into a specified number of groups. I need help.

        W Offline
        W Offline
        Wayne Gaylard
        wrote on last edited by
        #3

        I would create a Person class that contains properties for each aspect I will need to group by. Then I could use LinQ to group by any property. For more help you will need to provide more information, I'm afraid.

        When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

        M 1 Reply Last reply
        0
        • M marvolo3

          I have this assignment but I'm not getting any ideas. I have to create a program which sort people into a specified number of groups. I need help.

          P Offline
          P Offline
          Prasad_Kulkarni
          wrote on last edited by
          #4

          You will get help Marvolo,just explain a bit more. What & how exactly you need it.

          M 1 Reply Last reply
          0
          • W Wayne Gaylard

            I would create a Person class that contains properties for each aspect I will need to group by. Then I could use LinQ to group by any property. For more help you will need to provide more information, I'm afraid.

            When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

            M Offline
            M Offline
            marvolo3
            wrote on last edited by
            #5

            we have to design a program that will accept a list of names of people and the group them into a number of groups the user chooses.

            W 1 Reply Last reply
            0
            • M marvolo3

              we have to design a program that will accept a list of names of people and the group them into a number of groups the user chooses.

              W Offline
              W Offline
              Wayne Gaylard
              wrote on last edited by
              #6

              Does this mean that the groups should each have a certain equal number of people in them, or must they be grouped by name or what ? You need to be more specific.

              When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

              M 1 Reply Last reply
              0
              • W Wayne Gaylard

                Does this mean that the groups should each have a certain equal number of people in them, or must they be grouped by name or what ? You need to be more specific.

                When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

                M Offline
                M Offline
                marvolo3
                wrote on last edited by
                #7

                Ya, the user specifies them and the program does it. the user will specify the number of groups he wants and the program will accept the list and group them.

                1 Reply Last reply
                0
                • C Chandrasekharan P

                  You may not get any ideas if you dont explain the problem properly. On what basis do you have to sort the people into groups? without this it would be difficult to provide any help.

                  Every new day is another chance to change your life.

                  M Offline
                  M Offline
                  marvolo3
                  wrote on last edited by
                  #8

                  the user states how many groups he wants.

                  1 Reply Last reply
                  0
                  • P Prasad_Kulkarni

                    You will get help Marvolo,just explain a bit more. What & how exactly you need it.

                    M Offline
                    M Offline
                    marvolo3
                    wrote on last edited by
                    #9

                    the user specifies them and the program does it. the user will specify the number of groups he wants and the program will accept the list and group them.

                    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