Answer:
// Assume that all variables a, n, temp have been declared.
// Where a is the array, n is the array length, temp is a temporary
// storage location.
// Cycle through the array a.
// By the time the loop gets halfway,
// The array would have been reversed.
// The loop needs not get to the end of the array.
// Hence, the loop ends halfway into the array i.e n/2.
for (int k = 0; k < n / 2; k++) {
// Swap first and last, second and next-to-the-last and so on
temp = a[k];
a[k] = a[n - k - 1];
a[n - k - 1] = temp;
}
Explanation:
Carefully go through the comments in the code.
Hope this helps!
Answer:
Type of myDisk.brand is BrandInfo.
Explanation:
Answer:
B. the number of transistors per square inch on integrated circuits will double every two years.
Explanation:
The law has been staying true to its postulation as it has been used in so many fields and for every measure of the capabilities of digital electronic devices, including computer processing speed and memory capacity.
It has led to a paradigm shift , technology adoption life cycle and diffusion innovation theory.
Answer:
C
Explanation:
Coming from me (a musician) i actually do c
Answer:
He must score 86 or more in the fourth test to get and A
Explanation:
The needed score can be found with this equation
(92+88+94+x) = 360
274 + x =360
x = 360 - 274
= 86
x represents the fourth score, the sum of the four scores must be up-to 360 for the student to get an A