Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int main() {
int[] array = new int[10];
int index = 0;
while(index < array.size()){
int number = (rand() % 100) + 1;
for (int i = 0; i < 1; i++) {
array[index] = number;
cout<< "Position "<< index << "of the array = "<< number << endl;
++index;
}
}
}
Explanation:
The while loop in the source code loops over a set of code ten times, The for loop only loops once to add the generated random number between 1 and 100 to the array of size 10. At the end of the for loop, the index location and the item of the array is printed out on the screen. The random number is generated from the 'rand()' function of the C++ standard library.
Answer:
Configure Windows Firewall on the remote computer.
Explanation:
Answer:
I believe the answer would be C
Explanation:
Answer:
See attached pictures for detailed answer.
Explanation:
See attached pictures for explanation.
Answer:
The correct answer is C.
Explanation:
You have to do 0xFF20 - 0x1037 but first, you need to convert the counts from hexadecimal base system to decimal base system using this formula:
, where position of the x₀ is the rightmost digit of the number.
<em>Note: </em>
- A = 10.
- B = 11.
- C = 12.
- D = 13.
- E = 14.
- F = 15.
0xFF20 = 15*16³+15*16²+2*16¹ = 65312
0x1037 = 1*16³+3*16¹+7*16⁰ = 4151
Result: 65312 - 4151 = 61161