   import java.util.Scanner;
/******************************************************** 
  * Matrix.java is an example of a different kind of problem
  * involving matrices
  *
  * @author Nancy Harris
  * @version V1 - 10/19/2008
  *******************************************************/
    public class Matrix
   {
   /* main method produces a chart of all frames and sizes offered
	 * by UFrameIt
    *
    * @param args Unused in this application
    */
       public static void main(String args[])
      {  
         final int SMALL = 4;
			final int BIG = 20;
			final int INCREMENT = 2;
			final double BASE = 5.00;
			final double PER_INCH = .5;
      
         // price is based on the total area of the picture.  The price is
			// BASE + (area * .50) 
			
			// heading label
			System.out.print("\t");
			for (int ii = SMALL; ii <= BIG; ii = ii + INCREMENT)
				System.out.print(ii + "\t");
			System.out.println();
			
			// Notice which things are inside of the outer loop and which are inside the inner loop
			for (int width = SMALL; width <= BIG; width = width + INCREMENT)
			{
				System.out.print(width + "\t");
				
				for (int length = SMALL; length <= BIG; length = length + INCREMENT)
				{
					System.out.printf("$%.2f\t", BASE + (length * width * .5));
				}
				System.out.println();
			} 
		}
	}