Add a line at the end of the program to print the 10000th


This is a simple exercise to introduce the use of arrays and some of the common errors that occur when programming with them in c++.

• Write a simple program that allows the user to enter 10 integers into an array, then prints the array and calculates, stores and prints the
sum and average of the values in the array. Print this program to be turned in, along with sample output.

• Add a line to the end of the program that prints the 11th element of the array. What gets printed when you run the program? Try running
the program a few times. Is there any consistency in what gets printed for the 11th element?

• Add a line at the end of the program to print the 10,000th element of the array. What happens now? What is the exact error message you
get?

• Turn in your original program and the results of the last two experiments.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Add a line at the end of the program to print the 10000th
Reference No:- TGS02925292

Expected delivery within 24 Hours