Answer:
The program in C++ is as follows:
#include <iostream>
using namespace std;
void display(int array_test [], int n){
for(int i = 0; i<n;i++){
cout<<array_test[i]<<" "; }
}
int main(){
int n;
cin>>n;
int array_test[n];
for(int i = 0; i<n;i++){
cin>>array_test[i];
}
display(array_test,n);
return 0;
}
Explanation:
This defines the display function
void display(int array_test [], int n){
This iterates through the array
for(int i = 0; i<n;i++){
This prints each element of the array
cout<<array_test[i]<<" "; }
}
The main begins here
int main(){
This declares n as integer; n represents the length of the array
int n;
This gets input for n
cin>>n;
This declares the array
int array_test[n];
The following iteration gets input for the array
for(int i = 0; i<n;i++){
cin>>array_test[i];
}
This calls the display function to display the elements of the array
display(array_test,n);
return 0;
}
Answer:
Hierarchical – Option C
Linear – Option D
Webbed - Option A
Wheel - Option B
Explanation:
Hierarchical means something that follows the order from general to specific .
Hierarchical – Option C
Linear means something that follows the order from general to specific .
Linear – Option D
Webbed – There is no order in flow of information or it is inconsequential. Hence, option A
Wheel - means the flow is sequential i.e as per the sequence
Wheel – Option B
B) which ice cream flavor do the most student prefer?
Answer:
8.8 Minutes
Explanation:
10 characters per second and 80 characters per line. 80/10=8 describes how many seconds it would take per line. Then multiply the time it takes per line by the number of lines which would be 8x66. Then from there you get 528 seconds and by doing some divison you get 8.8 minutes.
Node is capable of processing data.