Difference between revisions of "CSC111 Final Exam 2018"

From dftwiki3
Jump to: navigation, search
Line 2: Line 2:
 
----
 
----
 
<onlydft>
 
<onlydft>
 +
<bluebox>
 +
This is the final exam for CSC111, Spring 2018.<br />
 +
The deadline to submit your programs is '''May 11, 4 p.m.'''  Please make note of the different submission time of day.
 +
This exam has to be done individually, and is given under the rules of the [https://www.smith.edu/sao/handbook/socialconduct/honorcode.php Smith Honor Code].  You are not allowed to work in pairs on any part of this exam.<br />
 +
You are not allowed to discuss any of the details of this exam, except with your instructor, D. Thiebaut<br />
 +
You can ask questions on '''Piazza''' only.  Do not post code on Piazza.  If you think you may be giving away some of the solution when expressing your question on Piazza, make it private.<br />
 +
The TAs and lab instructor will not be available to help out on this exam.<br />
 +
You have to do the debugging on your own.<br />
 +
Two problems will be auto-graded on Moodle.  The autograder is setup to only run your program on a small subset of cases, without generating a grade.  You must test your program thoroughly to make sure it will pass all the tests that will be used to fully evaluate your program.
  
 +
</bluebox>
 +
<br />
 
=Problem 1=
 
=Problem 1=
 
* Write a program that prompts the user for the name of a CSV file that contains the email addresses of 5-college students along with their major or double-major, and, possibly, their minor.
 
* Write a program that prompts the user for the name of a CSV file that contains the email addresses of 5-college students along with their major or double-major, and, possibly, their minor.
Line 20: Line 31:
 
</source>
 
</source>
 
<br />  
 
<br />  
* Write a python program 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, CSC is the most frequent major.
 
<br />
 
<br />

Revision as of 10:53, 29 April 2018

D. Thiebaut (talk) 11:39, 26 April 2018 (EDT)



...