diff --git a/ProjectClock/MathExpressions.swift b/ProjectClock/MathExpressions.swift index 39ad7a4..d908330 100644 --- a/ProjectClock/MathExpressions.swift +++ b/ProjectClock/MathExpressions.swift @@ -119,7 +119,7 @@ let c = MathExpression.random() } -class quadraticProb{ +class QuadraticProb{ let a = Int.random(in: 1...10)//ax^2 let b = Int.random(in: 1...10)//bx diff --git a/ProjectClock/NotificationLogic.swift b/ProjectClock/NotificationLogic.swift index f2e7815..2f06fe5 100644 --- a/ProjectClock/NotificationLogic.swift +++ b/ProjectClock/NotificationLogic.swift @@ -28,7 +28,13 @@ func jumpAction() { } func puzzleAction() { + var problem = QuadraticProb() + let answer = problem.getAnswer() + let problemString = problem.getProblem() + + print("Problem: \(problemString)") + print("Answer: \(answer)") } func smashAction() {