graph TD

    subgraph Physics Whiz CLI

        A[Physics Whiz CLI] --> B[Get User Input]

        A --> C[Process Quiz]

        A --> D[Display Results]

    end

  

    B[Get User Input] --> B1[Select Quiz Category]

    B ---> B2[Select Difficulty]

  

    subgraph C[Process Quiz]

        C1[Load Questions] --> C2[Display Question]

        C2 --> C3[Get User Answer]

        C3 --> C4[Check Answer]

        C4 --> C5[Update Score & Progress]

        C5 --> C6{More Questions?}

        C6 --> |Yes| C2

        C6 --> |No| D

    end

  

    D[Display Results] --> D1[Show Final Score]

    D --> D2[Show Performance Stats]