Chandu yadav has Published 1163 Articles

MySQL query to divide column by 100?

Chandu yadav

Chandu yadav

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

727 Views

Let us first create a table −mysql> create table DemoTable    (    Number float    ); Query OK, 0 rows affected (0.47 sec)Insert records in the table using insert command −mysql> insert into DemoTable values(1000); Query OK, 1 row affected (0.18 sec) mysql> insert into DemoTable values(1); Query OK, ... Read More

8085 program for pulse waveform

Chandu yadav

Chandu yadav

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

3K+ 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 ... Read More

How to create a JSpinner in Java with values as numbers?

Chandu yadav

Chandu yadav

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

175 Views

Use SpinnerNumberModel to create a spinner with value as numbers −SpinnerModel value = new SpinnerNumberModel(10, 0, 20, 1);Now set the values −JSpinner spinner = new JSpinner(value);The following is an example to create a JSpinner with values as numbers −Examplepackage my; import java.awt.Font; import javax.swing.*; public class SwingDemo {    public ... Read More

HTML DOM Object name Property

Chandu yadav

Chandu yadav

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

112 Views

The HTML DOM Object name property sets or returns the value of the name attribute. However, the name attribute only sets the name.Following is the syntax to set the object name property −obj.nameFollowing is the syntax to return the object name property −obj.name = nameLet us now see an example ... Read More

8085 program to determine if the number is prime or not

Chandu yadav

Chandu yadav

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

2K+ Views

In this program we will see how to check a number is prime or not using 8085.Problem StatementWrite 8085 Assembly language program to check whether a given number is prime or not.DiscussionHere the approach is little bit different. We are actually counting the number of unique factors. For prime numbers ... Read More

How to display a large component within a smaller display area in Java?

Chandu yadav

Chandu yadav

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

83 Views

To display a large component in a smaller display area, use JScrollPane, so that it’s easier for user to scroll through the component. The following is an example to display large component within a smaller display area in Java −Examplepackage my; import java.awt.BorderLayout; import java.awt.Dimension; import javax.swing.Box; import javax.swing.JButton; import ... Read More

How to concatenate fields in MySQL?

Chandu yadav

Chandu yadav

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

282 Views

To concatenate fields in MySQL, you can use GROUP_CONCAT() along with GROUP BY. Let us first create a table −mysql> create table DemoTable    (    StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,    StudentName varchar(30),    StudentScore int    ); Query OK, 0 rows affected (0.51 sec)Insert records in ... Read More

HTML canvas shadowOffsetY Property

Chandu yadav

Chandu yadav

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

71 Views

The shadowOffsetY property of the HTML canvas is used to set the vertical distance of the shadow from the shape. The element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of the canvas i.e. height ... Read More

8085 program for Binary search

Chandu yadav

Chandu yadav

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

1K+ Views

Here we will see how to perform binary search in 8085.Problem Statement:Write 8085 Assembly language program to perform binary search on a set of data stored at location F110 to F119. The key is located at F100.DiscussionTo perform binary search, the array must be sorted. We are taking the lower ... Read More

8086 program to determine cubes of numbers in an array of n numbers

Chandu yadav

Chandu yadav

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

1K+ Views

In this program we will see how to find the cubes of n numbers stored in an array.Problem StatementWrite 8086 Assembly language program to calculate cubes of each numbers stored in an array of size n. The array size is stored at location offset 600, and Numbers are stored at ... Read More

Advertisements