Arjun Thakur has Published 1025 Articles

8085 program to find nth power of a number

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:25

794 Views

In this program we will see how to find nth power of a number.Problem StatementWrite 8085 Assembly language program to find nth power of a number. The base is stored at location 8000H, and the exponent is stored at 8001H. Store the result at 8002H.DiscussionIn 8085, we cannot perform the ... Read More

Adding/ concatenating text values within a MySQL SELECT clause?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:25

2K+ Views

To add/ concatenate text values within a select clause, you can use concat() function.Let us create a tablemysql> create table ConcatenatingDemo -> ( -> UserId int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> UserName varchar(20), -> UserCountryName varchar(20) ... Read More

8085 Program to check for two out of five code

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:25

818 Views

Now let us see a program of Intel 8085 Microprocessor. This program will help us to check a given value is a valid 2 out of 5 code or not.Problem Statement:Write 8085 Assembly language program to check whether a given number is 2 out of five code or not. The ... Read More

8085 program to reverse 16 bit number

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:25

1K+ Views

In this program we will see how to reverse the digits of a 16-bit number using 8085.Problem StatementWrite 8085 Assembly language program to reverse a 16-bit number stored at location 8000H-8001H. Also, store the result at 8050H – 8051H.DiscussionHere the task is too simple. There are some rotating instructions in ... Read More

How to use action in JSP?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:25

1K+ Views

The getProperty action is used to retrieve the value of a given property and converts it to a string, and finally inserts it into the output.The getProperty action has only two attributes, both of which are required. The syntax of the getProperty action is as follows − ... Following table ... Read More

How to loop through collections with a cursor in MongoDB?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:25

2K+ Views

Following is the syntax to loop through collections with cursorvar anyVariableName1; var anyVariableName2= db.yourCollectionName.find(); while(yourVariableName2.hasNext()) {    yourVariableName1= yourVariableName2.next(); printjson(yourVariableName1); };Let us create a collection with documents. Following is the query> db.loopThroughCollectionDemo.insertOne({"StudentName":"John", "StudentAge":23}); {    "acknowledged" : true,    "insertedId" : ObjectId("5c9ca81f2d6669774125247f") } > db.loopThroughCollectionDemo.insertOne({"StudentName":"Larry", "StudentAge":21}); {    "acknowledged" : ... Read More

MySQL query to combine two columns in a single column?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:25

2K+ Views

You can use COALESCE() function for this. In the COALESCE() function, it returns the first NON NULL value from the column. To understand the concept, let us first create a demo tablemysql> create table combineTwoColumnsDemo    -> (    -> UserId int,    -> UserName varchar(20),    -> UserAge int ... Read More

8085 Program to simulate decimal down counter

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:25

671 Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to simulate the decimal down counter.Problem Statement:Write 8085 Assembly language program to simulate decimal down counter.Discussion:In this section we are simulating the decimal down counter. Here the counter will count 100 decimal numbers ... Read More

How to Show and hide a View with a slide up/down animation in android?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:24

2K+ Views

This example demonstrate about how to Show and hide a View with a slide up/down animation in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to ... Read More

How do I use tabHost for Android?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:24

676 Views

Before getting into example we should know what is tab host in android. Tab host holds set of tabs. Each tab contains either fragment or activity as per project specification. The user can scroll tabs from left to right or right to left.This example demonstrates how to use tab host ... Read More

Advertisements