Answer:
Number of fragments is 3
Explanation:
The maximum size of data field in each fragment = 4468 - 20(IP Header)
= 4448 bytes
Hence, the number of required fragment = (10000 - 20)/4448
= 3
Fragment 1
Id = 218
offset = 0
total length = 4468 bytes
flag = 1
Fragment 2
Id = 218
offset = 556
total length = 4468 bytes
flag = 1
Fragment 3
Id = 218
offset = 1112
total length = 1144 bytes
flag = 0
Answer:
The complete program is as follows:
m_str = input('Input m: ')
mass = float(m_str)
e = mass * 300000000**2
print("e = ",e)
Explanation:
This is an unchanged part of the program
m_str = input('Input m: ')
This converts m_str to float
mass = float(m_str)
This calculates the energy, e
e = mass * 300000000**2
This is an unchanged part of the program
print("e = ",e)
The answer is A. Client request and receive files to and from a server.
Answer:#include <stdio.h>
int main() {
int num;
printf("Enter an integer: ");
scanf("%d", &num);
// true if num is perfectly divisible by 2
if(num % 2 == 0)
printf("%d is even.", num);
else
printf("%d is odd.", num);
return 0;
}