public class Question2_Runner
{
    public static void main(String[] args)
    {
        SingleTable t1 = new SingleTable( 4, 60, 74);
        SingleTable t2 = new SingleTable( 8, 70, 74);
        SingleTable t3 = new SingleTable(12, 75, 76);

        CombinedTable c1 = new CombinedTable(t1, t2);

        System.out.println( c1.canSeat( 9) );       // true
        System.out.println( c1.canSeat( 11 ));      // false
        System.out.println( c1.getDesirability() ); // 65.0

        CombinedTable c2 = new CombinedTable(t2, t3);

        System.out.println( c2.canSeat( 18 ) );     // true
        System.out.println( c2.getDesirability() ); // 62.5

	t2.setViewQuality(80);
        System.out.println( c2.getDesirability() ); // 67.5
    }
}
