Arjun Thakur has Published 1025 Articles

8085 program for hexadecimal counter

Arjun Thakur

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 ... Read More

How to select all distinct filename extensions from a table of filenames in MySQL?

Arjun Thakur

Arjun Thakur

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

469 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 ... Read More

How can we get the values of a JProgressBar Component and display in Console?

Arjun Thakur

Arjun Thakur

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

123 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 ... Read More

8085 program to count total odd numbers in series of 10 numbers

Arjun Thakur

Arjun Thakur

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

2K+ Views

In this program we will see how to count number of odd numbers in a block of elements.Problem StatementWrite 8085 Assembly language program to count number of odd numbers in a block of data, where the block size is 10D. The block is starting from location 8000H.DiscussionThe Odd Even checking ... Read More

How to set Raised and Lowered EtchedBorder for components in Java?

Arjun Thakur

Arjun Thakur

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

272 Views

To set raised EtchedBorder −Border raisedBorder = new EtchedBorder(EtchedBorder.RAISED);To set lowered EtchedBorder −Border loweredBorderEtched = new EtchedBorder(EtchedBorder.LOWERED);Now, set both the borders for components −JButton raisedButton = new JButton("Raised Border"); raisedButton.setBorder(raisedBorder); JLabel loweredLabel = new JLabel("Lowered Border Etched"); loweredLabel.setBorder(loweredBorderEtched);The following is an example to set raised and lowered EtchedBorder for components ... Read More

Counting same strings in a new MySQL column?

Arjun Thakur

Arjun Thakur

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

138 Views

Use COUNT() for this. Let us first create a table −mysql> create table DemoTable    (    StudentFirstName varchar(20)    ); Query OK, 0 rows affected (0.53 sec)Insert records in the table using insert command −mysql> insert into DemoTable values('Larry'); Query OK, 1 row affected (0.13 sec) mysql> insert into ... Read More

8085 program to find the sum of series of even numbers

Arjun Thakur

Arjun Thakur

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

2K+ Views

In this program we will see how to find the sum of all even numbers.Problem StatementWrite 8085 Assembly language program to find sum of all even numbers stored in an array. The size of the array is stored at location F100; the numbers are stored from memory location F101 onwards. ... Read More

8085 program to print the table of input integer

Arjun Thakur

Arjun Thakur

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

604 Views

In this program we will see how to generate table of an integer.Problem StatementWrite 8085 Assembly language program to generate a table of input integer. The number is stored at F050, and the table will be stored at F051 onwards.DiscussionTable generation is basically the multiplication table creation. We are taking ... Read More

8086 program to determine sum of corresponding elements of two arrays

Arjun Thakur

Arjun Thakur

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

2K+ Views

Here we will see how to find sum of two array elements and store result into memory.Problem StatementWrite 8086 Assembly language program to find summation of two arrays stored at 501 onwards and 601 onwards. The size of array is stored at location 500. After calculating the sum results are ... Read More

How to count the distinct column in MySQL?

Arjun Thakur

Arjun Thakur

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

204 Views

You need to use GROUP BY for this. Let us first create a table −mysql> create table DemoTable    (    StudentFirstName varchar(20)    ); Query OK, 0 rows affected (0.74 sec)Insert records in the table using insert command −mysql> insert into DemoTable values('John'); Query OK, 1 row affected (1.34 ... Read More

Advertisements