Q1 Quadratic equations are the polynomial equations of degree 2 in one variable of type f(x) = ax2 + bx + c where a, b,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Q1 Quadratic equations are the polynomial equations of degree 2 in one variable of type f(x) = ax2 + bx + c where a, b,

Post by answerhappygod »

Q1 Quadratic Equations Are The Polynomial Equations Of Degree 2 In One Variable Of Type F X Ax2 Bx C Where A B 1
Q1 Quadratic Equations Are The Polynomial Equations Of Degree 2 In One Variable Of Type F X Ax2 Bx C Where A B 1 (106.45 KiB) Viewed 26 times
Q1 Quadratic equations are the polynomial equations of degree 2 in one variable of type f(x) = ax2 + bx + c where a, b, c, ER and a t 0. Ius the general form of a quadratic equation where 'a' is called the leading coefficient and 'c' is called the absolute term off (x). The values of x satisfying the quadratic equation are the roots of the quadratic equation (a,b). The solution or roots of a quadratic equation are given by the quadratic formula: (a, b) = (-b V(b2 - 4ac)]/2a a) Design a class QuadraticEq to store quadratic equation information, all attributes should be private and accessible through getter and setters. b) Make multiple constructors, both parameterised and default, such that we can create instance with passing no value, only x2. x2&xor all three values When no value is passed for any attribute consider it 0. c) Overload Stream in and Stream out operator to take input of these attributes from user and to display equation respectively. d) Overload Summation - Operator for QuadraticEq, such that both equations are added and resultant equation is returned e) Overload Subtraction - Operator for QuadraticEq, such that difference of equations is returned as resultant equation. 1) Overload post increment operator ++ for QuatradicEq. this will add one to constant conly of the equation. 8) Write a function to determine and display roots for the equation 1) What modification would you made to your class if this class would to support polynomial equations of degree n? Explain in comments all the changes required. No need to write code for part g. just explain changes Additional Information for taking square root: #include ccmath> using namespace std; int main() { cout << "Square root of 25 = "; // print the square root of 25 cout << sqrt(25): return 0; 3
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply