Difference between revisions of "CSC111 Final Exam 2018"
Line 24: | Line 24: | ||
::* The most popular major. In this case both the first major and second major count. | ::* The most popular major. In this case both the first major and second major count. | ||
::* The most popular minor | ::* The most popular minor | ||
− | ::* The most popular double major. In this case, "CSC | + | ::* The most popular double major or double majors. In this case, "CSC & ECO" and "ECO & CSC" should be considered the same double major, and should printed with the acronyms listed in alphabetical order with a dash in between, e.g. "CSC-ECO" |
::* Which email domain is most frequent in the file. | ::* Which email domain is most frequent in the file. | ||
* Example of output: | * Example of output: | ||
Line 30: | Line 30: | ||
GEO | GEO | ||
ITL | ITL | ||
− | CSC | + | CSC-ECO |
smith.edu | smith.edu | ||
Line 41: | Line 41: | ||
smith.edu | smith.edu | ||
− | * In case two or more majors (or minors) have the same count of students registered to them, then your program should output all of them on the same line, separated by spaces, and listed alphabetically: | + | * In case two or more majors (or minors, or double-majors) have the same largest count of students registered to them, then your program should output all of them on the same line, separated by spaces, and listed alphabetically: |
: Example | : Example | ||
GEO ITL | GEO ITL | ||
CSC ICO PHY | CSC ICO PHY | ||
− | CSC MTH | + | CSC-ECO ECO-MTH |
smith.edu | smith.edu | ||