Multi dimensional array file input output.

Write a program that reads numbers from a file, enters them into an array and then writes the results to a file.

It should use a random number generator to write 10 random numbers between 1 and 50 without any repeats, per line.

It should write 10 lines of these numbers to a file, NumFile.txt.

It needs to have a two dimensional array of type integer 50 long and 2 wide.

Create a 2 * 50 array of values (table) where the first and second rows are integer values. Initialize the first row as the values 1, 2, 3, .. , 39, 40 . 49, 50

Initialize the second row as all zeros (0).

Read an input file that has 10 integer values ranging from 1 to 50 without any repeats in a single row.

For each number in each row, increment the correlating space in row two by one for each occurrence of that number.

Output to the screen, how many of each number were found in the entire file.

Academic Honesty!
It is not our intention to break the school's academic policy. Projects posted are only used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.