Answer:
Following are the program in the C++ Programming Language.
//set header file or namespace
#include <iostream>
using namespace std;
//define main function
int main() {
//set integer type array with indexing 10
int a[10];
//set integer type variable to 1
int i=1;
//set element in 1st index
a[0]=17;
//set element in last index
a[9]=29;
//set while loop for the remaining elements
while(i<9)
{
//set -1 in the remaining elements
a[i]=-1;
i++;
}
//set for loop to print array
for ( int j = 0; j < 10; j++ ) {
cout << a[j]<<endl;
}
}
<u>Output:</u>
17
-1
-1
-1
-1
-1
-1
-1
-1
29
Explanation:
In the following program, we define the main function "main()" and inside it.
- Set an integer type array element "a[]" with index value 10.
- Set integer data type variable "i" initialize to 1.
- Set elements in the first and last place in the array.
- Set the while loop to initialize elements for the remaining place.
- Set the for loop to print the array elements.
Answer:
i think its the second one
Explanation:
Answer:
d. European nations competed and made alliances to control colonies.
Explanation:
The world War I was a period of battle between various countries from 1914 to 1918. It started formally on the 28th of July, 1914 and ended on the 11th of November, 1918.
Imperialism can be defined as a policy, ideology, or advocacy that sought to extend a country's power, dominion, authority and influence over another country through diplomacy, use of military force or colonization (direct territorial acquisition).
This ultimately implies that, imperialism is an advocacy or policy that is typically used to impose or extend a country's power, dominion, authority and influence. It simply means to seek colonies of other nations or countries.
Hence, imperialism led to WW1 because European nations competed and made alliances to control colonies.
In conclusion, there was an eagerness on the part of European Nations to gain colonial territories that were owned by other rival nations.
Explanation:
to capture a screenshot press and hold the power and volume down button at the same time for approximately 2 seconds