Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void summaryFile(String name1, String name2, int ID, double[] GPA, double TotalGPA, int semTaken, int[] semCode) {
- System.out.println("Enter file name that you want to write in:");
- Scanner keyboard = new Scanner(System.in);
- String filename2 = keyboard.next();
- try {
- PrintWriter output = new PrintWriter(new FileOutputStream(filename2));
- } catch (FileNotFoundException e) {
- System.out.println("Error: File not found!");
- }
- output.println("Name: " + name1 + " " + name2);
- System.out.println("ID: " + ID);
- String standing;
- for (int i = 0; i < semTaken; i++) {
- System.out.println("Your GPA for term " + semCode[i] + " is: " + GPA[i] + "And your status is"
- + checkStanding(GPA[i]));
- }
- System.out.println("Your total GPA is: " + TotalGPA);
- }
Add Comment
Please, Sign In to add comment