Answer:
<u>The total time elapsed from the time a bit is created (from the original analog signal at Host A) until the bit is decoded (as part of the analog signal at Host B is </u><u>25.11 ms</u>
Explanation:
Host A first converts the analog signal to a digital 64kbps stream and then groups it into 56-byte packets. The time taken for this can be calculated as:
time taken 1= 
= (56 x 8) bits / 64 x 10³ bits/s
= 7 x 10⁻³s
time taken 1= 7 ms
The transmission rate of the packet from Host A to Host B is 4 Mbps. The time taken to transfer the packets can be calculated as:
time taken 2= (56 x 8) bits / 4 x 10⁶ bits/s
= 1.12 x 10⁻⁴ s
time taken 2= 112 μs
The propagation delay is 18 ms.
To calculate the total time elapsed, we need to add up all the time taken at each individual stage.
<u />
<u> = Time taken 1 + Time taken 2 + Propagation Delay</u>
= 7 ms + 112 μs + 18 ms
= 0.025112 s
= 25.11 ms
Answer:
double arrow shape
Explanation:
To adjust the height of the cells
1. We have to position the mouse pointer over one of the column line or the one of the row line.
2. As we place the pointer between the dividing lines, the cursor of the mouse pointer change from singe bold arrow to double arrow symbol.
3.Now press or click the left mouse button and drag the dividing lines of the cells to the desired position to have the required width or height of the cell.
Answer:
#include <bits/stdc++.h>
using namespace std;
bool isPalindrome(string str)
{
char a,b;
int length = str.length();
for (int i = 0; i < length / 2; i++)
{
a=tolower(str[i]);//Converting both first characters to lowercase..
b=tolower(str[length-1-i]);
if (b != a )
return false;
}
return true;
}
int main() {
string t1;
cin>>t1;
if(isPalindrome(t1))
cout<<"The string is Palindrome"<<endl;
else
cout<<"The string is not Palindrome"<<endl;
return 0;
}
Output:-
Enter the string
madam
The string is Palindrome
Enter the string
abba
The string is Palindrome
Enter the string
22
The string is Palindrome
Enter the string
67876
The string is Palindrome
Enter the string
444244
The string is not Palindrome
Explanation:
To ignore the cases of uppercase and lower case i have converted every character to lowercase then checking each character.You can convert to uppercase also that will also work.
Answer:
a) 6
b) 11
c) 11
Explanation:
Given
Prime value q =n= 19
primitive root (a) =10
Alice secret key = 4
Bob secret key = 6
a) The value Alice Sends to Bob
aPrivate key of Alice mod n
= 10^4 mod 19
= 10000 mod 19
=6
b)The value Bob sends to Alice
aPrivate key of Bob mod n
= a3 mod n
= 10^6 mod 19
=1000000 mod 19
= 11
c)
Both the parties calculate the value of secret key at their respective side.
secret key obtained by Alice
= 11
secret key obtained by Bob
= 11
Finally, both the parties obtain the same value of secret key.
The value of common secret key = 17