We read your photo as:

Create a flowchart that determines if a user is old enough for Year 7 based on current and birth years.

Computer Science

ScanSolve AI Answer

Here is the flowchart representing the provided Python code:

        +-------+
        | START |
        +-------+
            |
            v
    +-----------------+
    | INPUT currentYear |
    +-----------------+
            |
            v
    +-----------------+
    | INPUT birthYear |
    +-----------------+
            |
            v
    +-----------------------+
    | age = currentYear -   |
    |       birthYear       |
    +-----------------------+
            |
            v
      +---------------+
    /   age < 11?   \
    \               /
      +-------+-------+
          |       |
        Yes     No
          |       |
          v       v
+---------------------+   +-----------------------+
| OUTPUT "You are too |   | OUTPUT "You are old   |
| young for Year 7"   |   | enough for Year 7"    |
+---------------------+   +-----------------------+
          |       |
          +-------+
              |
              v
            +-----+
            | END |
            +-----+
Was this helpful?

Still stuck on this one?

Ask a follow-up, and the answer starts from this question.

Got a different question?Ask your own question