KSK Jemens je Jemen jeme this is mine
Answer:
I took a screenshot of the test withe that question
Explanation:
Answer:
6.025seconds
Explanation:
For each link we have,
Dtran = 10mbits/10mbps =1 second
Dprop = 5000km/2×10^8m/sec =0.025sec.
Total delay =( 5 + 2-1) + Dtran+ 2 Dprop= 6.025seconds
Answer:
1. Modified formulae for calculating tree height.
.
2. C++ program to calculate tree height.
#include<iostream>
#include<math.h>
using namespace std;
int
main ()
{
double treeHeight, shadowLenghth, angleElevation;
cout << "Please enter angle of elevation and shadow length" << endl;
cin >> angleElevation;
cin >> shadowLenghth;
//Modified formulae to calculate tree height.
treeHeight = tan (angleElevation) * shadowLenghth;
cout << "Height of tree is:" << treeHeight;
}
Output:
Please enter angle of elevation and shadow length
45
12
Height of tree is:19.4373
Explanation:
Since no programming language is mentioned, so solution is provided using C++.
In the above C++ program, first angle of elevation and length of shadow provided by user will be stored in variables angleElevation and shadowLength.
Then using the modified formalue height of tree will be calculated and stored in variable treeHeight. Final result is displayed to user.
Answer:
Option B: a[k] = 20, a[k + 1] = 10 is the correct answer.
Explanation:
We will dry run the pseudocode line by line and monitor the values stored in elements to get the final answer.
We have three elements to be used in the code.
a[k] , a[k+1] and temp
a[k] = 10;
This line assigns value 10 to a[k]
a[k+1] = 20;
This line assigns value 20 to a[k+1]
temp = a[k];
This line will assign the value in a[k] to temp i.e. we have following values currently stored at the three locations a[k] = 10, a[k+1] = 20 and temp = 10
a[k] = a[k+1] ;
This line of code assigns the value of a[k+1] to a[k] which means now we have a[k] = 20 , a[k+1] = 20 and temp =10
a[k+1] = temp ;
This line will assign the value in temp to a[k+1] which means now we have
a[k] = 20 , a[k+1] = 10 and temp = 10
Hence, looking at the final values in a[k] and a[k+1] it can be concluded that
Option B: a[k] = 20, a[k + 1] = 10 is the correct answer