Please code in C++:
Write a program that will search a file of numbers of type int and write the largest and the smallest numbers to the screen. The file contains nothing but numbers of type int separated by blanks or line breaks. If this is being done as a class assignment, obtain the file name from your instructor.
Additional Notes(from my class):
-No global variables may be used in any of our assignments. If I see a global variable being declared, a zero points will be assigned.
Clarification:
-While variables may not be global, all functions and constants should be declared global.
- Beginning from Chapter 4, all assignment must contain functions, even if it is possible to do without one.
-If the assignment calls for just a function, you must code a driver to test the function. The driver and the function both must be submitted.
-(C6 PC1)