Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. class Grade
  2. {
  3. public static void main(String[] args)
  4. {
  5. int mark = Integer.parseInt(args[0]);
  6.  
  7. if (mark < 40) System.out.println("Fail");
  8. else if (mark < 50) System.out.println("Third Class");
  9. else if (mark < 60) System.out.println("Lower Second Class");
  10. else if (mark < 70) System.out.println("Upper Second Class");
  11. else if (mark < 80) System.out.println("First Class");
  12. else if (mark < 90) System.out.println("Above and Beyond");
  13. else if (mark < 100) System.out.println("Publishable");
  14. else if (mark == 100) System.out.println("Perfect");
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement