Computers and Technology
Computers and Technology, 21.05.2020 13:58, Nikida41

Write a C program that solves the next problem.
-It reads from the keyboard a vector with n whole and positive elements (n read from the keyboard). The vector name is P.
-Show the vector elements, 4 items on a line.
-A new vector is formed, containing the elements in the initial vector that are divisible by 5. The vector name is M. Calculate the geometric mean of its elements. If there are no 5 divisible elements in the first vector, a message will be displayed.
-The second vector (4 elemets per line), the number of elements of it and the geometric mean determined are displayed.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:30, kieraweems2034
Communication is the exchange of information. true false
Answers: 2
image
Computers and Technology, 22.06.2019 22:00, lgary9462
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass. cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array. c . run this program and observe the results.
Answers: 1
image
Computers and Technology, 23.06.2019 02:00, eila3601
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
image
Computers and Technology, 23.06.2019 20:00, noah12345678
What multimedia system creates an immersive, real-life experience that the user can interact with?
Answers: 1
Do you know the correct answer?
Write a C program that solves the next problem.
-It reads from the keyboard a vector with n wh...

Questions in other subjects:

Konu
Mathematics, 02.03.2021 21:00