subject

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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:30
At an open or uncontrolled intersection, yield if a. the cross road has more lanes than yours b. the cross road has fewer land than yours c. you’re on a state highway and the cross road is a secondary road d. do you have three or more passengers in your vehicle
Answers: 2
question
Computers and Technology, 23.06.2019 04:00
Write a method that takes in an array of point2d objects, and then analyzes the dataset to find points that are close together. be sure to review the point2d api. in your method, if the distance between any pair of points is less than 10, display the distance and the (x,y)s of each point. for example, "the distance between (3,5) and (8,9) is 6.40312." the complete api for the point2d adt may be viewed at ~pf/sedgewick-wayne/algs4/documentation/point2d.html (links to an external site.)links to an external site.. try to write your program directly from the api - do not review the adt's source code.
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
The managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an .
Answers: 3
question
Computers and Technology, 23.06.2019 13:00
Which of the following statements is false? a. a class can directly inherit from class object. b. if the class you're inheriting from declares instance variables as private, the inherited class can access those instance variables directly. c. a class's instance variables are normally declared private to enforce good software engineering. d. it's often much more efficient to create a class by inheriting from a similar class than to create the class by writing every line of code the new class requires.
Answers: 3
You know the right answer?
Write a C program that solves the next problem.
-It reads from the keyboard a vector with n wh...
Questions
question
Chemistry, 12.02.2021 14:00
question
Chemistry, 12.02.2021 14:00
question
Computers and Technology, 12.02.2021 14:00
question
Mathematics, 12.02.2021 14:00
Questions on the website: 13722360