Question: 1. Write a Python program that asks the user for two angles in degrees and stores them as variables. Calculate and store the cosines of
1. Write a Python program that asks the user for two angles in degrees and stores them as variables. Calculate and store the cosines of the numbers (they must be converted to radians to use Python's math.cos function). Print the larger of the two cosine values and the angle (in degrees) that resulted in that value. If they are equal, print a message to the effect that the cosines of the two angles (print them) are equal and print the value. Note that the relationship between an angle and its cosine value is not monotonic. Hint: It will be good practice (and much easier) to first write and understand a program that just takes two user values and prints the larger of them
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
