/**
 * A simple example that uses an if statement in place
 * of a switch statement
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class IfExample4
{
    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    The if statement
       if        (seatLocationCode == 100)   // case 100:
       {
          vip   = true;
          price = 40.0;
       } 
       else if (seatLocationCode == 200)    // case 200:
       {
          price = 30.0;
       } 
       else if (seatLocationCode == 300)    // case 300:
       {
          price = 15.0;
       }
       else                                 // default:
       {
          price = 0.0;
       }
       //]0
	
    }

}
