Three corners of a rectangle drawn using the Java coordinate
Three corners of a rectangle drawn using the Java coordinate system have coordinates (3,4) , (3,7) , and (8,7) . What are the coordinates of the fourth corner?
Please explain why, thank you !
Solution
import javax.swing.JApplet;
 import java.awt.*;
 public class Einstein extends JApplet {
   
 public void paint (Graphics page) {
 page.drawRect (50, 50, 40, 40);
 page.drawRect (60, 80, 225, 30);
 page.drawOval (75, 65, 20, 20);   
 page.drawLine (35, 60, 100, 120);
 page.drawString (\"Out of clutter, find si
 mplicity.\", 110, 70);   
 page.drawString (\"-- Albert Einstein\", 130, 100);
 }
 }

