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 00:20
Ihave been given the number of guns per 100, and the total firearm-related deaths per 100,000. i have to find the actual number of guns per country and actual number of gun-related deaths. if somebody could show me how to do 1 question, i can finish the rest, i am just confused. tia
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
When early motion pictures played in movie theaters, they were often accompanied by live organ or piano music. which of the following are the most likely reasons that this happened? (select all that apply). the music was provided to distract audience members from the loud sounds made when filmstrips were changed. the music accompanied the movies because the movies were silent and audiences were used to hearing music during plays in theaters. the music usually was played before, and sometimes after the movie, as an alternative form of entertainment. the music viewers to interpret the dramatic action in the films.
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
question
Computers and Technology, 24.06.2019 13:00
What are some websites that you can read manga (ex: manga rock)
Answers: 1
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: 13722361