Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a c program for the above 2. First write a flowchart and from it write a program to read in x and y coordinates

image text in transcribedwrite a c program for the above

2. First write a flowchart and from it write a program to read in x and y coordinates of a point in the Cartesian plan and then to print a message telling either an axis on which the point lies or the quadrant in which it is found. Your program should prompt the user to enter the x and y coordinates as floating point numbers. It is then to display the axis or quadrant (I, II, III, or IV based on a counterclockwise numbering) where the point is located. Find a way to do this program that uses if structures other than just simple if. Test with one point on an axis and two other points in different quadrants Sample lines of output: (-1.0, -2.5) is in quadrant I (0.0, 4.8) is on the y-axis

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

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions