### 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>
User chooses a fast food restaurant of their choice. Then searches through csv and displays their menu. The user chooses what they want to order based on the menu and displays their total when finished.
</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>
# Fast Food Restaurant Ordering Simulator

# Dictionary to store the menu for each restaurant
menu = {
    "McDonald's": {
        "Big Mac": 5.99,
        "Fries": 2.49,
        "Chicken McNuggets": 4.99
    },
    "Burger King": {
        "Whopper": 6.49,
        "Onion Rings": 2.99,
        "Chicken Sandwich": 5.99
    },
    "KFC": {
        "Original Recipe Chicken": 7.99,
        "Mashed Potatoes": 2.49,
        "Cole Slaw": 1.99
    },
    "Pizza Hut": {
        "Pepperoni Pizza": 8.99,
        "Garlic Knots": 3.49,
        "Hawaiian Pizza": 9.99
    }
}

# Function to display the menu for a restaurant
def display_menu(restaurant):
    print(f"\nMenu for {restaurant}:")
    for item, price in menu[restaurant].items():
        print(f"{item}: ${price:.2f}")

# Function to take an order and calculate the total
def take_order(restaurant):
    order = {}
    total = 0

    while True:
        print("\nEnter the number of the item you want to order (0 to finish ordering):")
        for i, item in enumerate(menu[restaurant], start=1):
            print(f"{i}. {item}")
        
        item_choice = int(input())
        
        if item_choice == 0:
            break
        
        if 1 <= item_choice <= len(menu[restaurant]):
            selected_item = list(menu[restaurant].keys())[item_choice - 1]
            item_price = menu[restaurant][selected_item]
            order[selected_item] = item_price
            total += item_price
            print(f"{selected_item} added to your order.")

    return order, total

# Function to calculate change
def calculate_change(total, amount_paid):
    return amount_paid - total

# Main function to run the program
def main():
    print("Welcome to the Fast Food Ordering Simulator!")

    while True:
        print("\nPlease choose a fast food restaurant:")
        for i, restaurant in enumerate(menu.keys(), start=1):
            print(f"{i}. {restaurant}")
        print("0. Quit")

        try:
            restaurant_choice = int(input("Enter the number of your chosen restaurant: "))
            
            if restaurant_choice == 0:
                break
            
            if 1 <= restaurant_choice <= len(menu):
                chosen_restaurant = list(menu.keys())[restaurant_choice - 1]
                print(f"You have chosen {chosen_restaurant}.")
                display_menu(chosen_restaurant)
                order, total = take_order(chosen_restaurant)

                print("\nYour order:")
                for item, price in order.items():
                    print(f"{item}: ${price:.2f}")
                print(f"Total: ${total:.2f}")

                # Prompt the user for the amount paid and calculate change
                amount_paid = float(input("Enter the amount paid: $"))
                change = calculate_change(total, amount_paid)
                print(f"Change: ${change:.2f}")
            
            else:
                print("Invalid choice. Please select a valid restaurant number.")
        except ValueError:
            print("Invalid input. Please enter a valid number.")

    print("Thank you for using the Fast Food Ordering Simulator!")

if __name__ == "__main__":
    main()
</code>

### Response: