Utilizing an array or vector and loops, write a class that accept 20 numbers from a file called number.

computer science

Description

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.


Related Questions in computer science category