Homework 7 - Virtual Pest (part 3)by JLPopyack & Paul ZoskiDue Date: Monday, December 2 at Midnight |
|
This is the final part of a three-part assignment. The requirements for the first part were for you to design a virtual pest and its behavior. The requirements for the second part were for you to implement the user interface and design the structure for the software that implements the behavior. The final part is to add the described behavior using JavaScript functions and statements.
This assignment consists of three sections:
Click here to return to top of this page.. |
From the Analytical Engine text: Module 5.9, pp. 198-199, problems 9, 12,
19
Module 9.6, p324, problem 3, 4, 6 (very important), 8
Click here to return to top of this page.
for( var index = 1; index <= _________________ ; index ++ ) document.write("*")
for( var index = _________________ ; index <= 30 ; index ++ ) document.write("*")
for( var index = 30; index >= _________________ ; index -= 2 ) document.write("*")
and StarBar(9) will print******
(including an line break). (You may wish to write a test page for you function before submitting it).*********
Click here to return to top of this page.
Using the table of behaviors you specified in Parts I-II as a guide, complete your virtual pest by translating these to the appropriate JavaScript commands and testing them for correctness.
Also upload your completed pest to your course website and supply the URL (on your gradesheet).
As discussed in class, you need to link your form elements to functions so that the values of the form elements may be transferred to the function for processing, then back to the form for display purposes. See the class lecture notes on Forms and Functions for more details on accomplishing that.
A sample virtual pest based on the example in Parts I-II has been provided for your assistance in this regard. Several points are worthy of note:
You should upload your virtual pest to your website and provide its URL on your gradesheet.
Click here to return to top of this page.
Students are encouraged to have fun with their pests. You may add any features
you desire, such as sound or animation. Be creative. You might get points
for it.
Click here to return to top of this page.
Click here to return to top of this page. | |
You must compose all written material yourself, including answers to book questions. All material taken from outside sources must be appropriately cited. If you need assistance with this aspect of the assignment, see a consultant during consulting hours.
Click here to return to top of this page. | |