{
    "unit": {
        "Logic": "LogicalOperations"
      },
    "title": "Mastering Logical Operations",
    "screens": [
        {
            "screen_type": "Text",
            "text": "Welcome, Cadet! You've just been recruited to the Galactic Programming Fleet. Your mission: master the art of logical operations to navigate through complex coding challenges and save the galaxy from bad logic. Ready to embark on this adventure? Let's dive in!",
            "question": null,
            "options": null,
            "correct_indices": null,
            "correct_text": null,
            "hints": null
        },
        {
            "screen_type": "Text",
            "text": "Logical operations are used to make logical decisions. They allow us to compare values and decide what action to take next. In this course, you'll learn about AND, OR, and NOT operations.",
            "question": null,
            "options": null,
            "correct_indices": null,
            "correct_text": null,
            "hints": null
        },
        {
            "screen_type": "Text",
            "text": "The president of Planet Zog has to keep her population safe and happy. She has a lot of decisions to make, and she needs to use logical operations to help her. For example, if the weather is nice AND the streets are clean, people can go to work. If the weather is NOT nice OR the streets are covered in slime, everyone should stay home.",
            "question": null,
            "options": null,
            "correct_indices": null,
            "correct_text": null,
            "hints": null
        },
        {
            "screen_type": "Text",
            "text": "There are two logical operators in this rule. The first is AND, which means both conditions must be true for the result to be true. The second is OR, which means at least one condition must be true for the result to be true.",
            "question": null,
            "options": null,
            "correct_indices": null,
            "correct_text": null,
            "hints": null
        },
        {
            "screen_type": "Text",
            "text": "The AND operation evaluates to `true` if both conditions are true. For example, if condition A and condition B are both true, the result is true. Otherwise, it's false.",
            "question": null,
            "options": null,
            "correct_indices": null,
            "correct_text": null,
            "hints": null
        },
        {
            "screen_type": "Text",
            "text": "The OR operation evaluates to `true` if at least one condition is true. For example, if condition A or condition B is true, the result is true. If both are false, the result is false.",
            "question": null,
            "options": null,
            "correct_indices": null,
            "correct_text": null,
            "hints": null
        },
        {
            "screen_type": "Text",
            "text": "The NOT operation inverts a condition. If a condition is true, NOT makes it false, and vice versa. It's a simple but powerful tool in logical reasoning.",
            "question": null,
            "options": null,
            "correct_indices": null,
            "correct_text": null,
            "hints": null
        },
        {
            "screen_type": "Mcq",
            "text": "",
            "question": "Which of the following is true for the AND operation?",
            "options": [
                "It evaluates to true if both conditions are true.",
                "It evaluates to true if at least one condition is true.",
                "It inverts the condition."
            ],
            "correct_indices": [0],
            "correct_text": null,
            "hints": [
                "Both conditions must be true for the result to be true."
            ]
        },
        {
            "screen_type": "Text",
            "text": "Now let's test your understanding of the OR operation. Remember, it evaluates to true if at least one condition is true.",
            "question": null,
            "options": null,
            "correct_indices": null,
            "correct_text": null,
            "hints": null
        },
        {
            "screen_type": "Checkboxes",
            "text": "",
            "question": "Which of the following are true for the OR operation? Select all that apply.",
            "options": [
                "It evaluates to true only if both conditions are true.",
                "It evaluates to true if at least one condition is true.",
                "It evaluates to false only if both conditions are false."
            ],
            "correct_indices": [1, 2],
            "correct_text": null,
            "hints": [
                "OR is inclusive, meaning it evaluates to true if either or both conditions are true.",
                "It only evaluates to false when both conditions are false."
            ]
        },
        {
            "screen_type": "Text",
            "text": "You're doing great! Now let's move on to the NOT operation. Remember, it inverts the condition.",
            "question": null,
            "options": null,
            "correct_indices": null,
            "correct_text": null,
            "hints": null
        },
        {
            "screen_type": "FreeResponse",
            "text": "",
            "question": "If a condition is true, what does the NOT operation evaluate to?",
            "options": null,
            "correct_indices": null,
            "correct_text": ["false", "f"],
            "hints": [
                "NOT inverts the condition. If it's true, it becomes false."
            ]
        },
        {
            "screen_type": "Text",
            "text": "Let's try some more realistic examples. A programmer on Planet Zog needs to write a program that checks if the weather is nice and the streets are clean. If both conditions are true, the program should allow people to go to work.",
            "question": null,
            "options": null,
            "correct_indices": null,
            "correct_text": null,
            "hints": null
        },
        {
            "screen_type": "Mcq",
            "text": "",
            "question": "If the streets are clean AND the weather is NOT nice, what should the program do?",
            "options": [
                "Allow people to go to work.",
                "Keep people at home."
            ],
            "correct_indices": [1],
            "correct_text": null,
            "hints": [
                "Both conditions must be true for the result to be true."
            ]
        },
        {
            "screen_type": "Mcq",
            "text": "",
            "question": "If the streets are covered in slime AND the weather is NOT nice, what should the program do?",
            "options": [
                "Allow people to go to work.",
                "Keep people at home."
            ],
            "correct_indices": [1],
            "correct_text": null,
            "hints": [
                "Both conditions must be true for the result to be true."
            ]
        },
        {
            "screen_type": "Mcq",
            "text": "",
            "question": "If the streets are covered in slime OR the weather is NOT nice, what should the program do?",
            "options": [
                "Allow people to go to work.",
                "Keep people at home."
            ],
            "correct_indices": [1],
            "correct_text": null,
            "hints": [
                "Both conditions must be true for the result to be true."
            ]
        },
        {
            "screen_type": "Mcq",
            "text": "",
            "question": "If the streets are clean AND the weather is nice, what should the program do?",
            "options": [
                "Allow people to go to work.",
                "Keep people at home."
            ],
            "correct_indices": [0],
            "correct_text": null,
            "hints": [
                "Both conditions must be true for the result to be true."
            ]
        },
        {
            "screen_type": "Text",
            "text": "Congratulations, Cadet! You've completed the course on logical operations. Remember, mastering these concepts is key to becoming a great programmer. Keep practicing and applying these skills in your projects!",
            "question": null,
            "options": null,
            "correct_indices": null,
            "correct_text": null,
            "hints": null
        }
    ]
}
