Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:30, camerondillonn
If the polar bear were taken out of the food chain what would happen to the seal population the seal population would diminish the seal population would grow dramatically the seal population would stay the same the seal population would decrease slightly
Answers: 1
image
Computers and Technology, 23.06.2019 13:00, jaelynnm
Donnie does not have powerpoint. which method would be best for elana to save and share her presentation as is? a pdf a doc an rtf a ppt
Answers: 3
image
Computers and Technology, 24.06.2019 08:00, ineemorehelp
Arah has entered data about football players from team a and team b in a worksheet. she enters names of players from team a with details about each player in different columns of the worksheet. similarly, she enters details of all the players from team b. which option will her view the data for team a and team b in two separate sections after printing? a. page break view b. freeze pane view c. split screen view d. full screen view e. zoom out view
Answers: 1
image
Computers and Technology, 24.06.2019 08:30, trashellyoung
Why might you choose to create a functional resume
Answers: 1
Do you know the correct answer?
Write a program in c language using arrays:

part 1:
-write a program that stores...

Questions in other subjects:

Konu
Mathematics, 04.11.2020 08:00
Konu
Social Studies, 04.11.2020 08:00