Skip to content
Tyre Pressure Update
  • Pages
    • icon picker
      The Task
    • Code Clips

The Task

Activity: Tyre Pressure 🏎️

The correct tyre pressure is 7. Higher or lower values mean there is a problem.

Start Here - Explore the program

Run the program entering different values to see what happens. (7, 4, 9, 0)
Change the comparison operator to !=
You will now need to change the result messages that are output to make sure the program gives the correct output.
Run program to see what happens.
Now try out other comparison operators. (See CodeClips for examples of comparison operators)
Change the messages that would get printed if the condition is True and if the condition is False to observe what will happen.

Good luck! 🍀


 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.