Académique Documents
Professionnel Documents
Culture Documents
84.0)
{
return B;
}
if(grade is less than or equal to 83.9 and greater than or equal to
80.0)
{
return B-;
}
if(grade is less than or equal to 79.9 and greater than or equal to
79.9)
{
return C+;
}
if(grade is less than or equal to 78.9 and greater than or equal to
76.0)
{
return C;
}
if(grade is less than or equal to 75.9 and greater than or equal to
75.0)
{
return C-;
}
if(grade is less than or equal to 74.9 and greater than or equal to
74.0)
{
return D+;
}
if(grade is less than or equal to 73.9 and greater than or equal to
71.0)
{
return D;
}
if(grade is less than or equal to 70.9 and greater than or equal to
70.0)
{
return D-;
}
if(grade is less than 70.0 and greater than 0.0)
{
return F;
}
return null;
}
public void make the console look pretty ()
{
print(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxx);
println("\n\n\n");
println("\n\nThomas Watson\t\t\tGrade:\t10");
println("\n--------------------------------------------------);
}
grade5=Double.parseDouble(JOptionPane.showInputDialog("
Enter your Chemistry grade "));
Card calls findLetGrade(use grade5);
println(course5+"\t\t\t\t\t"+Card calls findLetGrade(grade5));
grade6=a double(JOptionPane.showInputDialog("Enter
your Computer Science grade "));
Card calls findLetGrade(use grade6);
println(course6+"\t\t\t\t\t\t"+Card calls
findLetGrade(grade6));
grade7=Double.parseDouble(JOptionPane.showInputDialo
g("Enter your English grade "));
Card calls findLetGrade(use grade7);
println(course7+"\t\t\t\t\t\t"+Card calls
findLetGrade(grade7));
JOptionPane.showMessageDialog(null,course1+" "+Card
calls findLetGrade(grade1)+"
"+grade1+"\n"+course2+" "+Card calls
findLetGrade(grade2)+" "+grade2+"\n"+course3+" "+Card
calls findLetGrade(grade3)+" "+grade3+"\n"+course4+" "+Card
calls findLetGrade(grade4)+"
"+grade4+"\n"+course5+" "+Card calls
findLetGrade(grade5)+" "+grade5+"\n"+course6+"
calls findLetGrade(grade6)+"
"+grade6+"\n"+course7+" "+Card calls
findLetGrade(grade7)+" "+grade7);
}
}
"+Card