import java.lang.Math;
public class YPlot
{
public static void main(String args [])
   {
   int y = 0;
   int x = 0;
   PlottingClass curves = new PlottingClass();
  
   // plot first equation
   for( x=-20; x<=20; x=x+1)
      {
      y = (x-10) * (x-10) + 2;
      curves.PlotPoint( y );
      }
   // plot second equation
   for( x=-20; x<=20; x=x+1)
      {
      y = (int)(20.0 + (20.0 * Math.sin(.5 * (double)x)));
      curves.PlotPoint( y );
      }
    } // end main
} // end class