PS6 Gradesheet
Name:
Upload/Folder/Hardcopy/TimeSpent Form issues | ||
Code is uploaded properly, hard copies and soft copies submitted correctly and in the proper folder, folder is named with username, each code file has a name at the top, and the correct PS5 cover sheet is used. |
3 |
|
The instructor is circled on the cover page. |
1 |
|
The required PS6: Time Spent form was filled out on time. |
3 |
|
TOTAL FOR ADMINISTRATIVE ISSUES |
7 |
|
TASK 1: Unjumbler | ||
unjumbleKey appropriately returns a string that is the unjumble key of its input.
|
3 |
|
makeUnjumbleDictionary appropriately returns a dictionary that associates unjumble
keys with all words with that unjumble key.
|
8 |
|
unjumble appropriately returns a list of words in a dictionary that unjumble a string of characters.
|
3 |
|
File opened for reading was closed. |
1 |
|
mostAnagrams appropriately returns (one of) the longest list of
anagrams from the given dictionary.
|
4 |
|
mostAnagrams correctly uses list comprehensions.
|
1 |
|
Good programming style is observed: - Helper functions are used to make code modular - Code is concise and elegant - Comments are used throughout the program to ensure readability and to explain nonobvious aspects of the code. |
3 |
|
TOTAL FOR TASK 1 |
23 |
|
TASK 2: Titanic | ||
Task 2a: The getKey function is appropriately implemented.
|
1 |
|
Task 2a: The getValue function is appropriately implemented.
|
1 |
|
Task 2a: The passengerDictionaryFromLine function is correctly defined.
It needs to treat the name and status fields specially,
correctly handling (survivor) , (victim) ,
and other parenthesized information. It should not include keys for fields that
do not exist in the line. E.g., If a line has no job field, the resulting dictionary
should not have a "job" key.
|
8 |
|
Task 2a: The createListOfTitanicPassengers function is correctly defined.
It should call the passengerDictionaryFromLine on each line read
from the file. Ideally, the file reading should be performed by a helper function.
|
4 |
|
Task 2a: File opened for reading was closed. |
1 |
|
The global variable passengerList is defined for testing of other tasks.
|
1 |
|
Task 2b: The topJobs function is correctly defined. Only the given number of jobs should be
listed, in descending order. The case where the number of jobs is greater than the available
number of jobs should be handled correctly
|
8 |
|
Task 2b: The required testing lines for Task 2b are included in the program. |
1 |
|
Task 2c: The createSurvivalDictionaries function is correctly defined.
|
8 |
|
Task 2c: The required testing lines for Task 2c are included in the program. |
1 |
|
Task 2d: The barChartOfPercentages function is appropriately implemented,
displaying the chart.
|
5 |
|
Task 2d: The barChartOfSurvivalRates function is correctly defined.
It should call createSurvivalDictionary and
barChartOfPercentages .
|
3 |
|
Task 2d: The test case barChartOfSurvivalRates(passengerList) is included in the code.
|
1 |
|
Task 2e: The pieChartFromOccurrenceDictionary function is appropriately implemented,
displaying the chart.
|
5 |
|
Task 2e: Your pie chart orders the fragments similarly to the shown solution. |
2 |
|
Task 2e: The pieChartOfVictimsCabinClasses function is appropriately implemented.
|
1 |
|
Task 2e: The test case pieChartOfVictimsCabinClasses(passengerList) is included in the code.
|
1 |
|
Task 2f: The getListOfSurvivorsAges function is appropriately implemented.
|
2 |
|
Task 2f: The histogram function is appropriately implemented.
|
5 |
|
Task 2f: The barChartOfHistogram function is appropriately implemented, displaying the chart.
|
4 |
|
Task 2f: The barChartOfSurvivorsAges function is appropriately implemented,
and works correctly when numberOfAgeGroups is 12.
|
3 |
|
Task 2f: The test case barGraphOfSurvivorsAges(passengerList, 12) is include in the code.
|
1 |
|
Good programming style is observed: - Code is concise and elegant; - Variable names are well-chosen, indicating the kind of value(s) stored in the variable; - Helper functions are used liberally throughout the program obeying the tenets of abstraction and modularity; - Comments are used throughout the program to ensure readability and to explain nonobvious aspects of the code. |
3 |
|
TOTAL FOR TASK 2 |
70 |
|
Total: /100