Tower defense (OOP4Fun Book)

2. Algorithm

3h 15min
  • TS 2.1. Introduction to Algorithms and Algorithmic Thinking
  • TS 2.2. Greenfoot Adventures: Unraveling Java Method Invocation, Documentation, and Application Control

Understanding the basics of algorithmisation (60%)
Understanding the syntax of the Java programming language (10%)
Analysing program execution based on the source code (20%)
The ability of creating own programs with the use of OOP (10%)
TS 2.1. Introduction to Algorithms and Algorithmic Thinking
Acquisition
1 Introduction to basic algorithms as a sequence of steps

A sequence of steps


15 min
Investigation
2 Task 2.1

Write a simple algorithm


20 min
Acquisition
3 Algorithm and its properties

Algorithm and its properties


15 min
Practice
4 Task 2.2

Write a more general algorithm


25 min
Acquisition
5 Algorithmisation

Algorithmisation


15 min
TS 2.2. Greenfoot Adventures: Unraveling Java Method Invocation, Documentation, and Application Control
Discussion
1 Explanation of act () method

Code explanation


15 min
Discussion
2 Explanation of move() method

Code explanation


10 min
Acquisition
3 Introducing keyword this

Basic concepts: Keyword this


5 min
Production
4 Task 2.3

Call a method


10 min
Investigation
5 Explanation of Autocompleting

Code explanation: Autocompleting


5 min
Acquisition
6 The importance of code documentation

Basic concepts : Documentation comments


15 min
Production
7 Task 2.4

Add documentation


5 min
Production
8 Task 2.5

Add more documentation


5 min
Investigation
9 Task 2.6

Read the documentation


10 min
Practice
10 Task 2.7

Explore application controls


20 min
Discussion
11 Discussion: Algorithm, properties, algorithmisation, Greenfoot buttons

Theory revision: Algorithm, properties, algorithmisation, Greenfoot buttons


5 min