Heads or tails
In this lesson we show how to transition from a visual based programming language to using a text-based programming language using the example of a heads or tails coin toss application.
Additional details
Year band(s) | 5-6, 7-8 |
---|---|
Content type | Lesson ideas |
Format | Web page |
Core and overarching concepts | Abstraction, Algorithms, Implementation (programming) |
Australian Curriculum Digital Technologies code(s) |
AC9TDI6P02
Design algorithms involving multiple alternatives (branching) and iteration
AC9TDI8P05
Design algorithms involving nested control structures and represent them using flowcharts and pseudocode
AC9TDI8P06
Trace algorithms to predict output for a given input and to identify errors |
Keywords | Algorithms, Branching, User input, JavaScript, Text based programming, General purpose programming, Code, Code editor, W3Schools, Random, Variables, String, Transition, Scratch, Visual programming, Repetition |
Organisation | ESA |
Copyright | Creative Commons Attribution 4.0, unless otherwise indicated. |
Related resources
-
Anti-bullying AI
Sometimes we write and post things on social media in a hurry.
-
AI image recognition - exploring limitations and bias
A hands-on activity to practise training and testing an artificial intelligence (AI) model, using cartoon faces, including a discussion about sources of potential algorithmic bias and how to respond to these sources.
-
Making maths quizzes 1: Plan and test our programs
In this sequence of lessons students plan, create and edit a program that will ask maths questions that are harder or easier depending on user performance.
-
Can a computer recognise your sentiment?
This lesson plan enables students to explore how Natural Language Processing (NLP), a subset of Artificial Intelligence (AI), is used to assess and categorise a user’s online comments.