Visit www.myprogramminglab.com to complete this Programming Challenge online and get instant feedback. Number Analysis Class Write a class with a constructor that accepts a file name as its argument....


Visit www.myprogramminglab.com to complete this Programming Challenge online and get instant feedback.


Number Analysis Class


Write a class with a constructor that accepts a file name as its argument. Assume the file contains a series of numbers, each written on a separate line. The class should read the contents of the file into an array, and then displays the following data:


• The lowest number in the array


• The highest number in the array


• The total of the numbers in the array


• The average of the numbers in the array


This chapter’s source code folder, available at www.pearsonhighered.com/gaddis, contains a text file named Numbers.txt. This file contains twelve random numbers. Write a program that tests the class by using this file.



Nov 28, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here