I cannot for the life of me figure out how to scale this graph so that the graph in quadrant one shows. Please help
import java.io.*;
 
class Main
{
   private static final int MAXROWS = 40;
   private static final int MAXWIDTH = 60;
 
   public static void main ( String [] args ) throws Exception
   {
      SinFunc sin = new SinFunc(13.25);
      makeGraph(sin);
   }
   private static void makeGraph ( Function1D f )
   {
      for ( int i = 0 ; i < MAXROWS ; i++ )
      {
         System.out.printf("%5.1f %5.1f",(double)i,f.valueAt(i));
         int width = (int)f.valueAt(i);
         if ( width > MAXWIDTH ) width = MAXWIDTH;
         if ( width < 0 ) width = 0;
         for ( int j = 0 ; j < width ; j++ ) System.out.print("+");
         System.out.println();
      }
   }
 
} 
 
class SinFunc implements Function1D
{
   private double x;
 
   public SinFunc ( double x)
   {
      this.x = x;
   }
 
   public double valueAt ( double x ) { return (x/20)*(Math.sin(0.35*x)); }
 
} 
interface Function1D
{
   public double valueAt ( double x );
}