Question: Working with Input Files The file UnknownNums.txt contains 1 0 rows of data in 4 columns. The first and fourth columns are floating point numbers
Working with Input Files
The file UnknownNums.txt contains rows of data in columns. The first and fourth columns are floating point numbers and the second and third columns are
integers.
Use fscanf and related functions to read in the data so that all of the floating point values will be stored in one vector and all the integers will be stored in another
vector. The new vectors should be organized so that the first value in the new vector is the value in the first row and first column of the original file, the second value in
the new vector is the value from the first row and fourth column, the third value in the new vector is the value from the second row, first column, etc.
Once the new vectors are created, find how many elements are in each.
Be sure to use the variable names specified in the starter file's comments!
Script
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
