import javax.swing.JOptionPane;
class GreatPoint
{
public static void main( String args[])
{
float bang,eng,mat,per;
String num1 ; String num2 ; String num3;
//Output for input number,persubject
num1=JOptionPane.showInputDialog("Enter the first number");
num2=JOptionPane.showInputDialog("Enter the second number");
num3=JOptionPane.showInputDialog("Enter the third number");
bang=Integer.parseInt(num1);
eng=Integer.parseInt(num2);
mat=Integer.parseInt(num3);
per=(bang+eng+mat)/3;
if(per>=80)
JOptionPane.showMessageDialog(null,"A+");
else if((per>=75)&&(per>65))
JOptionPane.showMessageDialog(null,"A");
else if((per>=65)&&(per>50))
JOptionPane.showMessageDialog(null,"A-");
else
JOptionPane.showMessageDialog(null,"fail");
}
}
Students marks analyzing system ||Download Student Marks Details Code In Java Source Codes||
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment