Question
Write a new Python program that outputs the correct quadrant given an angle measure entered from the keyboard. The program must ask the user to
Write a new Python program that outputs the correct quadrant given an angle measure entered from the keyboard. The program must ask the user to to input an angle number (in degrees) and then it should output to the screen which quadrant that angle lies in. For a quick review, you might consult the figure shown here, which shows that an angle of 60o lies in the first quadrant, while an angle of 210o lies in the third quadrant. Note that any angles which are exact multiples of 90o are not in any quadrant; rather, the output should identify which two quadrants are divided at that angle. (For example, an input of 180o should result in a response that it is between quadrants 2 and 3.) After the program receives an input from the user and reports in which quadrant that angle lies, it should ask for another input. If the user enters a single period (.) that signals the end of the program and it should exit. When your program is finished, run test cases that result in answers using each of the four quadrants. Try to think up some unusual test case situations which will show how your program performs under unusual situations.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started