Java Reference
In-Depth Information
4. Write a modified version of the Projectile case study program from Chapter 3 that draws a graph of the projectile's
flight onto a DrawingPanel of size 420
220. For example, the panel shown in Figure 3G.31 draws a projectile with
an initial velocity of 30 meters per second, an angle of 50 degrees, and 10 steps.
×
Figure 3G.31
5. Write a program that draws the image shown in Figure 3G.32 onto a DrawingPanel of size 650
400. The image
represents a famous optical illusion called the “Cafe Wall,” in which a series of straight squares appears to be slanted.
×
Figure 3G.32
Search WWH ::




Custom Search