I have a hw assignment that i have been working on for days and can't figure out what to do. I am reading a text with numbers with the scanner Filereader and i can't figure out how to add the numbers and so on. Here are the instructions i was givin. Any help would be very appreciated.
The program will read the file and then present the user with a menu. The user will then make a menu choice. Be sure to validate the user's input. The user can continue to use the program until the user opts to end the program. Ending the program is a menu choice.
Here is the output:
Make a selection from the list
1. Get the largest value
2. Get the smallest value
3. Get the sum of the values
4. Get the average
5. Get the number of values entered
6. End this program
Enter your choice --> 1
The largest value is 1000
