Difference between revisions of "CSC111 Final Exam 2018"
Line 38: | Line 38: | ||
<br /> | <br /> | ||
* Write a python program called '''final1.py''' (final-one dot py) that reads this type of CSV file, and outputs this information: | * Write a python program called '''final1.py''' (final-one dot py) that reads this type of CSV file, and outputs this information: | ||
− | ::* The most popular major. In this case both the first major and second major count. For example, in the 3 lines shown below, CSC is the most frequent major. | + | ::* The most popular major. In this case both the first major and second major count. For example, in the 3 lines shown below (excluding the header), CSC is the most frequent major. |
<br /> | <br /> | ||
:::::<source lang="text"> | :::::<source lang="text"> | ||
+ | email, major1, major2, minor | ||
Flo72@hampshire.edu,RUL,CSC, | Flo72@hampshire.edu,RUL,CSC, | ||
Anna10@hampshire.edu,CSC,ECO, | Anna10@hampshire.edu,CSC,ECO, |