C++ program that reads the angle (theta, ) from a input file (…
Question Answered step-by-step C++ program that reads the angle (theta, ) from a input file (… C++ program that reads the angle (theta, ??) from a input file (angle.dat). Then calculate sineand cosine for each of the angle value in the program. Display the output in a file namedSinCosine.dat in a tabular form. The program should also display an error message if the inputfile cannot be opened. Note that sine and cosine functions in cmath only accept the angle value inradians, and the angles in the input file (angle.dat) are in degrees. Content of angle.dat:0 15 30 45 60 75 90 Computer Science Engineering & Technology C++ Programming PROGRAMMIN SMJP1043 Share QuestionEmailCopy link Comments (0)


