Computer Programming: ARRAYS
An array is used to store many similar types of data using a single variable name. The array should be pictured as a container with many compartments. The container has one name, but each of the compartments is numbered. In order to refer to the value stored in a single compartment, we must use the…