

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The tasks for lesson 15 of csc 1760, introduction to programming, focusing on methods and random number generation. Students are required to write a method named printmatrix.java that displays an n-by-n matrix using the given header, and a test program named randomnumbstest.java to input the matrix size and display the generated matrix. Additionally, students must write a program named sincosdisplay.java that uses math.sin and math.cos methods to display sin and cos values for degrees from 0 to 360 with increments of 10 degrees, rounded to keep four digits after the decimal point.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


c. SinCosDisplay.java