JOptionPane.showMessageDialog(null, "Please enter your grade:");
quiz= Integer.parseInt(JOptionPane.showInputDialog("\nQuiz:"));
hw= Integer.parseInt(JOptionPane.showInputDialog("\nAssignment:"));
le= Integer.parseInt(JOptionPane.showInputDialog("\nLab Exercise:"));
me= Integer.parseInt(JOptionPane.showInputDialog("\nMajor Exams:"));
ave =((quiz*.2)+(hw*.1)+(le*.2)+(me*.5));
if ((ave >= 95) || (ave <=100)){
JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Excellent." );
}
else if ((ave>=90) || (ave <=94)){
JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Very Good." );
}
else if ((ave >= 89) || (ave <=89)){
JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Good." );
}
else if ((ave>=80) || (ave <=84)){
JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Failed." );
}
else{
JOptionPane.showMessageDialog(null, " Your average is" + ave );
bakit po kaya kapag nag iinput ako ng values tapos kapag nasolve yung average nila langing interpreted as excellent? pls help naman po
quiz= Integer.parseInt(JOptionPane.showInputDialog("\nQuiz:"));
hw= Integer.parseInt(JOptionPane.showInputDialog("\nAssignment:"));
le= Integer.parseInt(JOptionPane.showInputDialog("\nLab Exercise:"));
me= Integer.parseInt(JOptionPane.showInputDialog("\nMajor Exams:"));
ave =((quiz*.2)+(hw*.1)+(le*.2)+(me*.5));
if ((ave >= 95) || (ave <=100)){
JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Excellent." );
}
else if ((ave>=90) || (ave <=94)){
JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Very Good." );
}
else if ((ave >= 89) || (ave <=89)){
JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Good." );
}
else if ((ave>=80) || (ave <=84)){
JOptionPane.showMessageDialog(null, name + " your average is " + ave + " and its interpreted as Failed." );
}
else{
JOptionPane.showMessageDialog(null, " Your average is" + ave );
bakit po kaya kapag nag iinput ako ng values tapos kapag nasolve yung average nila langing interpreted as excellent? pls help naman po