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
-
Creating a digital start line and finish line with micro:bits (Years 7-8)
The following activity suggests one-way Digital Technologies could be integrated into a unit where vehicles are being designed and produced.
-
DIY micro:bit metal detector (Years 5-6)
This activity shows one way to incorporate Digital Technologies into a goldfields unit in an authentic way using a micro:bit.
-
Classroom ideas: Micro:bit Environmental Measurement (visual programming) (Years 5-6)
This tutorial shows the coding needed for digital solutions of some environmental issues that can be created using pseudocode and visual programming.
-
Classroom ideas: Micro:bit Environmental Measurement (visual and general-purpose programming) (Years 5-8)
Investigating environmental data with Micro:bits: This tutorial shows the coding needed for digital solutions of some environmental issues that can be created using pseudocode and visual programming.
-
Home automation: General purpose programming
Investigate home automation systems, including those powered by artificial intelligence (AI) with speech recognition capability.
-
Makey Makey Projects for Years 4-6
These lesson ideas demonstrate how to combine Makey Makey together with Scratch to create all sorts of interesting solutions with students, as well as teach the basics of circuity, conductive materials and algorithms.
-
CAS Barefoot
A broad collection of online resources to support teachers to develop and implement computational thinking, concepts and computer programming.
-
Coding in the Classroom
Through this website, educators can explore and share resources and strategies to teach coding.