CONDITIONS

You are eligible to vote.
Grade: B
You have access to most features.

If...Else Condition for Voting Eligibility

In this example, we check a person's age to determine voting eligiblity.

If...ElseIf...Else Condition for Grades

In this example, we evaluate a score and determine the corresponding letter grade based on a defined grading scale. This matches the INFOST 440 Syllabus grading scale. I am personally hoping to end above a 94!

Switch/Case Statement

The switch statement evaluates a variable and executes code based on its value. Depending on whether platinum, gold, silver, or no membership, it displayed the appropriate message. In this case, it displayed access to most features for gold membership.