Question: In the programming language C...please write the following codes (should run as ONE complete file). For question 4, every part of the problem should be
In the programming language C...please write the following codes (should run as ONE complete file). For question 4, every part of the problem should be solved within a void function.


3- Write a program that takes the x-y coordinates of a point in the Cartesian plane and prints a message telling either an axis on which the point lies or the quadrant in which it is found. (25 points) QIT QI Sample lines of output: (-1.0, -2.5) is in quadrant III (0.0, 4.8) is on the y-axis (0.0, 0.0) is on the origin QINI QIV Note: The function for this program takes the x-y coordinates as inputs, and returns the quadrant number to the calling function. Then print a message regarding the location of the coordinates. 4. This problem is for fun and to understand the importance of braces {} better. Modify the following code to produce the output shown. (25 points) Use proper indentation techniques. You may not make any changes other than inserting braces. The compiler ignores the indentation in a program. The indentation from the following code has been eliminated to make the problem more challenging. [Note: It's possible that no modification is necessary.] if (y == 8) if (x == 5) printf("@@@@@ "); else printf( "##### "); printf( $$$$$ "); printf( "&&&&& " ); a) Assuming x = 5 and y = 8, the following output is produced. aaaaa $$$$$ &ch&&& b) Assuming x = 5 and y = 8, the following output is produced. 2 aaaaa &&&&& c) Assuming x = 5 and y = 7, the following output is produced. [Note: The last three printf statements are all part of a compound statement.] ##### $$$$$ &&&&& Note: Solve every part of the problem inside a void function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
