Fundamentals of Programming
Human Computer Interaction

Conditional Statements

1. Pass or Fail Checker

If-Else condition: Pass if grade >= 75, else Fail.

Output:
...

2. Voting Eligibility

If-Else condition: Check if age makes you eligible to vote (>= 18).

Output:
...

3. Positive, Negative, or Zero

If - Else If - Else condition chain.

Output:
...

4. Even or Odd

If condition using the modulo (%) operator.

Output:
...

5. Discount Eligibility

If condition: apply a 10% discount if spending >= 1000.

Output:
...