-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChapter04.html
109 lines (88 loc) · 3.44 KB
/
Chapter04.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Chapter 4</title>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Chapter 4</h1>
Contents: <a href="#TrueFalse">True/False</a> | <a
href="#Multiple_Choice">Multiple Choice</a> | <a href="#Discussion">Discussion</a>
| <a href="#Programming_Exercises">Programs</a><br>
<br>
<h2><a name="TrueFalse"></a>True/False</h2>
<ol>
<li>False<br>
</li>
<li>True</li>
<li>True</li>
<li>False</li>
<li>True</li>
<li>False</li>
<li>True</li>
<li>False</li>
<li>False</li>
<li>False <br>
</li>
</ol>
<h2><a name="Multiple_Choice"></a>Multiple Choice</h2>
<ol>
<li>d<br>
</li>
<li>b</li>
<li>d</li>
<li>c</li>
<li>d</li>
<li>d</li>
<li>d</li>
<li>b</li>
<li>a</li>
<li>b<br>
</li>
</ol>
<h2>Discussion</h2>
<ol>
<li>Answers here will vary widely. This
exercise can be used as a springboard for discussing how the description of
an object varies according to the use the object is being put to. Different
descriptions will abstract different properties.</li>
<li>Answers can be checked interactively. Some descriptions assume
a default orientation (origin in upper left).
<ol>
<li>A point at coordinates (130,130)<br>
</li>
<li>A blue circle with a red outline centered at (30,40) with a
radius of 25<br>
</li>
<li>A square 20 units on each side centered at (30,30). The interior
is greenish blue and the outline is 3 pixels wide and black.<br>
</li>
<li>A veritcal dark red line of length 100, with its bottom at point
(100,200) and an arrow pointing up at the upper end.<br>
</li>
<li>An unfilled "veritcal" oval with width 10 and height 50 centered
at (55, 75)<br>
</li>
<li>An orange hourglass with black outline centered at point (5,5).
(Note, some platforms may show this a bit differently; try it out!)</li>
<li>The words "Hello World!" centered at (100,100), displayed in an italic
courier font with 16 point type.</li>
</ol>
</li>
<li>The program draws a red circle in a default graphics window and then
waits for the user to click the mouse 10 times. Each time the user clicks,
the circle moves to the point that was clicked. After 10 clicks, the window
disappears.<br>
</li>
</ol>
<h2><a name="Programming_Exercises"></a>Programming Exercises</h2>
<a href="code/chapter04">Code for Chapter 4 Exercises</a><br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>