Question: Sample Runs ( Program Behavior ) User in put is in bold: Test 1 > run Enter the size of your list: - 4 Enter

Sample Runs (Program Behavior)
User in put is in bold:
Test 1
> run
Enter the size of your list: -4
Enter a positive size. Try again.
Enter the size of your list: 0
Enter a positive size. Try again.
Enter the size of your list: -2
Enter a positive size. Try again.
Enter the size of your list: 1
Enter the value to store at index #0: 7
You entered the list: <7>
The minimum value in the list is 7
Test 2
> run
Enter the size of your list: 1
Enter the value to store at index #0: -77
You entered the list: <-77>
The minimum value in the list is -77
Test 3
> run
Enter the size of your list: 2
Enter the value to store at index #0: 1
Enter the value to store at index #1: 100
You entered the list: <1,100>
The minimum value in the list is 1
Test 4
> run
Enter the size of your list: 2
Enter the value to store at index #0: 55
Enter the value to store at index #1: 3
You entered the list: <55,3>
The minimum value in the list is 3
Test 5
> run
Enter the size of your list: 3
Enter the value to store at index #0: -6
Enter the value to store at index #1: 7
Enter the value to store at index #2: 33
You entered the list: <-6,7,33>
The minimum value in the list is -6
Test 6
> run
Enter the size of your list: 3
Enter the value to store at index #0: 99
Enter the value to store at index #1: -7
Enter the value to store at index #2: 42
You entered the list: <99,-7,42>
The minimum value in the list is -7
Test 7
> run
Enter the size of your list: 3
Enter the value to store at index #0: 88
Enter the value to store at index #1: 0
Enter the value to store at index #2: -6
You entered the list: <88,0,-6>
The minimum value in the list is -6
Test 8
> run
Enter the size of your list: 10
Enter the value to store at index #0: 8
Enter the value to store at index #1: 4
Enter the value to store at index #2: 56
Enter the value to store at index #3: 25
Enter the value to store at index #4: 2
Enter the value to store at index #5: 77
Enter the value to store at index #6: 3
Enter the value to store at index #7: 42
Enter the value to store at index #8: 100
Enter the value to store at index #9: 42
You entered the list: <8,4,56,25,2,77,3,42,100,42>
The minimum value in the list is 2
Programming Instructions
Your solution will be graded based upon program behavior (passing tests). Your solution will not receive full credit (or receives no credit) if you fail to follow these restrictions:
Your program must compile and run. Otherwise it will receive a zero.
Add your solution to the provided code template.
Do NOT use vectors in your solution.
You must use a pointer variable and dynamic memory allocation in the function main.
Do NOT use explicitly defined pointer variables (using the * operator) when passing arrays to functions. Use square brackets.
Use descriptive variable names. Avoid too short variable names, especially single letter variable names.
DO NOT start a variable name with a capital letter.
DO NOT use explicit type casting. Instead use coercion (see lecture notes).
DO NOT unnecessarily use parenthesis in an expression, e.g. an equation or formula. Parenthesis should only be used for grouping portions of an expression to change operator precedence order. For example, parenthesis are unnecessary in the expression (a + b + c). Instead use a + b + c. Parenthesis are necessary in the expression (a + b + c)/3.
DO NOT use the break and continue statements in your solution.
Your program must be readable including indenting, spaces, and avoid lines that are too long. Use the the sample programs in the lecture notes as a guide.
Comment your program. Read the document at the "Lecture" link on Carmen under Modules->Commenting Your Program-> Commenting your program. DO NOT comment every line.
Only use C++ statements presented in the course. I.e. statements and notation presented in the lecture notes and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!