Part 11 (40 points) Chuse ONE of the following: r)ar\'+erte, from the user NAME
ID: 3733044 • Letter: P
Question
Part 11 (40 points) Chuse ONE of the following: r)ar'+erte, from the user NAME . Write a programm that gets the coefficients the y-intereept of the graph, and then prinins the and c) of a quadrati determines the vertex of the c and then prints this i The tasks of main are to: to the user in function. user. In a 1. Describe the the user. In a function. 2. Get the values for a, b, and c from the intion, Get the values for a, b, and c from ta function te the coordinates of the vertx 4. Print the above intormation on the screen, the J-in Input. The coeftficients of the quadratic functio Input: of the parabola as an ordered pair (x, y) and the Formulas: x-coordinate of the vertex, -b/2 -coordinate of the vertex,f(-b/(2a y (-b/(2a) -intercept:(0, c)Explanation / Answer
#include <iostream>
using namespace std;
int main() {
float a, b ,c;
cout << "Enter the values a, b, c of quadratic equation : " << endl;
cout << "a = ";
cin >> a;
cout << "b = ";
cin >> b;
cout << "c = ";
cin >> c;
float x = -b/(2*a);
float y = a*x*x + b*x + c;
cout << "Coordinates of vertex are : " << endl;
cout << "X = " << x << " Y = " << y << endl;
cout << "Coordinates of Y-Intercept are : " << endl;
cout << "X = " << "0" << " Y = " << c << endl;
}