diff --git a/src/main/java/seedu/duke/Checker.java b/src/main/java/seedu/duke/Checker.java index ae69078311..67d83e2972 100644 --- a/src/main/java/seedu/duke/Checker.java +++ b/src/main/java/seedu/duke/Checker.java @@ -35,7 +35,7 @@ void getUserAnswer() { for (int i = 0; i < test.getNumber(); i++) { Problem problem = test.getProblem().get(i); ui.print(problem.unsolved()); - // userInput = ui.readCommand(); + userInput = ui.readCommand(); userAnswer[i] = userInput; double answer = Double.NEGATIVE_INFINITY; try { diff --git a/src/main/java/seedu/duke/Problem.java b/src/main/java/seedu/duke/Problem.java index 51291e203e..41d67ce6fe 100644 --- a/src/main/java/seedu/duke/Problem.java +++ b/src/main/java/seedu/duke/Problem.java @@ -11,7 +11,7 @@ public Problem(String description, double answer) { } public String solved() { - return description + '=' + answer; + return description + " = " + answer; } public String unsolved() { diff --git a/src/main/java/seedu/duke/Record.java b/src/main/java/seedu/duke/Record.java index 41421cd767..3930d45116 100644 --- a/src/main/java/seedu/duke/Record.java +++ b/src/main/java/seedu/duke/Record.java @@ -35,11 +35,9 @@ public Record(LocalDateTime dateTime, double speed, double accuracy, ArrayList

"; + private static final String PROBLEM_FORM = + "To generate a problem set: Input the number and difficulty like below: \n" + + "< generate -t [type] -n [number] -d [maximum digit] -l [number of operands] >"; private static final String INPUT_INSTRUCTION = "Input Instructions:\n" + "[operators]: can be + - * /, you can combine any of them.\n" +