Assignment 6 for CSCI 201
Description:
In this assignment, you are asked to write one program. In this
program you will define and use an array as described below.
Programming with Arrays
Write a program that does the following:
- Prompts the users to enter a list of integers; the list should not
exceed 25 numbers.
- Print the list both forwards and backwards.
- Print the maximum and minimum numbers in the list.
- All prints should be preceded by a message explaining what is
about to be printed.
Requirements:
- The list of numbers entered by the user should be stored in an array.
- The program must contain the following three functions (other
functions may also be used):
- a function main()
- a function min() that takes an integer array as input
(i.e., has one formal integer array parameter) and returns the
smallest integer stored in that array.
- a function max() that takes an integer array as input
(i.e., has one formal integer array parameter) and returns the largest
integer stored in that array.
What to turn in:
Place the source code for the program described above in your class
ftp directory, use the name prog.cpp.