// Page 094 import java.util.Scanner; class Prog_7_5 { public static void main(String[] args) { Scanner input= new Scanner(System.in); int val; System.out.println("Input your score: "); val = input.nextInt(); outMsg( val ); // Method Call } private static void outMsg (int score ) { if (score >= 80) System.out.println("Good.\n"); else if (score >= 60) System.out.println( "Ok.\n"); else System.out.println("Fail.\n"); } }