Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
C program to convert decimal fraction to binary fraction
Converting decimal fractions to binary involves two separate processes: converting the integer part and the fractional part. The integer part uses division by 2, while the fractional part uses multiplication by 2. Syntax // For integer part: repeatedly divide by 2, collect remainders // For fractional part: repeatedly multiply by 2, collect integer parts Algorithm For Integer Part (25) − Step 1 − 25 / 2 Rem: 1, Quo: 12 Step 2 − 12 / 2 Rem: 0, Quo: 6 Step 3 − 6 / 2 Rem: 0, Quo: 3 Step 4 ...
Read MoreHow to create Icon Bar with CSS?
To create Icon Bar with CSS, you need to set the icons using Font Awesome or similar icon libraries. An icon bar provides easy navigation with visual icons. Here, we will create both horizontal and vertical icon bars using Font Awesome icons. Syntax .icon-bar { width: value; background-color: color; overflow: auto; /* for horizontal */ } .icon-bar a { display: block; /* for vertical */ float: left; /* for horizontal */ text-align: ...
Read MoreC program to compute the polynomial regression algorithm
Polynomial regression is a form of regression analysis used to model the relationship between an independent variable x and dependent variable y as an nth degree polynomial. This technique extends linear regression to capture non-linear relationships in data. Syntax y = a0 + a1*x + a2*x² + a3*x³ + ... + an*xⁿ Where a0, a1, a2, ..., an are coefficients to be determined using least squares method. Algorithm The polynomial regression algorithm works by − Setting up a system of normal equations using least squares method Creating coefficient matrix from input ...
Read MoreNet Exports Formula
Net exports represent the difference between a country's total exports and total imports, serving as a crucial indicator of economic health and international trade balance. This measure helps determine whether a nation has a trade surplus (positive net exports) or trade deficit (negative net exports), providing insights into the country's economic competitiveness and self-reliance. Formula The net exports formula is calculated as: $$\mathrm{Net\ Exports = Total\ Exports - Total\ Imports}$$ Where: Total Exports − The monetary value of all goods and services sold to other countries Total ...
Read MoreC program to compute linear regression
Linear regression is a statistical method used to find the relationship between two variables by fitting a linear equation to observed data. In C programming, we can implement linear regression to find the slope (m) and y-intercept (c) of the line that best fits the data points. Syntax y = mx + c where: m = (n*Σ(xy) - Σ(x)*Σ(y)) / (n*Σ(x²) - (Σ(x))²) c = (Σ(y)*Σ(x²) - Σ(x)*Σ(xy)) / (n*Σ(x²) - (Σ(x))²) Linear Regression Formula The linear regression algorithm uses the least squares method to calculate the slope (m) and intercept (c) − ...
Read MoreEffect of Color Property on Borders and Outlines in CSS
We can define the border color and outline color for an element. Unlike borders, outline doesn't take up any space. The border-color property is used to set an element's border color and the outline-color property is used to set its outline color. Syntax /* for setting border-color */ selector { border-color: value; } /* for setting outline-color */ selector { outline-color: value; } Possible Values ValueDescription color nameNamed colors like red, blue, green hexHexadecimal values like #FF0000 rgb()RGB values like rgb(255, 0, 0) transparentMakes ...
Read MoreNet Domestic Product
Net Domestic Product (NDP) refers to the net monetary value of all commodities and services produced within the national borders of a country in a given period of time. It is calculated by subtracting depreciation from the Gross Domestic Product (GDP). NDP provides a more accurate measure of economic output as it accounts for the wear and tear of capital assets like machinery, housing, and vehicles. Formula The Net Domestic Product is calculated using the following formula: $$\mathrm{NDP = GDP - Depreciation}$$ Where: NDP − Net Domestic Product GDP − Gross ...
Read MoreC program to convert roman numbers to decimal numbers
Roman numerals are a numeral system that originated in ancient Rome and remained the usual way of writing numbers throughout Europe. In C programming, converting roman numbers to decimal requires understanding the basic roman symbols and their subtraction rule. Roman Numeral System The basic roman numerals and their decimal values are − Roman Decimal Roman Decimal I 1 L 50 V 5 C ...
Read MoreGrouping Selectors in CSS
CSS grouping selectors allow you to apply the same styles to multiple elements at once by separating selectors with commas. This technique reduces code repetition and makes your CSS more maintainable and efficient. Syntax selector1, selector2, selector3 { property: value; } How Grouping Selectors Work When you separate selectors with commas, the CSS rules apply to all the specified elements. You can group any type of selectors including element selectors, class selectors, ID selectors, and attribute selectors. Example 1: Grouping Element Selectors The following example applies the same ...
Read MoreNature of Partnership
A partnership is a business arrangement where two or more individuals come together to jointly own and operate a business, sharing profits, losses, and responsibilities. According to the Indian Partnership Act of 1932, a partnership is defined as "the relation between persons who have agreed to share the profits of a business carried on by all or any of them acting for all." Understanding the nature of partnerships is crucial for entrepreneurs considering this business structure. Essential Characteristics of Partnership Multiple Persons Requirement A partnership must have at least two individuals with a common business objective. ...
Read More