Answer:
The answer is (C)
Let’s run the algorithm on a small input to see the working process.
Let say we have an array {3, 4, 1, 5, 2, 7, 6}. MAX = 7
- Now for i=0, i < 7/2, here we exchange the value at ith index with value at (MAX-i-1)th index.
- So the array becomes {6, 4, 1, 5, 2, 7, 3}. //value at 0th index =3 and value at (7-0-1)th index is 6.
- Then for i=1, i < 7/2, the value at index 1 and (7-1-1)=5 are swapped.
- So the array becomes {6, 7, 1, 5, 2, 4, 3}.
- Then for i=2, i < 7/2, the value at index 2 and (7-2-1)=4 are swapped.
- So the array becomes {6, 7, 2, 5, 1, 4, 3}.
- Then for i=3, i not < 7/2, so stop here.
- Now the current array is {6, 7, 2, 5, 1, 4, 3} and the previous array was{3, 4, 1, 5, 2, 7, 6}.
Explanation:
So from the above execution, we got that the program reverses the numbers stored in the array.
Answer:
We need to find first the location, and then we need to note down the barometric pressure of each hour in tenth place without decimal like 1013.3 mb is equal to 133 and so on. And the rate can be steadily increasing, steady, steadily decreasing, steadily increasing and then falling, steadily falling and then increasing, and so on. To find the rate of increase in barometric pressure, we need to find the rate of change of barometric pressure, and this will be clear if we prepare the chart of the barometric pressure of each hour during the past three hours. The graph plotted will give us a clear indication through its slope.
Explanation:
Please check the answer.
The storage device which is not a long-term storage device is: D. RAM.
<h3>Types of computer memory.</h3>
In Computer technology, there are two (2) main types of memory or storage location for software program (application) that are being used on a computer and these include the following;
- Read only memory (ROM)
- Random access memory (RAM)
<h3>What is RAM?</h3>
RAM is an abbreviation for random access memory and it can be defined as a volatile and temporary storage (memory) location that is used for currently opened software program (application) and computer data.
In conclusion, we can reasonably and logically deduce that the storage device which is not a long-term storage device is random access memory (RAM).
Read more on RAM here: brainly.com/question/13748829
#SPJ1
I'm a little confused about the question, but if you're asking how many points you need to ask a question, the minimum is 10.