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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

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.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education