Answer:
Complete the main method as follows:
int num;
cin>>num;
int i = 0;
while(num!=0){
array[i] = num;
cin>>num;
i++;
}
Complete the printArray function as follows:
void printArray(int array[]){
int i =0;
while(array[i]!=0){
cout<<array[i]<<" ";
i++;
}}
Explanation:
<u>Main method</u>
This declares a variable that gets input from the user
int num;
This gets input from the user
cin>>num;
This initializes a count variable to 0. It represents the index of the current array element
int i = 0;
while(num!=0){
This inserts the inputted number to the array
array[i] = num;
This gets another input
cin>>num;
The counter is incremented by 1
i++;
}
The above loop is repeated until the users enters 0
<u>printArray method</u>
This declares the array
void printArray(int array[]){
This initializes a counter variable to 0
int i =0;
This is repeated until array element is 0
while(array[i]!=0){
Print array element
cout<<array[i]<<" ";
Increase counter by 1
i++;
}}
<em>See attachment for complete program</em>
Answer:
There are various types of cellular data with the different transmission speeds that are: 1G,2G,3G and 4G.
1st generation network:
The 1st generation network is known as cellular network data transmission that contain analog system. It has 2.4kbps speed range. It is widely used in various services like public voice.
2nd generation network:
The second generation network is basically based on the digital system. The global positioning system (GSM) is one of the important service in the 2nd generation network. It basically provide different types of services that are:
GSM provide upto 2.5G range of speed and GSM EDGE upto 23kbps services.
3rd generation network:
It the wireless service that is basically based on the digital system. It provide various types of services like mobile interne, video calling and wireless type of telephones.
4th generation network:
It is one of the high digital data transmission rate and it is basically represented as the LTE. The 4G provide many types of services like multimedia services and telephone and gaming services.
Answer:
First, you need to start the OSPF process by executing the command:
<em>Router (config)# router ospf {process-ID#}</em>
Then, you have to instruct the router to advertise the networks that are directly linked to it by entering this network command with the area ID number for that network:
Router (config-router)# network {192.168.10.0} {255.255.255.0} area {0}
Maybe like 3-5 I think im right