Describe the steps involve in a Distributed Coordination Function using a simple carrier sense multiple access algorithm with an interframe space delay to transmit frames in a Wireless LAN
Describe the four units that makes IEEE 802.11 Architecture.
Describe the four abstraction layers of TCP/IP
Describe the four abstract layers of TCP/IP
Write a PL/SQL program to check whether a date falls on weekend i.e. SATURDAY or SUNDAY.
// Calculate average (only if the user inputted any numbers
if (count > 0)
average = sum / (double) count;
else
average = 0;Create your own code to add to the original program, after Line 30. The code you add should display whether the total number of values entered by the user (count)=(4), is small
(< 5) or large (>= 5). Use an If/Else statement.
given a sentence S. and a positive integer N. write a program to shift the sentence by N words to the right
INPUT
The first line pf input is a string S.
The second line of input is an integer N
OUTPUT
The output should be a single line containing the sentence by shifitng the N word to the right
EXPLANATION
in the example the sentence is python is a programming language and N is 2 shift the sentence two words to the right which means the last two words will be moved to the front.
so the output should be programming language python is a
sample input 1
Python is a programming language
2
sample output 1
programming language Python is a
sample input 2
Cats hate water
4
Sample output 2
water Cats hate
you given a list of prices where prices[i] is the price of a given stock o the i th day write a program to print the maximum profit by choosing a single day to buy a stock and choosing a different day in the future to sell that stock if these is no profit that can be achieved return 0
INPUT
the input is a single line containing space seperated integers
OUTPUT
the output should be an integer
Explanation
in the example the given prices are 7 1 5 3 6 4
buying stocks on day two having price 1 and selling them on the fifth day having price 6 would give the maximum profit which is 6 - 1
so the output should be 5.
sample input 1
7 1 5 3 6 4
sample output 1
5
sample input 2
1 11 13 21 19
sample output 2
20