8085 Program for Hexadecimal Counter

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

1K+ Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to simulate the hexadecimal counter.Problem StatementWrite 8085 Assembly language program to simulate hexadecimal counter.DiscussionHexadecimal counters in 8085 is similar to the binary counter. There are two different parts. The main counting part and the delay part. We have to define a delay subroutine to generate delay between each number while counting. We are considering that we have some external display which are connected through IO port, that will display the result in hexadecimal form.InputHere we are not providing any input.Flow Diagram ProgramAddressHEX CodesLabelsMnemonicsCommentsF00006, FF MVI ... Read More

Power Function in C/C++

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

1K+ Views

Power function is used to calculate the power of the given number.The pow function find the value of a raised to the power b i.e. ab.Syntaxdouble pow(double a , double b)It accepts a double integers as input and output a double integer as output. It pow() function is defined in math.h package.If you pass an integer to the power function, the function converts it into double data type. But there's an issue with this, sometimes this conversion might store this as a lower double. For example, if we pass 3 and is converted as 2.99 then the square is 8.99940001 ... Read More

Organizationally Unique Identifier

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

2K+ Views

Organizationally unique identifier (OUI) refers to a 24-bit number assigned to a manufacturer or a vendor of a network device or station. They are globally unique identifiers assigned by the Institute of Electrical and Electronics Engineers (IEEE) Registration Authority.OUI are typically used for uniquely identifying a particular device connected to the computer network through derived identifiers like the Medium Access Control (MAC) addresses. MAC addresses are of 6 octets ( 48-bits ). Among these, the first three octets of the addresses constitutes the OUI.A 3-octet OUI is generally represented in hexadecimal notation separated by dashes (for example, 1F – 9E ... Read More

Is TestNG Part of Selenium?

Adiya Dua
Updated on 30-Jul-2019 22:30:26

422 Views

Before we answer if TestNG is a part of selenium or not, let’s have a brief understanding of what actually TestNG.TestNG stands for Test Next Generation. It is an automation testing framework and uses annotations. Annotations are lines of code that control how the method below it will execute. The greatest advantage of TestNG is that we can generate test reports and know the number of scripts passed, failed or skipped. Failed test cases can be run separately using TestNG. Along with it TestNG provides enables us with the ability to execute the test cases by reading the input file ... Read More

Select All Distinct Filename Extensions from a Table in MySQL

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

497 Views

You can use DISTINCT along with SUBSTRING_INDEX() to extract the filename extensions. Let us first create a table−mysql> create table DemoTable    (    Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    FileName text    ); Query OK, 0 rows affected (0.75 sec)Insert records in the table using insert command −mysql> insert into DemoTable(FileName) values('AddTwoValue.java'); Query OK, 1 row affected (0.16 sec) mysql> insert into DemoTable(FileName) values('Image1.png'); Query OK, 1 row affected (0.16 sec) mysql> insert into DemoTable(FileName) values('MultiplicationOfTwoNumbers.java'); Query OK, 1 row affected (0.16 sec) mysql> insert into DemoTable(FileName) values('Palindrome.c'); Query OK, 1 row affected (0.16 sec) mysql> insert ... Read More

Java DatabaseMetaData getIdentifierQuoteString Method with Example

Vikyath Ram
Updated on 30-Jul-2019 22:30:26

379 Views

The getIdentifierQuoteString() method of the DatabaseMetaData interface retrieves and returns the retrieves the string used by the underlying database to quote SQL identifiers.To retrieve the string used by the underlying database to quote SQL identifiers.Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() method of the DriverManager class. Pass the URL the database and, user name, password of a user in the database, as String variables.Get the DatabaseMetaData object with respect to the ... Read More

Query Soundex in MySQL

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

238 Views

The SOUNDEX() returns a soundex string. Two strings that sound almost the same should have identical soundex stringsTo query soundex() in MySQL, you can use the below syntax −select *from yourTableName where soundex(yourValue)=soundex(yourColumnName);Let us first create a table −mysql> create table DemoTable    (    Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    FirstName varchar(20),    LastName varchar(20)    ); Query OK, 0 rows affected (0.28 sec)Insert some records in the table using insert command −mysql> insert into DemoTable(FirstName, LastName) values('Adam', 'Smith'); Query OK, 1 row affected (0.04 sec) mysql> insert into DemoTable(FirstName, LastName) values('David', 'Miller'); Query OK, 1 ... Read More

Set All Values at Once Using Model in JProgressBar with Java

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

118 Views

The getModel() method is used to set all the values at once for a JProgressBar −int newVal = 5; int newMin = 0; int newMax = 100; progressBar.getModel().setRangeProperties(newVal, 0, newMin, newMax, true);The following is an example to set all the values at once using the model in a progress bar −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, max);       int newVal = 5; ... Read More

8085 Program for Pulse Waveform

Chandu yadav
Updated on 30-Jul-2019 22:30:26

4K+ Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to generate pulse waveform.Problem Statement:Write 8085 Assembly language program to generate continuous square wave.DiscussionTo generate square wave with 8085, we will rotate 10101010 (AAH) continuously. We have to send D0 as output. We will mask the accumulator content by 01H. If this is 0, then output will be 0, if it is 1, output will be 1, thus the pulse will be generated.InputNo input is given in this caseFlow Diagram programAddressHEX CodesLabelsMnemonicsComments800016, AA MVI D, AAHLoad 10101010 into D80027AROTATEMOV A, DLoad D to A800307 RLCRotate A ... Read More

Query All Items in MongoDB

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

352 Views

To query all items, use find(). Let us first create a collection with documents −> db.queryAllItemsDemo.insertOne({"StudentDetails":{"StudentName":"John", "StudentSubject":["MongoDB", "MySQL"], "StudentSubjectPrice":[4000, 6000]}, "OtherDetails":{"UserAge":29, "UserCountryName":"US"}}); {    "acknowledged" : true,    "insertedId" : ObjectId("5cef74ecef71edecf6a1f69f") }Display all documents from a collection with the help of find() method −> db.queryAllItemsDemo.find().pretty();This will produce the following output −{    "_id" : ObjectId("5cef74ecef71edecf6a1f69f"),    "StudentDetails" : {       "StudentName" : "John",       "StudentSubject" : [          "MongoDB",          "MySQL"       ],       "StudentSubjectPrice" : [          4000,         ... Read More

Advertisements