Give the complete program of each of the following. 1. Write a program to input eight integer numbers into an array named temp. As each number is entered, add the numbers into a total. After all...


Give the complete program of each of the following.


1. Write a program to input eight integer numbers into an array named temp. As each number is entered, add the numbers into a total. After all numbers are entered, display the numbers and their average.




2. Write a program to input the following values into an array named volts: 10.95, 16.32, 12.15, 8.22, 15.98, 26.22, 13.54, 6.45, 17.59. After the data has been entered, have your program output the values.




3. Write a program to input the following integer numbers into an array named
grades
: 89, 95, 72, 83, 99, 54, 86, 99, 54, 86, 75, 92, 73, 79, 75, 82, 73. As each number is entered, add the numbers to a total. After all numbers are entered and the total is obtained, calculate the average of the numbers, and use the average to determine the deviation of each value from the average. Store each deviation in an array named
deviation. Each deviation is obtained as the element value less the average of the data. Have your program display alongside its corresponding element from the
grades
array.




4. Write a program that uses an array declaration statement to initialize the following numbers in an array named slope : 17.24, 25.63, 5.94, 33.92, 3.71, 32.84, 35.93, 18.24, 6.92. Your program should locate and display both the maximum and minimum values of the array.




5. Using the data in exercise 3, write a program that will sort the values in ascending order.



Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here