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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started