import java.awt.Graphics;
import java.applet.Applet;
 
public class Mi_nota extends Applet {
  int puntuacion;
  String notaint;
  String nota;
  public void init() {
    notaint = getParameter ("Puntuacion");
    puntuacion=Integer.parseInt(notaint);
    if (puntuacion >= 90) {
     nota = "Sobresaliente";
   } else if (puntuacion >= 80) {
     nota = "Notable";
   } else if (puntuacion >= 70) {
     nota = "Bien";
   } else if (puntuacion >= 60) {
     nota = "Suficiente";
   } else {
    nota = "Insuficiente";
   }
  }
  
  

public void paint( Graphics g ) {
  g.drawString( "Mi Nota es:  "+nota+"!",25,25 );
  }
}
