Answer:
A.
Explanation:
The rest is nearly impossible to detect or not worth the time.
Answer:
a) Consider sequence numbers,First segment=90
Second segment=110
Data in the first segment = 110-90 =20
b) Consider the first segment is lost but the second segment arrives at B. In the acknowledgment that Host B sends to Host A, then the acknowledgment number will be first segment of sequence number, that is 90.
Explanation:
Answer:
-8 and 735
Explanation:
Since the sea is a body of water (fluid) it takes the same properties as a fluid does which means filling an area and finding a leveled point. This is why we use the sea as a starting elevation point for Earth's land and it is given a numerical value of 0. Since it starts at 0 any land above Sea Level is in the positives while land below Sea Level is in the negatives. Therefore Since New Orleans is 8 feet below sea level its numerical value elevation is -8. The highest point in Chicago is 735 feet above sea level which makes its numerical value 735
Answer:
Multiply(m,n)
1. Initialize product=0.
2. for i=1 to n
3. product = product +m.
4. Output product.
Explanation:
Here we take the variable "product" to store the result m×n. And in this algorithm we find m×n by adding m, n times.
Answer:
The program to this question can be given as:
Program:
def swap_values(user_val1, user_val2): #define function
return (user_val2, user_val1) #return values
if __name__ == '__main__': #define constructor.
n1 = int(input('Enter first number :')) #input value form user
n2 = int(input('Enter second number :')) #input value form user
(n1,n2) = swap_values(n1,n2) #hold function values.
print(n1) #print values
print(n2) #print values
Output:
Enter first number :3
Enter second number :8
8
3
Explanation:
The explanation of the above python program can be given as:
- In the python program we define a function that is "swap_values". This function takes two integer values that is "user_val1 and user_val2" as a parameters and returns variable values that is "user_val2 and user_val1".
- Then we use a constructor in this we define two variable that is "n1 and n2" these variable are use to take user-input from the user and pass the value into the function.
- To hold the value of the function we use n1 and n2 variable and print these variable value.