in,a hotel they are 'n' rooms for odd rooms the bulb is on for even room bulb is off..
on is represented as 1
off is represented as 0
n = 5
output
1 0 1 0 1
0 1 0 1 0
1 0 1 0 1
0 1 0 1 0
1 0 1 0 1
n = 6
output
1 0 1 0 1 0
0 1 0 1 0 1
1 0 1 0 1 0
0 1 0 1 0 1
1 0 1 0 1 0
0 1 0 1 0 1
a) what are the difference between classful addressing and classless addressing in IPv4?
b) what are the difference between routing and forwarding?
c) compare unicast and multicast routing protocols.
a) compare the TCP header and the UDP header. List the fields India the TCP header that are not present in UDP header. Give the reason for their absence.
b) what is cognation? Explain any one of the cognation control mechanism.
6. a) what is the difference between a port address,a logical address,and a physical address?
b) compare OSI model and TCP/IP protocol suit.
A
B B
C C
B B
A
can i get code for this please
hollow diamond using 2*n-1 rows and 2*n-1 columnsIs digital or analog signal is preferable (list reason )?
2. Explain line coding schemes with graphical representation.
3. Explain the reasons behind transmission impairments.
4. What is "signal encoding Techniques"?
5. Compare and contrast a circuit-switched network and datagram networks.
Sample Input 1
5
1
10
4
3
2
Sample Output 1
3
Sample Input 2
4
2
3
5
7
Sample Output 2
2
can i get exact code for this to print first prime number
Calculate sin x using the following formula:
where t0 = x. To calculate the other terms in the sum, we use the following formula:
where ti is an arbitrary term, and ti+1 is the next term. For example:
A company is planning to provide an extra discount to it's customers. Every order has an order ID associated with it which is a sequence of digits. The discount is calculated as the count of unique repeating digits in the order ID. Write a code to find the discount percentile given to the customers.
A company is planning to provide an extra discount to it's customers. Every order has an order ID associated with it which is a sequence of digits. The discount is calculated as the count of unique repeating digits in the order ID. Write a code to find the discount percentile given to the customers.