[SOLVED] COEN20 Lab7- Solving Quadratics Using Hardware Floating-Point  

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab8-ajhasa.zip (194.5 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

 

float Quadratic(float x, float a, float b, float c) ;

Computes the quadratic, 𝑎𝑥2+𝑏𝑥+𝑐

float Discriminant(float a, float b, float c) ; Computes the value of the discriminant, 𝑏2−4𝑎𝑐 Functions Root1 and Root2 should call this function.

These functions are called by a main program download from here. If your code is correct, the display should look similar to the image shown, the sliders can be used to vary the coefficient values, and pressing the blue pushbutton will restore the initial conditions. Otherwise, incorrect return values will cause an error message to be displayed as white text on a red background and the program will be halted.

 

  • Lab8-ajhasa.zip