Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: [OT] simple algorithm for assigning students to class sections

by BrowserUk (Patriarch)
on Dec 01, 2004 at 09:27 UTC ( #411417=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
        for sort keys %sections;
    
    print "\nUnallocated; [@students]";
    
  2. or download this
    [16:10:52.01] P:\test>411129 -STUDENTS=50 -SECTIONS=15
    Sections: 15
    ...
    Section_14(0) => [ Student_19 Student_28 ]
    
    Unallocated; [Student_04 Student_07 Student_21 Student_35]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://411417]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2023-02-07 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (39 votes). Check out past polls.

    Notices?