Question: 2. Write a Java program that uses a loop to print a neatly-formatted table that displays the sines and cosines of the degrees from 0
2. Write a Java program that uses a loop to print a neatly-formatted table that displays the sines and cosines of the degrees from 0 through 360, increasing by 10 degrees per row, using the Math.sinl) and Math.cos() methods. Round your answers to keep no more than four digits after the decimal point. The columns do not need to line up exactly, but there should be a clear separation between each value in each table row (Hint: careful use of the \t (tab) escape character may help here). Degree Sin Cos 1.0 0.0 100.1736 0.9848 3500.1736 0.9848 360 0.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
