The output will be 10.
The while loop runs until numb is equal to or less than 13.
25 - 5 = 20
20 - 5 = 15
15 - 5 = 10, which is less than 13 so the loop stops and 10 is printed to the screen.
Answer:
yeah
Explanation:
that happens to me as well from time to time
Answer:
There is no short answer.
Explanation:
First let's create the string:
- alphabetString = "abcdefghijklmnopqrstuvwxyz";
The first half of the string using slice method can be written as:
- alphabetString.slice(0, 13);
The first half of the string using only the ending index can be written as:
- alphabetString.slice(-13);
When we put - at the start of the index number, the counting begins at the last element with -1 and goes backwards.
The second half of the string can be written as:
- alphabetString.slice(13,26);
The second half of the string using only the starting index can be written as:
- alphabetString.slice(13);
To get the every second letter in the string, we need a for loop:
- for( let x = 0; x < alphabetString.length(); x = x + 2){
alphabetString.slice(x);
}
To get the entire string in reverse, we can use the reverse method that is built-in:
- alphabetString.reverse();
To get the every third letter of the string, we can again use a for loop:
- for( let x = -1; x = -27; x = x - 3){
alphabetString.slice(x);
}
I hope this answer helps.
Answer:
Answer is provided in the explanation section
Explanation:
Given data:
Bandwidth of link = 10* 106 bps
Length of packet = 12* 103 bits
Distance of link = 40 * 103m
Transmission Speed = 3 * 108 meters per second
Formulas:
Transmission Delay = data size / bandwidth = (L /B) second
Propagation Delay = distance/transmission speed = d/s
Solution:
Transmission Delay = (12* 103 bits) / (10* 106 bps) = 0.0012 s = 1.2 millisecond
Propagation Delay = (40 * 103 meters)/ (3 * 108mps) = 0.000133 = 0.13 millisecond