Off to the movies

Create a simple program using a text-based programming language to generate an output based on two possible input options. This is a simple Boolean (true/false) application where its asks the user’s age - if you are over 15 then you can watch G and M rated movies - if you are under 15, then you can only watch G rated movies. This lesson was designed in collaboration with Jason Vearing QSITE (Gold Coast Chapter).

Additional details

Year band(s) 7-8
Content type Lesson ideas
Format Web page
Technologies & Programming Language​s JavaScript JS
Keywords AlgorithmsCode, Branching, User input, JavaScript, Text based programming, General purpose programming, Code, Code editor, W3Schools, Functions, Variables, String
Organisation

ESA

Copyright

Creative Commons Attribution 4.0, unless otherwise indicated.