flowchart TD
A[Start] --> B[/Get User Input/]
subgraph B[Get User Input]
B1[/Select Quiz Category/]
B2[/Select Difficulty/]
B3[/Start/Continue Quiz/]
end
B --> C[Process Quiz]
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[Display Results]
end
subgraph C4[Check Answer]
C41[/Get User's Answer/] --> C42{Is answer correct?}
C42 --> |Yes| C43[Increment Score]
C42 --> |No| C44[\Display Correct Answer\]
C43 & C44 --> C5
end
subgraph D[Display Results]
D1[\Show Final Score\]
D2[\Show Performance Stats\]
end