Anvi Jain has Published 569 Articles

8085 program to multiply two 8 bit numbers

Anvi Jain

Anvi Jain

Updated on 26-Oct-2023 03:34:36

35K+ Views

In this program we will see how to multiply two 8-bit numbers using 8085 microprocessor.Problem StatementWrite 8085 Assembly language program to multiply two 8-bit numbers stored in memory location and store the 16-bit results into the memory.DiscussionThe 8085 has no multiplication operation. To get the result of multiplication, we should ... Read More

Generate a random array of integers in Java

Anvi Jain

Anvi Jain

Updated on 12-Sep-2023 03:29:56

39K+ Views

In order to generate random array of integers in Java, we use the nextInt() method of the java.util.Random class. This returns the next random integer value from this random number generator sequence.Declaration − The java.util.Random.nextInt() method is declared as follows −public int nextInt()Let us see a program to generate a ... Read More

How to search in array of object in MongoDB?

Anvi Jain

Anvi Jain

Updated on 10-Sep-2023 07:55:51

32K+ Views

To search the array of object in MongoDB, you can use $elemMatch operator. This operator allows us to search for more than one component from an array object.To understand the above concept, let us create a collection with the document. The query to create a collection with a document is ... Read More

How to get the datatype of MySQL table columns?

Anvi Jain

Anvi Jain

Updated on 02-Sep-2023 12:13:53

48K+ Views

You can get the MySQL table columns data type with the help of "information_schema.columns".The syntax is as follows −SELECT DATA_TYPE from INFORMATION_SCHEMA.COLUMNS where table_schema = 'yourDatabaseName' and table_name = 'yourTableName'To understand the above syntax, let us first create a table −mysql> create table DataTypeDemo −> (    −> Id int, ... Read More

List of Keywords in Python Programming

Anvi Jain

Anvi Jain

Updated on 11-Aug-2022 11:37:47

1K+ Views

Keywords in Python are reserved words. You cannot use them as variable name, function name, class name, etc. Following are the Keywords in Python − Keywords in Python FALSE await else import pass None break except in ... Read More

How to draw sine waves with HTML5 SVG?

Anvi Jain

Anvi Jain

Updated on 16-Dec-2021 10:30:46

1K+ Views

To draw sine waves with SVG, use the following that closely approximates half of a sine wave. I have used a cubic-bezier approximation. Use the element.Example           SVG                     HTML5 SVG Sine Waves                           Output

C++ Program to Implement the RSA Algorithm

Anvi Jain

Anvi Jain

Updated on 17-May-2021 06:43:38

18K+ Views

RSA is an asymmetric cryptography algorithm which works on two keys-public key and private key.AlgorithmsBegin    1. Choose two prime numbers p and q.    2. Compute n = p*q.    3. Calculate phi = (p-1) * (q-1).    4. Choose an integer e such that 1 < e < ... Read More

Achieve Responsiveness for background image with CSS

Anvi Jain

Anvi Jain

Updated on 04-Jul-2020 06:10:57

197 Views

You can try to run the following code to achieve responsiveness for background image with CSS −ExampleLive Demo                          div {             width: 100%;             height: ... Read More

ORDERBY word in MySQL?

Anvi Jain

Anvi Jain

Updated on 03-Jul-2020 12:01:47

144 Views

To order by word in MySQL, you need to use ORDER BY FIELD(). Let us first create a table −mysql> create table DemoTable (    StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,    StudentFirstName varchar(20),    StudentFavouriteSubject varchar(100) ); Query OK, 0 rows affected (0.52 sec)Insert some records in the ... Read More

Create a transition effect on hover pagination with CSS

Anvi Jain

Anvi Jain

Updated on 03-Jul-2020 08:06:04

542 Views

To create a transition effect on hover pagination, use the transition property.ExampleYou can try to run the following code to add transition effect −Live Demo                    .demo {             display: inline-block;         ... Read More

Advertisements