Page 1 of 1

Below are two questions which are connected please show coding for both questions and share screenshots of inputs and ou

Posted: Wed Apr 27, 2022 7:45 pm
by answerhappygod
Below are two questions which are connected please show coding
for both questions and share screenshots of inputs and
outputs!!!
1. Write a program that will create a file and then
write n lines to the file. Each line will be the radian
value of the angle in degrees ranging from 0 to n. Ask the
user for n, and cap the range at 360 since data will just
repeat after that.
2. Open your file from DIN 1 for reading. Loop through the file
pulling out each angle line by line. Print out the Cosine for each
line. Open a second file to write the Cosine values to.