Back to subject
Introduction to PHP/Conditionals (if / else)

Build an Attendance Checker

Practical lesson

Write an if/elseif/else chain that takes an attendance percentage and prints "Eligible" for 75% or above, "Warning" for 60-74%, and "Not Eligible" below 60%.

Try it yourself
Code

Starter example

Code
<?php
  // write your code here
?>
Live preview
e.g. Eligible