### Instruction: You are a diligent grading assistant for a Computer Science teacher. Your task is to read and analyze the Python code between <code> and </code> tags. Evaluate the code according to the criteria provided between <criteria> and </criteria> tags. Before evaluating, carefully review the CodeDescription provided between <description> and </description> tags to understand the purpose and context of the project. For each criterion, always assess the logic of the code even if it does not run or contains errors, and provide a score. After addressing all criteria, conclude by listing all the individual scores in a summary. 

### CodeDescription: 
<description>
Build a program that helps students find clubs and organizations that match their interests. Use dictionaries to store club information and functions to match student interests with clubs. Output would be a list of recommended clubs, saved to a text file for future reference.
</description>

### Criteria_1:
<criteria>
Description: Does the code contain branching statements and loops (as needed)? Branching using if-else and loops for repetitive execution of tasks are two of the most central elements of any Python code. So, all project code submissions must contain at least one if statement and one for / while statement.	
- 15 pts: Full points If the criteria is satisfied.
-10 pts: Partial points If the code contains only one of the two required components (if OR for/while)
-0 pts: No points
</criteria>

### Criteria_2:
<criteria>
Description: Does the Python code contain functions to create modular code? Functions are important to create modular tasks to reduce the redundancy in the code and for independent testing.	
- 10 pts: Full points If the code contains at least one function that is properly formatted and makes sense for the project.	
- 5 pts: Partial points If the code contains improper use of functions (or modular code is clear from files or other means).
- 0 pts: No points		
</criteria>

### Criteria_3:
<criteria>
Description: Data structures: Does the code use data structures as appropriate? Data structures discussed in the course are: strings, lists, and dictionaries. Grade whether the data structure that the code used is appropriate for that application. That is, if something has a key and a value, a dictionary is more appropriate than managing two lists. Similarly, if many variables are created instead of using a list, then it's improper code writing.
- 5 pts: Full points
- 0: pts No points
</criteria>

### Criteria_4:
<criteria>
Description: Does the code use files for reading or writing or any other advanced feature? If files are not applicable for the project, this criteria may be satisfied by graph generation, modules, python files, or other advanced features too.	
- 10 pts: Full points If file reading or other alternative advanced feature (like multiple modules, graphing, data analysis) is used appropriately in the code.
- 5 pts: Partial points Attempted to use files or other advanced feature but improper use/did not succeed fully.
- 0 pts: No points	
</criteria>

### Criteria_5:
<criteria>
Description: Is the code properly documented? Comments on key lines in the code and/or docstrings for functions.
- 5 pts: Full points if at least 5 commented lines or other text is present in the code
- 0 pts: No points If no comments or docstrings are provided.	
</criteria>

### Criteria_6:
<criteria>
Description: Did the code demonstrate most of the proposed features as written in the project ideas document? If most of the features are not demonstrated, check whether other equivalent (or new) features were implemented.	
- 25 pts: Full points If most of the features are successfully demonstrated (as seen from the code and its execution)
- 20 pts: Almost all features Almost all of the features for the project are demonstrated successfully.
- 15 pts: Half partial points Half of the proposed features are demonstrated successfully or some features are incorrectly implemented. The code implements a very basic set of features of the project.
- 10 pts: Partial points If only one feature is implemented and/or project is not significant work.
- 0 pts: No Marks
</criteria>

### Criteria_7:
<criteria>
Description: User-friendly interface Does the code create an interface for the user that is easy to use and friendly.	
- 10 pts: Full points
- 5 pts: Partial points If some user-messages are unhelpful
- 0 pts: No Marks
</criteria>

### MainPythonFileCode
<code>
import matplotlib.pyplot as plt
print("Welcome to the UCM Club Finder Project. This project will help students find clubs and organizations that match their interests.")

print("Please choose one of the following traits/feelings that correlates to you:")
# Creating List for choices
choices = ["Anger","Creative","Sadness","Talkative"]
#list, all choices/subchoices
sub_choices_1 = ["physical aggression", "frustration", "rage"]
sub_choices_2 = ["Visual Artistry","Musical Creativity","Innovative"]
sub_choices_3 = ["Loss and Greif", "Withdrawal","Loneliness"]
sub_choices_4 = ["Public Speaking", "Persuasion","Narrative Skills"]
emotion = ""
sub_emotion = ""
#defining variable as empty string

def getsubchoices (s):
  for i in range (len (s)):
    print(i+1,s[i])
  user_input_subchoice = input()
  if int(user_input_subchoice)-1 > len(s) or int(user_input_subchoice)-1 < 0:
    print("Invalid choice. Please try again.")
    exit()
  return (int(user_input_subchoice)-1)
#creating a function to get user sub choice index

def getclub (choice, subchoice):
  file1 = open("68375_6420138_582823.txt", "r")
  lines = file1.readlines()
  linesplit = lines[choice].split(",")
  #split function splits by commas
  return linesplit[subchoice]
#creating a function to get club output from ClubNames.txt file

def getresults (fileName):
  emotion1 = {}
  emotion2 = {}
  clubName = {}
  file1 = open(fileName, "r")
  lines = file1.readlines()
  for line in lines:
#creating a function to print results from ClubNames.txt file
    linesplit = line.split("...")
    if(len(linesplit) != 3):
      continue
    linesplit[0] = linesplit[0].strip()
    linesplit[1] = linesplit[1].strip()
    linesplit[2] = linesplit[2].strip()
    if linesplit[0] in emotion1:
      emotion1[linesplit[0]] += 1
    else:
      emotion1[linesplit[0]] = 1
    if linesplit[1] in emotion2:
      emotion2[linesplit[1]] += 1
    else:
      emotion2[linesplit[1]] = 1
    if linesplit[2] in clubName:
      clubName[linesplit[2]] += 1
    else:
      clubName[linesplit[2]] = 1
  return (emotion1, emotion2, clubName)
  #split function splits by commas

def createBarGraph(data): 
  names = list(data.keys())
  values = list(data.values())
  plt.bar(range(len(data)), values, align='center', tick_label=names)
  plt.xticks(rotation=45, ha="right")
  plt.rcParams["figure.figsize"] = (10, 5)
  plt.show()


for i in range (len (choices)):
  print(i+1,choices[i])
user_input_choice = input()
#printing out the choices and getting user input
#print(user_input_choice)
match user_input_choice:
#goes to one of the cases based on the number chosen for choices (similar to if statement)
  case "1":
    user_input_subchoice = getsubchoices (sub_choices_1)
    #when line 31 executes goes to line 15
    print(choices[int(user_input_choice)-1])
    sub_emotion = sub_choices_1[int(user_input_subchoice)]
    print(sub_emotion)
    a = getclub (int(user_input_choice)-1, int(user_input_subchoice))
    print("The club that matches your traits is:", a)
    #Gives sub choices based on the choice the user picked, then prints out the club that matches the choice/subchoice
  case "2":
    user_input_subchoice = getsubchoices (sub_choices_2)
    print(choices[int(user_input_choice)-1])
    sub_emotion = sub_choices_2[int(user_input_subchoice)]
    print(sub_emotion)
    a = getclub (int(user_input_choice)-1, int(user_input_subchoice))
    print("The club that matches your traits is:", a)
  case "3":
    user_input_subchoice = getsubchoices (sub_choices_3)
    print(choices[int(user_input_choice)-1])
    sub_emotion = sub_choices_3[int(user_input_subchoice)]
    print(sub_emotion)
    a = getclub (int(user_input_choice)-1, int(user_input_subchoice))
    print("The club that matches your traits is:", a)
  case "4":
    user_input_subchoice = getsubchoices (sub_choices_4)
    print(choices[int(user_input_choice)-1])
    sub_emotion = sub_choices_4[int(user_input_subchoice)]
    print(sub_emotion)
    a = getclub (int(user_input_choice)-1, int(user_input_subchoice))
    print("The club that matches your traits is:", a)
  case _:
    print("Please enter a valid choice.")
    exit()
#prints out subchoices based on the choice chosen by user, if correct choice not chose, will go to line 110 (prints out "Please enter a valid choice")


emotion = choices[int(user_input_choice)-1]
f = open("68375_6420138_582823.txt", "a")
f.write(f"{emotion}...{sub_emotion}...{a}\n")
f.close()
e1, e2, cn = getresults("68375_6420138_582823.txt")
#opens file and writes the choice and subchoice and club into the file
createBarGraph(e1)
createBarGraph(e2)
createBarGraph(cn)
#creates bar graphs for emotions and clubs
</code>

### Response: