CS1 Standard Demo Page

The following text was written to the standard output stream when the package shapes; public class WhiteArea { public static void main(String[] args ){ SSquare die = new SSquare (0.75); SCircle dot = new SCircle ((0.75/8)/2); System.out.println("area of 6 faces = " + die.area()*6); System.out.println("area of 21 dots = " + dot.area()*21); System.out.println("area of white area = " +((die.area()*6) - (dot.area()*21))); } } program was executed from IntelliJ.

area of 6 faces = 3.375
area of 21 dots = 0.1449611844551931
area of white area = 3.2300388155448068