
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Create a class that will find the maximum and the minimum from a list of integers. The external interface of the class will have the following public functions.
Everything except these functions must be private. The internal implementation of the class is up to you, and you may call it anything you wish. The class must work for lists of unlimited size.
The main function of your program must use your class to determine the maximum integer in a file of integers. Your program must open a file called “IntList.txt” and must read until end of file. Once end of file has been reached, your program must close the file and print the maximum and minimum values found in the following format Maximum: 300 Minimum: -
Make sure that one blank line follows the line containing the minimum value.
IMPORTANT REMINDER: Discussing your program with ANYONE other than the course instructor or the lab assistant is strictly prohibited. The penalty for collusion, giving unauthorized assistance or receiving unauthorized assistance on any programming assignment, lab assignment, examination, practicum, or homework exercise is an F for the entire course.