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.
Unix/Linux question, cool.
<span>Typically we'd use chmod with +s in there.
chmod u+s script
</span>
Insert option the last one
Using the knowledge of computational language in JAVA it is possible to write a code that Fixing syntax errors Click run to compile, and note the long error list.
<h3>Writting the code:</h3>
<em>public class BeansInJars {</em>
<em> public static void main(String[] args) {</em>
<em> int numBeans;</em>
<em> int numJars;</em>
<em> int totalBeans;</em>
<em> numBeans = 500;</em>
<em> numJars = 3;</em>
<em> System.out.print(numBeans + " beans in ");</em>
<em> System.out.print(numJars + " jars yields ");</em>
<em> totalBeans = numBeans * numJars;</em>
<em> System.out.println(totalBeans + " total");</em>
<em> }</em>
<em>}</em>
See more about JAVA at brainly.com/question/12975450
#SPJ1
B: formed by an active volcano