Question
Part I: (150 points) Utilizing an array or vector and loops, write a class that accept 20 numbers from a file called number.txt (you have
Part I: (150 points)
Utilizing an array or vector and loops, write a class that accept 20 numbers from a file called number.txt (you have to create this file in notepad and numbers can range from -100 to 100) and outputs the following:
- the sorted numbers in ascending order
- the product of the numbers (Multiplication)
- the minimum value inputted
- the maximum value inputted
Test your program in main and submit the pertaining files based on your rubrics.
Failure to write a "class" will result in a grade of zero. Do not write your whole program in main. Submit your .java file/s as well as the number.txt file with the screen shot of the output
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