Sunday, February 21, 2010

World Level Methods (Assignment 8)

Read and work through the following tutorial. After reading and working through the linked tutorial. Complete the following lab project.

Lab project

Beginning with the program named Alice0145b, create a new program.

The behavior of the new program is the same as the behavior of the original program except that the program asks the user to enter two numeric values. The first numeric value is the distance that the penguins are to move. The second numeric value is the distance that the cows are to move.

Modify the original program to solicit these two numeric values from the user and to use the two numeric values to control the distance moved by the penguins and the cows.

Save your world in a file named Alice145LabProjA.a2w and be prepared to deliver it to your instructor in whatever manner the instructor specifies.

Make certain that your preferences are set to Java Style in Color.

Select Export Code For Printing... on the File menu and save your source code in a file named Alice145LabProjA.html. Save this file to the x:\ in the Lesson 8 folder for the appropriate block.

No comments:

Post a Comment