Answer:
Answer has been added to this response as a source code file. Please download the file to get the answer. File should be saved as "AngleConversion.java" to run it on your machine
Explanation:
The code contains comments explaining every segment of the code. Kindly go through the code's comments.
Hope this helps!