Question: Q1. Write a C program that prompts the user to enter the value of an angle in degrees.which a line makes with the positive x-axis.

Q1. Write a C program that prompts the user to enter the value of an angle in degrees.which a line makes with the positive x-axis.

Then the program must print which quadrant the line lies in. Also, if the angle is 0, 90, 180 or 270 degrees - the program must print the line lies on positive x axis for 0 degree, negative y axis for 270 degrees etc.

Q2. Write a C program that calculates and returns the real roots of a quadratic equation. If there are no real roots - the program need not calculate - but must flag/print that there are no real roots. You must submit sample run for both cases - real and imaginary roots.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!