In this lesson we will take a look at arrays. In fact, we will make arrays with the following names: person, noun, verb, adj, and prep. Here's what one of them looks like:
EXAMPLE: This applet is an approximation of what the student will be expected to create. Inspect the source code and be sure that you understand how it works to produce the what's displayed on this page. ASSIGNMENT: The student will create an applet which displays seven sentences. Each sentence should contain two nouns, an adjective, an adverb, and a verb. The nouns should be displayed in bold, the verbs should be displayed in italics, and the words in each group should be displayed using a different color. It might be necessary to alter the size of the canvas area. Each sentence should contain a minimum of eight words. All word groups should be stored in arrays. |