Answered step by step
Verified Expert Solution
Question
1 Approved Answer
the code needs to be in python You are going to write a program that helps students with some grade 10 math work. Consider a
the code needs to be in python
You are going to write a program that helps students with some grade 10 math work. Consider a quadratic in standard form to be f(x) = Ax? +BX+C Consider a quadratic in vertex form to be f(x) = a(x-h)? + k Design and Program a Quadratic Class. Fields: A, B, C, a, h, k (Store as decimal values) Constructor: Accept the 3 coefficients of the quadratic in standard form o Assign the values of A, B, C, a, h, k . . Private Methods: finda -> calculates and returns a from vertex form findh -> calculates and returns h from vertex form findk -> calculates and returns k from vertex form . . Public Methods: displayStandardForm() -> returns a String in standard form f(x) = Ax? +BX+C displayVertexForm() -> returns a String in vertex form f(x) = a(x-h)" +k . . . getOpening -> Determines if the quadratic opens up or down (Return a String) getXVertex -> Returns the x coordinate of the vertex of the quadratic getVertex -> Returns the y coordinate of the vertex of the quadratic getYint -> Returns the y intercept of the quadratic . . - . add -> Adds two quadratics together (Returns a Quadratic object) subtract-> Subtracts two quadratics from each other (Returns a Quadratic object) . Create a test program that shows all of the above methods working Step 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