Question: 1. Write a Python program that will ask a user what the x-coordinate and y-coordinate of their position is on a traditional Cartesian coordinate system.
1. Write a Python program that will ask a user what the x-coordinate and y-coordinate of their position is on a traditional Cartesian coordinate system. The program then will, using nested if statements, will print out which quadrant the point lies within. However, if the point is on an axis, such as (0, 2), the program will print that the point lies on an axis (for example, (0, 2) is on the Y-axis and (2, 0) is on the X-axis)
2. Write a Python program that will ask a student how many points they have at the end of the semester and then what the total number of points were available for that semester. Then the program will print out their letter grade where an A means that they scored 90% or better in the course, a B is 80% or better, a C is 70% or better, a D is 60% or better, and a D is less than 60%.
3. Write a Python program that will ask a customer how many fluid ounces they would like to drink. The program will then print out the size of cup that they need based upon the following criteria: 1) A drink with 12 or fewer ounces is considered to be "small." 2) A drink with more than 12 but 20 or fewer ounces is considered to be "medium. 3) A drink with more than 20 but 32 or fewer ounces is considered to be "large." 4) A drink with more than 32 ounces is considered to be "extra large.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
