Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. (21 points) Create a data file (using Notepad, perhaps) containing the values shown below (plus add 4 more lines of your choice) and then
2. (21 points) Create a data file (using Notepad, perhaps) containing the values shown below (plus add 4 more lines of your choice) and then write a C++ . Read the data file (you can assume that it has exactly 8 lines with 3 numbers per line) . Calculate the three angles using the law of cosines (assume that the sides are valid) Write the results to an output data file. The results should include headings and 2 digits after the decimal point program as follows example is shown below for all values. An Print the program and the two data files Input data file 20 15 10 5 12 13 10 10 14.142 50 60 70 Sides a, b, and c for Triangle 1 Pick values for 4 more valid triangles Output data file: Side a 20.00 Side b 15.00 Side c Angle A(deg) 10.00 Angle B (deg) Angle C (deg) 46.57 104.48 28.96
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started