Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

Students also viewed these Databases questions

Question

What must a creditor do to become a secured party?

Answered: 1 week ago

Question

When should the last word in a title be capitalized?

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago