/**
 * A simple example that uses the switch statement
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class SwitchExample
{
    public static void main(String[] args)
    {
       boolean  vip;
       double   price;
       int      seatLocationCode;

       vip              = false;
       price            = 0.0;
       seatLocationCode = 0;

 
       // Missing code (to determine the seatLocationCode)


       //[0 A fragment containing a switch
       switch (seatLocationCode)
       {
          case 100:
             vip   = true;
             price = 40.0;
             break;
		
          case 200:
             price = 30.0;
             break;
		
          case 300:
             price = 15.0;
             break;
		
          default:
             price = 0.0;
             break;
       }
       //]0
	
    }

}
