Random Seats (3)

  1. Modify the main() function in the previous exercise. Before invoking the printStudents() function, sort the list according to the "seq" number. Because this is a number randomly assigned to each student, this step will in effect order students randomly in the list.
  2. You should be able to get a different seat arrangement whenever you run this program:
    
    103321050 103321002 103321001 103321037
    周霈菱    張仕達    游思愉    范均泓
    103321008 103321025 103321038 103321022
    張秝榕    余正威    吳怡蓓    陳冠銘
    103321019 103321042 103321026 103321009
    鮑惟仁    詹雅惠    張寬宏    楊甄誼
    103321024 103321047 103321063 103321029
    潘嘉玲    吳芠萱    吳嘉偉    王韋翔
    103321049 103321016 103321032 103321010
    陳思穎    邱俊翔    曾冠迪    賴郁伶
    103321027 103321007 103321017 103321030
    黃仲誼    黃柏元    謝長霖    陳政樺
    102241035 103321021
    黃瓊儀    胡瑋哲