Answer:
No, the packets did not arrive in the right order but the TCP protocol reordered the packets. The transmission took a while, but the message was finally delivered.
Explanation:
Packets are chunks of data from a data source or message transmitted from one computer device to another. Protocols like TCP or transmission control protocol and UDP (user datagram protocol) are used for data transfer, with TCP as the more reliable protocol (it checks for errors, retransmit lost packets, and reorders received packets in the destination device) and slow protocol.
<u>Answer:</u>
<em> </em><em>Modem is an hybrid device,</em><em> which is responsible for modulating and demodulating information. </em><em>It is a transmission medium and also it is a hardware tool used for connecting to internet.</em>
<u>Explanation:</u>
What is modulation?, let us understand. The <em>process of converting analog to digital signal is called modulation and demodulation is vice-versa.</em> The computer connects internet classically using telephone wire.
The <em>telephone wire understands only analog signal and a computer understands only digital signal.</em> So Modem’s role is to take care of this aspect while <em>connecting to the internet.</em>
Answer:
#include <iostream>
using namespace std;
void miles_to_km(float &miles)//function to convert miles to kilo meters.
{
miles=miles*1.6;
}
int main() {
float miles;
cout<<"Enter the miles"<<endl;
cin>>miles;//taking input of the miles..
miles_to_km(miles);//calling function that converts miles to km..
cout<<"The number of km is "<<miles<<endl;//printing the km.
return 0;
}
Output:-
Enter the miles
54
The number of km is 86.4
Explanation:
I have created a function miles_to_km of type void which has the argument miles passed by reference.In the function the variable miles is converted to kilo meters.Then in the main function the function is called with the value prompted from the user.Then printing the changed value.