Difference between revisions of "CSC111 Dot Notation and Objects"
(Created page with "--~~~~ ---- =Exercise 1= For the 2 questions below, use as many variables as possible. * Draw the wheel of a Taxi cab at a center point of coordinates ( 100, 100 ). The hubcap...") |
(→Exercise 1) |
||
Line 3: | Line 3: | ||
=Exercise 1= | =Exercise 1= | ||
− | For the 2 questions below, use as many variables as | + | For the 2 questions below, use as many variables as you need. |
* Draw the wheel of a Taxi cab at a center point of coordinates ( 100, 100 ). The hubcap is 30 pixels wide, the tire 50. | * Draw the wheel of a Taxi cab at a center point of coordinates ( 100, 100 ). The hubcap is 30 pixels wide, the tire 50. |
Revision as of 09:31, 13 October 2011
--D. Thiebaut 09:11, 13 October 2011 (EDT)
Exercise 1
For the 2 questions below, use as many variables as you need.
- Draw the wheel of a Taxi cab at a center point of coordinates ( 100, 100 ). The hubcap is 30 pixels wide, the tire 50.
- Draw the second wheel of the Taxi cab with a center point horizontally 300 pixels away from the center, to the right.
Exercise 2
Same two questions as in Exercise 1, but you can only use 5 variables: P1, the original point (100, 100), h1, w1, the first hubcap and wheel, and h2, w2, for the second wheel.