Modify Exercise 30.12 to determine the speed at which the cube rotates by calculating the distance between two consecutive ONMOUSEMOVE events.

What will be an ideal response?


```
1
2
3
4
5
6 Solution: 30.13
7
8
9
63
64
65
66 67 ONMOUSEMOVE = "changeDirection()" ONMOUSEUP = "resetFlag()">
68 70 CLASSID = "CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6">
71
72 73 VALUE = "SetLineColor( 0, 0, 0 )">
74 75 VALUE = "SetLineStyle( 1, 1 )">
76 77 VALUE = "SetFillStyle( 0 )">
78
79 80 VALUE = "Rect( -50, -50, 100, 100, 0 )">
81 82 VALUE = "Polygon( 4, -100, 0, -50, -50, -50, 50, -100, 100 )">
83 84 VALUE = "Polygon( 4, -100, 0, -50, -50, 50, -50, 0, 0 )">
85 86 VALUE = "Polygon( 4, -50, 50, 50, 50, 0, 100, -100, 100 )">
87 88 VALUE = "Polygon( 4, 0, 0, 50, -50, 50, 50, 0, 100 )">
89 90 VALUE = "Rect( -100, 0, 100, 100, 0 )">
91
92

93
94
```

Computer Science & Information Technology

You might also like to view...

Testing your program should be done

a. As each function is developed b. At the end of the coding c. Only if there appear to be problems d. Only if your instructor requires it.

Computer Science & Information Technology

Discuss the concepts associated with dimensionality modeling.

What will be an ideal response?

Computer Science & Information Technology

The market for m-commerce in North America is maturing much earlier than in Western Europe and Japan.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

If your router does not have enough wired ports to add more devices, you can install a ________ to add extra ports to your network

A) switch B) gateway C) splitter D) network interface card

Computer Science & Information Technology