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.
Part II: (50 Points) Write a program that will show the output of the following sequence of queue operations:
enqueue(5), enqueue(3),dequeue(),enqueue(2),enqueue(8),dequeue(),
dequeue(),enqueue(9),enqueue(1),dequeue(),enqueue(7),enqueue(6),
dequeue(),dequeue(),enqueue(4),dequeue(),dequeue(),
You will need to submit ALL of your program file/s as well as the screen shot of your output.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |