Question: C++ Write a program that will read an input file and write an output file. Each line of the input file contains two values, the
Write a program that will read an input file and write an output file. Each line of the input file contains two values, the legs of a right triangle. The program should calculate the hypotenuse for each triangle, and write all three sides to the output file. The output file should be in the format shown. Sample Run Input file: Input.txt Output file: Output.txt Input.txt Output.txt 1 4.5 10 3.1415 3.5 8.25 6.1 2 3.000 4.000 12.000 1.000 4.500 4.500 10.000 3.141 31.415 3.500 8.250 28.875 6.1002.000 12.200 5 pairs read Print a copy of your source code, the display output, and the output file. Your code will be graded on comments and functionality
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
