Question: Problem 1. In a class called H2P1, write a program (within main) that asks the user to enter the a, b, c values (separated by
Problem 1. In a class called H2P1, write a program (within main) that asks the user to enter the a, b, c values (separated by spaces and in this order) corresponding to the coefficients of a quadratic function in standard form: y = ax2 + bx + c. The program should then compute and output to the screen the x and y coordinates of the vertex of the parabola that represents the given quadratic function. Furthermore, if the vertex is also a zero or a y-intercept (or both) for the same function, then you should print an appropriate message to the user indicating these facts.
Here is a sample run of this program: Enter the a, b, and c of your quadratic function (separated by spaces): 1 0 0 The vertex of the corresponding parabola is: (0, 0) This vertex is also the zero of your parabola. This vertex is also the y-intercept of your parabola.
Language: Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
