Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

What is the Network ID, Broadcast Address, First Usable IP, or Last Usable IP on the sub-network


that the node 192.168.1.15/26 belongs to?

Find out the bit pattern of hamming code considering data bits=”10110011”. Also explain the



phenomenon of error correction considering the 3rd bit (from the left) got inverted during



transmission.

Comments are lines of code that JavaScript will intentionally ignore. Comments are a great way to leave notes to yourself and to other people who will later need to figure out what that code does.

NOTE: As you write code, you should regularly add comments to clarify the function of parts of your code. Good commenting can help communicate the intent of your code—both for others and for your future self.


Explain sliding window concept used in Data Link Layer protocol. Describe Selective Repeat ARQ



mechanism with diagram considering a case of ACK loss during transmission.

A code is required to print all possible arrangement of combination of an array(of 'k' elements), i.e. the permutation of the result of combination.



Let's say the array has the following elements (k=4):


"alpha", "beta", "gamma", "delta".


Then, we choose r=3


The expected result is as follows:



alpha beta gamma


alpha gamma beta


beta alpha gamma


beta gamma alpha


gamma alpha beta


gamma beta alpha


alpha beta delta


alpha delta beta


beta alpha delta


beta delta alpha


delta alpha beta


delta beta alpha


alpha delta gamma


alpha gamma delta


delta alpha gamma


delta gamma alpha


gamma alpha delta


gamma delta alpha


beta delta gamma


beta gamma delta


delta beta gamma


delta gamma beta


gamma beta delta


gamma delta beta



From the above result above, all unique PERMUTATION of the COMBINATION of r=3 from the array of k=4 elements is completed.



This is confirmed since 4C3 x 3! = 24 lines of results



Use a one-dimensional array to solve the following problem:


Write an application that inputs ten numbers, each between 10 and 100, both


inclusive. Save each number that was read in an array that was initialized to a value


of -1 for all elements. Assume a value of -1 indicates an array is empty. You are then


to process the array and remove duplicate elements from the array containing the


numbers you input. Display the contents of the array to demonstrate that the


duplicate input values were actually removed.



[Note: do not display the array


elements where the value is -1].

We want to store the information of different vehicles. Create a class named Vehicle with two data member named mileage and price. Create its two subclasses


*Car with data members to store ownership cost, warranty (by years), seating capacity and fuel type (diesel or petrol).


*Bike with data members to store the number of cylinders, number of gears, cooling type(air, liquid or oil), wheel type(alloys or spokes) and fuel tank size(in inches)


Make another two subclasses Audi and Ford of Car, each having a data member to store the model type. Next, make two subclasses Bajaj and TVS, each having a data member to store the make-type.


Now, store and print the information of an Audi and a Ford car (i.e. model type, ownership cost, warranty, seating capacity, fuel type, mileage and price.) Do the same for a Bajaj and a TVS bike.


An educational institution has a number of buildings in the campus. Each building has its own independent network system, and all these networks connect to the central server located in the administration building. Which type of topology is this?


First and last digits

Given two numbers M and N, write a program to count of the numbers which have the same first and last digits in the given range M to N(inclusive M and N)


Input

the first line of input will contain a positive integer M.

the second line of input will contain a positive integer N.

output

The output should be an integer denoting the count of the numbers in the range which meet the given condition.


Explanation

For example, if the given number are M is 5and N is 30, the numbers which have the first and last digit equal in the given range(5,6,....29,30) are 5 6 7 8 9 11 and 22. so the output should be 7.


sample input 1

5

30

sample output 1

7

sample input 2

1

10

sample output 2

9


Elements of anti diagonal

Write a program to print the anti-diagonal elements in the given matrix.


input

The first line of input will contain an integer N, denoting the number of rows and columns of the input matrix.

the second line of input will contain N space-separated integers denoting the elements of each row of the matrix.


output

The output should be a list containing the anti-diagonal elements.


explanation

For example, if the given N is 3, and the given matrix is

1 2 3

4 5 6

7 8 9


The anti-diagonal elements of the above matrix are 3 5 7. so the output should be the list

[3, 5, 7]


sample input 1

3

1 2 3

4 5 6

7 8 9

sample output 1

[3, 5, 7]

sample input 2

5

44 71 46 2 15

97 21 41 69 18

78 62 77 46 63

16 92 86 21 52

71 90 86 17 96

sample output 2

[15, 69, 77, 92, 71]


LATEST TUTORIALS
APPROVED BY CLIENTS