Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

denigration of emotional outbursts; being reserved;

Answered: 1 week ago