5. Once again, use the BaseGemPrices.txt file from the practice problem above. As before, you can see that each column is of fixed width. There could be additional rows of gem data, however. So, no part of your code should assume that the number of rows in the file is fixed.
This time, instead of reading each line in the file into a single character array, you will read each line into three arrays. Read in the numbers in the first column into a numerical array, the gem types in the second column into an array of strings, and the numbers in the third column into a real array. Setting up the array of strings can take some thought. You may want to do this using a cell array. You may also want to set up a rank 2 (2-dimensional) array, with each string being a row of the array. You may assume that no gem type name is over 16 characters long.
Print a neat, two-column table to the console, with a header row. The table will have the gem types and the cost per gem in each row. The cost per gem is simply the cost from the third column of the file table divided by the number of gems in the first column. Show 1 digit to the right of the decimal place.
Prompt the user for an output file name and store it in a string variable. Open an output file for writing, using the name the user gave as the file name. Write the table you printed to the console above to the output file and close the file.