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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!