CHUNK 12
TITLE Arrays and for statements
DESCRIPTION Describe single-dimensional arrays and show how for statements can access such arrays.This is a very tricky topic for the beginning programmer so use lots of examples. Describe a program of similar complexity to Greenberg 90--92. Teach brackets in the context of for statements as well. Students will have met brackets before but assume that they only have a hazy idea.
OUTCOMES
- Be able to look at a section of code which contains a for statement and array references and describe what it does.
- Be able to develop simple sections of code that involves a for statement and array references
- Understand a program of similar complexity to the one you describe in text.
HINT Please dont make the programs too complicated: loops are a really difficult concept for beginning students.
PROGRAM Develop a program similar in complexity to the one you describe in the text
Previous chunks (so I know what I'm depending on):
1 Intro to Computer Art
2 Introduction to Java
3 Algorithms 1
4 Algorithms 2
5 Algorithms
6 Two simple programs
7 Basic types and naming conventions
8 Big linear program
9 Operators
10 Conditional statements
11 Switch and ternary conditions
First big question for coordination with earlier authors - what output mechanisms will the student have met by now?
No comments:
Post a Comment