Learning Outcomes
- Develop a method
- Demonstrate parameters
- Demonstrate commenting
- Construct a scene
To Do List
- Read Chapter 4
- Watch lecture videos
- Watch assignment video
- Complete assignment
- Complete chapter 4 quiz
- Complete midterm project
Reading
- Chapter 4 – Classes, Objects, Parameters and Methods.
Videos
Assignment
Flying a blimp
Summary:Create methods and parameters to fly a blimp.
Total points: 100
- Add a blimp, a person and 3 scenery objects (10 Points)
- Have the person tell the blimp it is OK to take off. (10 Points)
- Create a method for the blimp called “lift off”(5 Points). The method should contain a loop to lift the blimp up. (10 Points)
- Create a method for the blimp called “spin”(10 Points). Add a parameter to this method called “number of spins”(10 Points). The spin method should rotate the blimp a number of revolutions indicated by the parameter(10 Points). If the parameter is greater than 2, then have the blimp say “I’m getting dizzy”. (10 Points)
- Create a method for the blimp called “land”(5 Points). The method should contain a loop to land the blimp. (10 Points)
- Include commenting for your program and methods. (See Page 42) (10 Points)
- Login to Blackboard (or Epic for Academic Partnership students) and submit your Alice project file.
No comments:
Post a Comment