Answer:
Question 1: The pseudocode is as follows:
int n = 70;
int intArray[n];
for(int i = 0; i< n; i++){
print("Input "+(i+1)+": ")
input intArray[i];
}
Question 2: Advantages of array
Explanation:
Question 1
This declares and initializes the length of the array
int n = 70;
This declares the array
int intArray[n];
This iterates through the length of the array
for(int i = 0; i< n; i++){
This prompts the user for inputs
print("Input "+(i+1)+": ")
This gets input for each element of the array
input intArray[i];
}
Question 2
Indexing: Elements of the array can easily be accessed through the index of the element.
For instance, an element at index 2 of array intArray can be accessed using: intArray[2]
Multiple Values: This is illustrated in question 1 above where we used 1 array to collect input for 70 values.
2 dimensional inputs: Literally, this means that array can be used to represent matrices (that has rows and columns).
An illustration is:
intArray[2][2] = {[0,1],[3,5]}
The above array has 2 rows, 2 columns and 4 elements in total.