Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Basic C language 1. Roots of Quadratic Equation Write a program to compute the roots of a quadratic equation using the well-known quadratic formula: Your

Basic C language

image text in transcribed

1. Roots of Quadratic Equation Write a program to compute the roots of a quadratic equation using the well-known quadratic formula: Your program will prompt the user for the values: a, b, c and output each real root However, for "invalid" input (a 0 or values that would result in complex roots), the program will instead output a message that informs the user why the inputs are invalid with a specific reason). Your output should look like the following Enter the values of a, b, and c: 2 18 0 Output: Roots are 0.00 and-9.00 Enter the values of a, b, and c:1-2 3 Output: Would result in a complex root 2. Circle Write a program which will determine whether a point (x, y) lies inside the circle, on the circle or outside the circle. Your program should prompt user to enter x and y coordinates and then output the following. The center of the circle lies on origin i.e. (0, 0) and it's radius is 2 feet ter x and y coordinates: 0.1 0.6 The point (0.1, 0.6) lies inside the circle

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

Step: 3

blur-text-image

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

Climate And Environmental Database Systems

Authors: Michael Lautenschlager ,Manfred Reinke

1st Edition

1461368332, 978-1461368335

More Books

Students also viewed these Databases questions

Question

=+appointed government officials or someone else?

Answered: 1 week ago

Question

Distinguish between hearing and listening.

Answered: 1 week ago

Question

Use your voice effectively.

Answered: 1 week ago