Ankith Reddy has Published 1070 Articles

What do the id and scope attribute mean in the action elements in JSP?

Ankith Reddy

Ankith Reddy

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

338 Views

These are two attributes that are common to all Action elements: the id attribute and the scope attribute.Id attributeThe id attribute uniquely identifies the Action element and allows the action to be referenced inside the JSP page. If the Action creates an instance of an object, the id value can ... Read More

Print “Hello World” with empty or blank main in C++

Ankith Reddy

Ankith Reddy

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

313 Views

In this problem we will see how to print “Hello World” into the console, but we cannot write anything into the main function.This problem can be solved in two different ways. In the first approach we will create a global variable, then we will store the returned value of printf() ... Read More

Counters in Python?

Ankith Reddy

Ankith Reddy

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

3K+ Views

A Counters is a container which keeps track to how many times equivalent values are added. Python counter class is a part of collections module and is a subclass of dictionary.Python CounterWe may think of counter as an unordered collection of items where items are stored as dictionary keys and ... Read More

8085 program to count the number of ones in contents of register B

Ankith Reddy

Ankith Reddy

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

2K+ Views

In this program, we will see how to count the number of 1’s in an 8-bit number stored in register B.Problem StatementWrite 8085 Assembly language program to count the number of 1s in 8-bit number stored in register B.DiscussionIn this program, we are using the rotate operation to count the ... Read More

8085 Program to Subtract two multi-Byte numbers

Ankith Reddy

Ankith Reddy

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

1K+ Views

Now let us see a program of Intel 8085 Microprocessor. This program is mainly for subtracting multi Byte numbers.Problem Statement:Write 8085 Assembly language program to add two multi-Byte numbers.Discussion:We are using 3-Byte numbers. The numbers are stored into the memory at location 8001H and 8004H. One additional information is stored ... Read More

MySQL select count by value?

Ankith Reddy

Ankith Reddy

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

90 Views

You can use COUNT() function for this. Let us first create a demo tablemysql> create table countValueDemo -> ( -> ShippingDatetime datetime, -> FirstValue int, -> SecondValue int -> ); Query OK, 0 rows affected ... Read More

C++ Program to Implement a Binary Search Algorithm for a Specific Search Sequence

Ankith Reddy

Ankith Reddy

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

369 Views

In this Program we need to implement binary search to find the existence of a search sequence in an array. The time complexity of Binary search is O(log(n)).Required steps and pseudocodesBegin    BinarySearch() function has ‘arr’ the array of data and ‘n’ the number of values, start and end index, ... Read More

8085 program to reverse 8 bit number

Ankith Reddy

Ankith Reddy

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

836 Views

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

How to use action in JSP?

Ankith Reddy

Ankith Reddy

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

929 Views

The setProperty action sets the properties of a Bean. The Bean must have been previously defined before this action. There are two basic ways to use the setProperty action −You can use jsp:setProperty after, but outside of a jsp:useBean element, as given below − ... In this case, the jsp:setProperty ... Read More

Assembly program to transfer the status of switches

Ankith Reddy

Ankith Reddy

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

374 Views

In this program we will see how to transfer the switch values from one port to another using 8085 and 8255 chip.Problem Statement:Write 8085 Assembly language program for interfacing between 8085 and 8255. Here eight switches are connected at port A. Transfer the status of these switches into port B. ... Read More

Advertisements