Question: Design, code, and test a program that contains an array of ints. The size of the array should be the number of characters in your
Design, code, and test a program that contains an array of ints. The size of the array should be the number of characters in your first and last name combined. For example, Maria Beasley inventor of the life raft, would have an array of size in her program. Use a named constant for the size of your array.
Use a loop to let the user enter values to fill the contents of the array. As the user is entering values, accumulate total each value.
Use a second loop to output the contents of the array, along with the total and average of the values in the array.
Be sure to use your named constant in the declaration of the array, as well as for the loop limit in both of your loop
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
