subject

Write a program in c language using arrays:

part 1:
-write a program that stores eight doubles in an array. you can allow the user to enter
the numbers from the keyboard or you can initialize the array with eight doubles.
-your program should then display:
- each number on one line (to one decimal place of accuracy)
-for example: 2 19.4 -11.2 7.3 . .
- each number on one line in reverse order (again, to one decimal place)
- the sum of the numbers
- the average of the numbers
- each number that is higher than the calculated average value

part 2:
- write a program that declares a one-dimensional array of integers with 24 elements.
fill the array with random integers (use a loop). neatly output each element in the
one-dimensional array.

- next convert your one-dimensional array of 24 elements into a two-dimensional
array of 6 x 4 elements. neatly output each element of the two-dimensional array.
the values will be identical to the one-dimensional array – you’re just converting
from one dimension to two.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:00
What are the possible consequences of computer hacking? what is computer piracy? describe some examples. what are the effects of computer piracy? what are the possible consequences of computer piracy? what is intentional virus setting? describe some examples. what are the effects of intentional virus setting? what are the possible consequences of intentional virus setting? what is invasion of privacy? describe some examples. what are the effects of invasion of privacy? what are the possible consequences of invasion of privacy? what is an acceptable use policy and what is the purpose of the acceptable use policy what is intellectual property and how can you use it?
Answers: 1
question
Computers and Technology, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
question
Computers and Technology, 23.06.2019 23:00
Computer programming is one type of what career
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. obfuscate: to make something so confusing that it is difficult to understand.
Answers: 2
You know the right answer?
Write a program in c language using arrays:

part 1:
-write a program that stores...
Questions
Questions on the website: 13722363