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.
Give the complete
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.
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 6 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)