about | help | code help+videos | done | prefs |
numQuadraticSolutions
Write a method called numQuadraticSolutions that takes a, b and c as input parameters which are a, b and c from a quadratic equation. This method should return the number of solutions to that quadratic equation. The discriminant (b*b - 4ac) tells you how many solutions there are. numQuadraticSolutions(1, 0, 3) → 0 numQuadraticSolutions(1, 10, 3) → 2 numQuadraticSolutions(2, 4, 2) → 1 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100 Post-solution available
Copyright Nick Parlante 2017 - privacy