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
Domestic Corporation
A domestic corporation is a business entity that is incorporated and operates within the same country where it was legally formed. These corporations have separate legal status from their owners, can own property, enter contracts, and are subject to the home country's laws and regulations. Key Concepts A domestic corporation is registered with the government and has legal standing as a separate entity from its owners. It must follow domestic laws and policies while benefiting from legal protections and economic incentives offered by the home country. Domestic corporations can be privately or publicly owned and ...
Read MoreConverting digits to word format using switch case in C language
Converting digits to word format is a common programming problem that helps understand switch-case statements and number manipulation. In C, we can convert one or two-digit numbers into their English word equivalents using switch statements. Syntax switch(expression) { case value1: // code block break; case value2: // code block break; default: ...
Read MoreWorking with CSS Display Property
The CSS display property is used to set how an element is displayed on a web page. With this property, you can create grid layouts, flex containers, inline elements, and more. It controls the layout behavior of elements and how they interact with other elements. Syntax selector { display: value; } Possible Values Property Value Description inline Displays an element as an inline element. block Displays an element as a block element. contents Makes the container disappear, making the child elements children ...
Read MoreWrite a C program to find out the largest and smallest number in a series
In C programming, finding the largest and smallest numbers in a series is a fundamental problem that can be solved using conditional statements or arrays. This involves comparing each number with the current maximum and minimum values to determine the extremes. Syntax if (number > max) max = number; if (number < min) min = number; Method 1: Using Four Variables This approach reads four numbers from the user and compares them to find the largest and smallest − #include int main() ...
Read MoreDividend Stripping
Dividend stripping is an investment strategy where investors purchase shares of a company just before it pays dividends and sell them shortly after receiving the dividend payment. This short-term trading technique aims to capture dividend income without holding the stock for extended periods, though it carries significant risks and tax implications. How Dividend Stripping Works The dividend stripping process follows a simple timeline: Purchase shares − Buy shares before the ex-dividend date (the cutoff date to be eligible for dividends) Receive dividend − Collect the dividend payment on ...
Read MoreWrite a C program for time conversions using if and elseif statements
In this tutorial, we will learn how to convert time from 24-hour format (also known as military time) to 12-hour format using C programming with if and else if statements. The 24-hour format uses hours from 00 to 23, while the 12-hour format uses hours from 1 to 12 with AM/PM indicators. Syntax if (condition1) { // statements } else if (condition2) { // statements } else { // statements } Algorithm Start: Step 1: Enter time in 24 hr format ...
Read MoreText Transformation using CSS
The CSS text-transform property is used to control the capitalization of text content. You can transform text to uppercase, lowercase, capitalize the first letter of each word, or leave it unchanged. Syntax selector { text-transform: value; } Possible Values ValueDescription noneNo transformation (default) capitalizeCapitalizes the first letter of each word uppercaseTransforms all text to uppercase lowercaseTransforms all text to lowercase initialSets to default value inheritInherits from parent element Example 1: Uppercase Transformation The following example transforms all text to uppercase − ...
Read MoreHow to print the stars in Diamond pattern using C language?
In C programming, printing a diamond pattern with stars is a common pattern printing problem that helps understand nested loops and spacing logic. A diamond pattern consists of an upper triangular half followed by a lower triangular half. Syntax // Upper half pattern for (j = 1; j
Read MoreThe CSS3 scale3d() Function
The CSS3 scale3d() function is used to scale an element in 3D space along the X, Y, and Z axes. This transform function allows you to resize elements while maintaining their proportions or creating unique scaling effects. Syntax transform: scale3d(x, y, z); Parameters ParameterDescription xScaling factor for the X-axis (horizontal) yScaling factor for the Y-axis (vertical) zScaling factor for the Z-axis (depth) Note: Values greater than 1 increase size, values less than 1 decrease size, and negative values flip the element. Example: Basic 3D Scaling The following example demonstrates ...
Read MoreCoupon Bond
Coupon bonds are fixed-income securities that pay regular interest payments to bondholders through periodic coupon payments. They are debt instruments issued by corporations, governments, and municipalities to raise capital, providing investors with predictable income streams until maturity. Formula The present value (price) of a coupon bond is calculated using the following formula: $$\mathrm{PV = \frac{C_1}{(1+r)^1} + \frac{C_2}{(1+r)^2} + ... + \frac{C_n}{(1+r)^n} + \frac{FV}{(1+r)^n}}$$ Where: PV − Present value (price) of the bond C − Coupon payment r − Market interest rate (discount rate) FV − Face value of the bond n − Number of periods ...
Read More