• Web sitemizin içeriğine ve tüm hizmetlerimize erişim sağlamak için Web sitemize kayıt olmalı ya da giriş yapmalısınız. Web sitemize üye olmak tamamen ücretsizdir.
  • Sohbetokey.com ile canlı okey oynamaya ne dersin? Hem sohbet et, hem mobil okey oyna!
  • Soru mu? Sorun mu? ''Bir Sorum Var?'' sistemimiz aktiftir. Paylaşın beraber çözüm üretelim.

Girilen notun harf notu olarak yazılması /

Üyelik Tarihi
7 Ocak 2015
Konular
4,091
Mesajlar
4,274
MFC Puanı
40
Kod:
package not_cevirisi;

import javax.swing.JOptionPane;


public class Not_cevirisi {

    
    public static **** main(String[] args) {
       Integer not=Integer.parseInt
               (JOptionPane.showInputDialog("Notunuzu giriniz"));
       
         String harf=" ";
         
         if (not>=90)
         {
           harf="A1";
        JOptionPane.showMessageDialog(null,"Notunuz: "+not+" "+ harf);
         
         }
        
       
        else if (not>=80)
        {
           harf="A2";
        JOptionPane.showMessageDialog(null,"Notunuz: "+not+" "+harf);
        
        }
         
        else if (not>=70)
        {
          harf="B1";
         JOptionPane.showMessageDialog(null,"Notunuz: "+not+" "+ harf);
        }
       
        else if (not>=65)
        {
            harf="B2"; 
          JOptionPane.showMessageDialog(null,"Notunuz: "+not+" "+ harf);
        }
    
        else if (not>=60)
        {
            harf="C";
         JOptionPane.showMessageDialog(null,"Notunuz: "+not+" "+ harf);
        }
         
        else if (not<60)
                {
                harf="D";
                JOptionPane.showMessageDialog(null,"Notunuz: "+not+" "+ harf);
                
                }
}

}
 
Üst