Question
Overview For this program, write a program that will display information about a parabola. The program will calculate the X and Y-coordinates for the vertex
Overview
For this program, write a program that will display information about a parabola. The program will calculate the X and Y-coordinates for the vertex of a parabola.
This program will be continued in program 3 so it is important that this program is completed.
Basic Program Logic
The basic logic for this program is similar to program 1: the user is asked to enter values, calculations are performed, and the results of the calculations are displayed.
For this program, prompt the user for the a-coefficient of the parabola. This is a double/float value and must be placed into a double/float variable.
Prompt the user for the b and c-coefficients. These values should also be placed in double/float variables.
Use the three coefficients to determine the X and Y coordinates of the vertex:
X-Vertex = - b-coefficient / ( 2 * a-coefficient) Y-Vertex = ( a-coefficient * X-Vertex * X-Vertex ) + ( b-coefficient * X-Vertex ) + c-coefficient
After the calculations, display a table that contains the three coefficients, the X coordinate for the vertex, and the Y coordinate for the vertex. All of the values should be displayed with labels and exactly 3 digits after the decimal point, including zeroes.
Program is in C++
Sample Output: A few of runs of the program might resemble the following Run 1: Enter the a coefficient: 1 Enter the b coefficient: 4 Enter the c coefficient: -5 Quadratic Equation Analyzer a Coefficient b Coefficient c Coefficient 1.000 4.000 -5.000 Vertex X Coordinate Y Coordinate -2.000 -9.000Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started