Logical Link Control (LLC)

Moumita
Updated on 30-Jul-2019 22:30:26

13K+ Views

The logical link control (LLC) is the upper sublayer of the data link layer of the open system interconnections (OSI) reference model for data transmission. It acts act an interface between the network layer and the medium access control (MAC) sublayer of the data link layer.The LLC sublayer is mainly used for its multiplexing property. It allows several network protocols to operate simultaneously within a multipoint network over the same network medium.LLC Layer in the OSI ModelThe Open System Interconnections (OSI) model is a 7 – layered networking framework that conceptualizes how communications should be done between heterogeneous systems. The ... Read More

Create a Database on Command Line in MySQL

George John
Updated on 30-Jul-2019 22:30:26

4K+ Views

First, you need to open the command prompt. You can open using shortcut windows+R key.The screenshot is as follows −Now type CMD and press OK button −Now the following command prompt would be visible −Now reach the MySQL bin directory. The screenshot is as follows −Following is the query to run MySQL in the command line to create a database −Now you can check the database is created or not using SHOW DATABASES command −mysql> SHOW DATABASES;This will produce the following output −+---------------------------+ | Database                  | +---------------------------+ | bothinnodbandmyisam       ... Read More

How to Spend Bitcoin

Prasanna Kotamraju
Updated on 30-Jul-2019 22:30:26

319 Views

The concept behind the inception of Bitcoin and Block chain was to introduce the world to a network and currency that bring a Distributed network and currency which is transparent and easy to use across multiple platforms. It brought about a radical change to the way we shop and add value as humans. It is a good news for the Bitcoin lovers who use Bitcoin simply as an investment, that the programmability of the coin API actually enables infinite possibilities of uses. Despite that once you earn this crypto, there are multiple options to use this dynamic currency.People who are ... Read More

Get Values of a JProgressBar Component and Display in Console

Arjun Thakur
Updated on 30-Jul-2019 22:30:26

147 Views

Let’s say we have set the following values for JProgressBar −int min = 0; int max = 1000; progressBar = new JProgressBar(min, max);Now, get the above values and display in the Console −int value = progressBar.getValue(); System.out.println("Value = "+value); System.out.println("Minimum = "+progressBar.getMinimum()); System.out.println("Maximum = "+progressBar.getMaximum());The following is an example to get the values of a progress bar component −Examplepackage my; import javax.swing.*; public class SwingDemo extends JFrame {    JProgressBar progressBar;    int i = 0;    SwingDemo() {       int min = 0;       int max = 1000;       progressBar = new JProgressBar(min, ... Read More

Check Whether Both Nibbles of 8-Bit Number Are Equal in 8085

Ankith Reddy
Updated on 30-Jul-2019 22:30:26

732 Views

Here we will see how to check whether two nibbles of a number are same or not.Problem StatementWrite 8085 Assembly language program to check whether upper nibble and lower nibbles are same or not.DiscussionTo check the nibbles, we have to mask at first. So we need to mask the lower nibble and upper nibble and store them into different registers. The upper nibble will be shifted to the right four bits to make it lower nibble. Then we can check both are same or not. If they are same store 00 at F150 location, otherwise store FF at F150 location.InputAddressDataF050FE AddressDataF050AA Flow ... Read More

Get Distinct First Word from a String with MongoDB

Anvi Jain
Updated on 30-Jul-2019 22:30:26

241 Views

To get distinct first word from a string, you can use distinct(). Let us first create a collection with documents −> db.distinctFirstWordDemo.insertOne(    {       "_id": 100,       "StudentName":"John",       "StudentFeature": "John is a good player",       "Subject":"MongoDB"    } ); { "acknowledged" : true, "insertedId" : 100 } > db.distinctFirstWordDemo.insertOne(    {       "_id": 101,       "StudentName":"Carol",       "StudentFeature": "Carol is not a good player",       "Subject":"MongoDB"    } ); { "acknowledged" : true, "insertedId" : 101 }Display all documents from a collection ... Read More

HTML Form Autocomplete Attribute

Ankith Reddy
Updated on 30-Jul-2019 22:30:26

167 Views

The autocomplete attribute of the element allows you to set whether the autocomplete for the form should be on or off. The web browser automatically fills the values if the autocomplete is on. This only happens if the user already entered values before.Following is the syntax −Above, on | off values are to be set for autocomplete to appear or not. Set on if you want the browser to complete the entries based on previously entered values, whereas off doesn’t allow to complete the entries.Let us now see an example to implement the autocomplete attribute of the element ... Read More

Average of Squares of Natural Numbers

Sharon Christine
Updated on 30-Jul-2019 22:30:26

3K+ Views

The average of the square of Natural Number is calculated by adding all the squares up to n natural numbers and then dividing it by the number.SampleAverage of square of first 2 natural numbers is 2.5 ,12 + 22 = 5 => 5/2 = 2.5.There are two methods for calculating this is programming −Using LoopsUsing FormulaCalculating average of square of natural numbers using loopsThis logic works by finding the squares of all natural numbers. By loop from 1 to n finding square of each and adding to the sum variable. Then dividing this sum by n.Program to find the sum ... Read More

HTML DOM Input Week Readonly Property

AmitDiwan
Updated on 30-Jul-2019 22:30:26

131 Views

The HTML DOM Input Week readOnly property sets/returns whether Input Week can be modified or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputWeekObject.readOnlySetting readOnly to booleanValueinputWeekObject.readOnly = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the input week field is readOnly.falseIt defines that the input week field is not readOnly and can be modified.ExampleLet us see an example for Input Week readOnly property − Live Demo Input Week readOnly    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: ... Read More

Find the Mode in a Data Set Using C++

Samual Sam
Updated on 30-Jul-2019 22:30:26

628 Views

This is a C++ program to find the Mode in a data set.AlgorithmsBegin    function insertinset() to insert data in the set.    Create newnode and temp(t) node.    Node to be inserted in the list using newnode.    If head is null then       assign new node to head and increase the count.    During insertion perform insertion sort for sorting data.    If the newnode->data is equal to any of the element present in the set,       then just increment count. EndExample#include using namespace std; struct set // a structure set to declare ... Read More

Advertisements