// // CS212 Review #6 // // Author: ??? // Instructor: John Wang // // Goal: Thie progrsm will read a file containing scores and name ... // import java.util.Scanner; import java.text.DecimalFormat; class Review_6 { public static void main(String[] args) { DecimalFormat f1 = new DecimalFormat("0.0"); Scanner input = new Scanner(System.in); int s1 = input.nextInt(); int s2 = input.nextInt(); int s3 = input.nextInt(); String dummy = input.nextLine(); // consume “\n” String name = input.nextLine(); System.out.println(name); double avg = (s1 + s2 + s3)/3.0; System.out.println(f1.format(avg)); System.out.println("Done."); } }