Question: Write a program using files input/output to read column of numbers from a file (inputdata.txt) and write to a second file (ouputdata.txt) after Sguare the
Write a program using files input/output to read column of numbers from a file (inputdata.txt) and write to a second file (ouputdata.txt) after Sguare the numbers. The inputdata.txt file will have one column of numbers from 5 through 10. The ouputdata.txt file will have two columns fo integer numbers. For the first column, write the number 5 through 10 to the file you read from input file.For second column, write the sguare of column one to the file. Use a comma to separate the two columns in the data file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
