[SOLVED] COEN20-Programming Lab 8b

30.00 $

Programming resource
Digital learning resource
Category:
โœ“ Practical programming resource
โœ“ Suitable for guided study and reference
โœ“ Tutor guidance available when needed

Description

Rate this product

Programming Lab #8b

Solving Quadratics Using Hardware Floating-Point ย 

 

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.

 

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.