Answer:
function dataSamples=AdjustMinValue(numberSamples, userSamples, minValue)
dataSamples=userSamples;
%for loop
for i=1:numberSamples
%checking if dataSamples value at index,i
%is less than minValue
if dataSamples(i)<minValue
%set double of dataSamples value
dataSamples(i)= 2*dataSamples(i);
end
end
end
Explanation:
The given code is in MATLAB.
Your answer would be 5098 liters.
Reason being, because there are 1,000,000 liters in one megalitre, so you just multiply 0.005098 by 1,000,000 to get your answer of 5098 liters.
Answer:
D) It creates a vector object with a starting size of 10 and all elements are initialized with the value 2.
Explanation:
When you write the statement vector<int> v(10,2); This statement declares a vector or dynamic array of size 10 that is the first parameter and the second parameter is the value with which all the elements in the vector are to be initialized.So in this vector all the 10 values will be initialized with the value 2.It is one of the way of initializing the vector.
Answer: star topology.
Explanation:
The layout of the way how the computers in a netword are interconnected is called network tipology.
Some types of network topologies are:
1) Point-to-point tipology: all the computers are connected to each other directly (computer-to-computer, in pairs, this is a direct link between each two computers).
2) Bus topology: all the nodes (computers or server) are connectect to a maing cable.
3) Star topology: all the computers are connected to a central computer or server which is called central hub. This is the layout described in the question.
4) Ring topology: the computers are connectec in a circular path; each computer is connected to the next computer.
5) Mesh: every computer is connected to every other computer.