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, 22.06.2019 05:00
Are special characters that allow you to search for multiple words at the same time.
Answers: 2
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
You know the right answer?
Write a program in c language using arrays:

part 1:
-write a program that stores...
Questions
question
Mathematics, 25.11.2021 14:10
question
Mathematics, 25.11.2021 14:10
question
Mathematics, 25.11.2021 14:10
Questions on the website: 13722363