8085 Block movement without overlap

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

984 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

241 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

441 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

Java Program to find if an element is in Stack

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

1K+ Views

The method java.util.Stack.search() is used to find if an element is in the stack or not in Java. This method takes a single parameter i.e. the element that is searched in the stack. It returns the position of the element in the stack(counting from one) if it is available and returns -1 if the element is not available in the stack.A program that demonstrates this is given as follows −Example Live Demoimport java.util.Stack; public class Demo {    public static void main (String args[]) {       Stack stack = new Stack();       stack.push("Apple");       stack.push("Mango"); ... Read More

How to make an impressive PPT presentation for a college activity?

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

110 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

Where can a child learn moral values from?

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

358 Views

Everyone can be inculcated with ethical humane values. They can be taught to us by the parents, teachers, friends and even strangers. But, instilling values in children deserves to have enough time from parents.Ways To Teach Moral Values To ChildrenA good way of teaching moral values is to practice what you preach. This lesson is for the parents, who should not give lectures, rather be a proper example for their children.The Internet is flooded with content serves as a valuable tool also nowadays.A child is known to learn faster and inculcate important social values when raised in a joint family. ... Read More

I want to teach in a school, without doing B.Ed. Will I be recruited?

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

3K+ Views

Nowadays B.Ed has become mandatory in some schools, but that does not mean you will not be recruited in schools if you do not have a B.Ed qualification. Let's find out how you can sail through.Teaching without B.EDYou can get a teaching job in private schools on a temporary basis which will give you teaching experience. However, even the private school administration prefers the one who has proof of his subject knowledge, which is related to B.Ed according to them. You might not be eligible for Government school jobs because to even fight for any government teacher job either you ... Read More

Count number of times value appears in particular column in MySQL?

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

9K+ 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

15K+ 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

How to insert new cell into UITableView using Swift?

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

883 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

Advertisements