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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!