Question: You are given a file with 20 integers (create your own). Your task is to select and print the three largest numbers with NO sorting
You are given a file with 20 integers (create your own). Your task is to select and print the three largest numbers with NO sorting and NO arrays. It is possible that the largest numbers are repeated you should print the number of occurrences of the three largest numbers. You must accomplish this task without sorting the file and without using arrays for any purpose. The reading of the numbers, the comparisons, the printing of the largest numbers should all be in separate functions. You MUST employ pass by value for this problem.
Array utilization and/or sorting: -30 points.
This is the same problem as Problem2, but you MUST employ pass by reference for this problem.
Array utilization and/or sorting: -30 points.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
