package console;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class GradeTrackerConsole {
    public static void main(String[] args) {

        String input;
        int weighting;
        double mark;
        int total;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        System.out.println("** -- Grade Tracker Console -- **");

        while (true) {
            try {
                System.out.println("Enter in assignment weighting (numeric): ");
                input = br.readLine();
                weighting = Integer.parseInt(input);

                System.out.println("Enter in mark: ");
                input = br.readLine();
                mark = Double.parseDouble(input);

                System.out.println("What was the mark out of? ");
                input = br.readLine();
                total = Integer.parseInt(input);

                calculateValues(weighting, mark, total);

                break;

            }   catch (NumberFormatException e) {
                System.out.println("Input error, use numbers only");
            }   catch (IOException e) {
                System.out.println("IO error, please try again");
            }
        }
    }

    private static void calculateValues(int weight, double mark, int total) {
        System.out.println("Total percentage of assignment: " + (mark/total * 100) + "/100");
        System.out.println("Total percentage in unit (weighted): " + (mark/total * weight) + "/100");
    }
}
@@ -1014,14 +1014,602 @@
     
-break;
+while (true) %7B%0A                    System.out.println(%22Do you want to submit another entry? Y/N: %22);%0A                    input = br.readLine();%0A                    if (input.equals(%22Y%22) %7C%7C input.equals(%22y%22)) %7B%0A                        break;%0A                    %7D   else if (input.equals(%22N%22) %7C%7C input.equals(%22n%22)) %7B%0A                        System.out.println(%22Thank you for using the Grade Tracker Console%22);%0A                        System.exit(0);%0A                    %7D   else %7B%0A                        System.out.println(%22Invalid response, try again%22);%0A                    %7D%0A                %7D
 %0A%0A  
@@ -1757,32 +1757,32 @@
 OException e) %7B%0A
-
                 
@@ -1802,16 +1802,17 @@
 intln(%22I
+/
 O error,

Add looping of console