Unformatted text preview: double a = (b * h) / 2; println("a = " + a); } } Read through the program and ±gure out what it is doing. What result is it calculating? Rewrite this program so it is easier to under-stand, both for the user and for the programmer who must modify the program in future. 3. Draw a ring of your favorite color at the center of the graphic window. You may make your drawing look nice, for example, add a shadow of the ring....
View Full Document
- Winter '07
- Computer Programming, English-language films, Following