Simple Figures

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.

Answer:

Each grid division is 50 pixels, as below.

Simple Figures

Here is the graph paper with the grid lines labeled:

house and a tree with grid lines

This picture is made using rectangles, lines, and ovals. The Java Graphics object has methods for drawing each of these.

QUESTION 3:

Find each rectangle in the drawing, and estimate a value for its (X,Y) upper left corner, width, and height.