Question: Program must be wrote in C Create a calculator program as follows. Create a menu function (function should display the menu options and return the
Create a calculator program as follows. Create a menu function (function should display the menu options and return the user selection with the following options: 1 to calculate the number of real solutions for a quadratic equation 2 to calculate the resistance in series for two or more resistors (no limit on number of resistors) 3 to calculate the resistance in parallel for two or more resistors (no limit on number of resistors) 4 to calculate power drop across resistors in series 5 to calculate power drop across resistors in parallel 6 to exit program Repeatedly display the menu after each calculation until option 6 is entered Option 1: Ask the user for and store the three numerical coefficients of a quadratic equation and store them in three float variable Write a function named "root" which takes the three coefficients as arguments and return the number of real roots as 2, 1, or O. Call the function "root" and pass the user inputs as arguments, then, output a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
