C SC 120: Introduction to Computer Programming
Winter 2009
Pete Sanderson
[
home
|
syllabus
|
schedule
|
catalog description
]
Alice in Action Chapter 3 Assignment : 15 points
Readings listed by textbook section number. Read while Alice is running.
- Section 3.1...Read and Do: Topic is defining and using "local variables" inside a method. Do and save both examples as you read.
- Section 3.2...Read and Optionally Do: Topic is defining and using "parameters"
inside a method. Read page 80 closely, read and optionally do the Old MacDonald example in 3.2.1. You can skip the jumping fish example in 3.2.2.
- Section 3.3...Read and Do: Topic is defining and using "object variables" (a.k.a. object properties). Do and save the example as you read.
- Section 3.4...Read and Optionally Do: Topic is using the provided "vehicle" property to synchronize the movements of multiple objects. The example is optional.
- Section 3.5...Read and Do: Topic is defining and using your own function. A function is like a question, use it to request information. Do both examples. Section
3.5.1 covers basic functions. Section 3.5.2 describes how to define and use a parameter. Make sure you understand the page 80 material on parameters
before reading Section 3.5.2. Parameters in functions (Section 3.5.2) work just like parameters in methods (Section 3.2). If you want more practice with parameters, go back and do Section 3.2.
Programming Projects to do, listed by Programming Project number.
- Project 3.3: Build this new world and demo for me.
- Project 3.9: This will add a new scene to the program you developed in Section 2.4 (page 50). When finished, demo for me then commit it to your myFiles repository.
[
C SC 120
|
Pete Sanderson
|
Math Sciences server
|
Math Sciences home page
|
Otterbein
]
Last updated:
Pete Sanderson (PSanderson@otterbein.edu)