8085 Block Movement Without Overlap

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

1K+ Views

In this program, we will see how to move blocks of data from one place to another.Problem StatementWrite 8085 Assembly language program to move a data block. The blocks are assumed to be non-overlapping. The block size is given, the block is starting from X and we have to move it to the location Y.DiscussionThe non-overlapping block movement is relatively an easy task. Here the block is starting at position X, we have to move it to position Y. The location Y is far away from X. So Y > X + block size.In this program, the data are stored ... Read More

Convert Elements in a HashSet to an Array in Java

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

380 Views

First, create a HashSet and elements to it −HashSet hs = new HashSet(); // add elements to the hash set hs.add("B"); hs.add("A"); hs.add("D"); hs.add("E"); hs.add("C"); hs.add("F"); hs.add("K");Let us now convert the above HashSet to an array −Object[] ob = hs.toArray();The following is an example to convert elements in a HashSet to an array −Example Live Demoimport java.util.*; public class Demo { public static void main(String args[]) { // create a hash set HashSet hs = new HashSet(); // add elements ... Read More

8085 Program to Perform Sorting Using Bubble Sort

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

745 Views

In this program we will see how to sort a block of bytes using bubble sorting technique.Problem StatementWrite8085 Assembly language program to sort numbers in ascending order where n number of numbers are stored in consecutive memory locations starting from 8041H and the value of n is available in memory location 8040H (Using BUBBLE sort).DiscussionIn this program we will arrange the numbers in bubble sorting technique. In this sorting technique, it will be executed in different pass. In each pass the largest number is stored at the end of the list. Here we are taking the numbers from location 8041H ... Read More

Make an Impressive PPT Presentation for a College Activity

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

233 Views

Animations and other effects can be used in PowerPoint to add a bit of flair to presentations. Without this, the presentation made in PowerPoint becomes too dull, and at times even very boring.Adding Animations to College PowerPoint PresentationYou will have to select the object that you want to animate. You also have to click on text and/or images to animate.After you have selected the object, select an animation from the “Animations” tab, located in the top menu bar, such that you can modify the animation settings as per your choice.Handle the Slide transitions from the “Transitions” tab.Out of the four ... Read More

Count Number of Times Value Appears in a Particular Column in MySQL

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

12K+ Views

You can use aggregate function count() with group by. The syntax is as follows.select yourColumnName, count(*) as anyVariableName from yourtableName group by yourColumnName;To understand the above syntax, let us create a table. The query to create a table is as follows.mysql> create table CountSameValue -> ( -> Id int, -> Name varchar(100), -> Marks int -> ); Query OK, 0 rows affected (0.70 sec)Insert records in the table using insert command. The query is as follows.mysql> insert into CountSameValue values(1, 'Sam', 67); Query OK, 1 row affected (0.17 sec) mysql> insert into CountSameValue values(2, 'Mike', 87); Query OK, 1 ... Read More

8085 Program to Perform Bubble Sort in Ascending Order

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

21K+ Views

In this program we will see how to sort a block of bytes in ascending order using bubble sorting technique.Problem StatementWrite8085 Assembly language program to sort numbers in ascending order where n number of numbers are stored in consecutive memory locations starting from 8041H and the value of n is available in memory location 8040H (Using BUBBLE sort).DiscussionIn this program we will arrange the numbers in bubble sorting technique. In this sorting technique, it will be executed in different pass. In each pass the largest number is stored at the end of the list. Here we are taking the numbers ... Read More

Insert New Cell into UITableView using Swift

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

1K+ Views

To insert a new cell into UITableView we'll first have to create a table view cell and then add it to the table view using Cell for row at method of Table view.We can create a cell using Storyboard or by creating a nib of class UITableViewCell.In the View controller drag and drop a table view and connect it's outlet to the ViewController class.Let's create a cell in the table view we just created and create it's class, call it CustomCell, and assign the class to cell.Give it an identifier "CustomCell"Add a label in the cell and change it to ... Read More

Equivalent of Java Long in MySQL Variables

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

4K+ Views

The equivalent of Java long in the context of MySQL variables is BigInt.In Java, the long datatype takes 8 bytes while BigInt also takes the same number of bytes.Demo of Java longHere is the demo of Java long −public class JavaLongDemo { public static void main(String[]args) { long kilometer = 9223372036854775807L; System.out.println("The largest positive value for long range:"+kilometer); } }The following is the output −Demo of BigIntLet us see an example of BigInt type in MySQL. The following is the query to ... Read More

What is a Rat Race Junction in Microwaves

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

1K+ Views

Rat-race junction is a microwave device used when there is a need to combine two signals with no phase difference and to avoid the signals that have a path difference.A normal three port Tee junction is taken and 4th port is added to it, to make this rat-race junction. All of these ports are connected in angular ring forms at equal intervals using series or parallel junctions.The mean circumference of total race be 1.5λ and that each of the four ports is separated by a distance of λ/4. The below figure shows the image of a Rat-race junction.Let us consider ... Read More

Convert a Set Into a List in Java

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

279 Views

First, create a Set and add elements −Set s = new HashSet(); s.add("P"); s.add(new Date()); s.add(new Long(898999)); s.add("Q"); s.add("R"); s.add(new Integer(1));Convert the above Set to a List −List l = new ArrayList(s);The following is an example to convert a set into a list in Java −Example Live Demoimport java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Set; import java.util.HashSet; public class Demo {    public static void main(String[] args) {       Set s = new HashSet();       s.add("P");;       s.add(new Date());       s.add(new Long(898999));       s.add("Q");       s.add("R");       ... Read More

Advertisements