Articles on Trending Technologies

Technical articles with clear explanations and examples

Maximum sum and product of the M consecutive digits in a number in C++

Revathi Satya
Revathi Satya
Updated on 22-May-2024 455 Views

In this article, we are given a string representing a number. Our task is to create a program in C++ to find the maximum sum and product of M consecutive digits from the given number. We find all sequences of M consecutive digits and return the maximum sum and product. In mathematics, consecutive numbers are defined as those numbers that follow each other in increasing order from the smallest to the largest, with no missing numbers in between. This problem can be iterated through the string representation of the number, in other words, we consider consecutive segments of the length ...

Read More

Program to find the common ratio of three numbers in C++

Revathi Satya
Revathi Satya
Updated on 22-May-2024 566 Views

In this article, Our task is to create a Program to find the common ratio of three numbers in C++. The common ratio of three numbers is usually the same ratio between two numbers multiplied by each other to get the next one. When a particular number of terms in progression or sequence are involved such as in the geometric progression, a common ratio can be easily found by dividing the term with the preceding term. For instance, if we have three numbers x, y, and z. then the common ratio r can be found as r = x:y = ...

Read More

Program to find sum of series 1 + 2 + 2 + 3 + 3 + 3 + .. + n in C++

Revathi Satya
Revathi Satya
Updated on 22-May-2024 805 Views

In this article, we are given a number n that denotes the nth term of the series. Our task is to create a Program to find sum of series 1 + 2 + 2 + 3 + 3 + 3 + .... + n in C++. This series is different from the other because it include terms that are repeated according to their values. The series 1 + 2 + 2 + 3 + 3 + 3 + … + n consists of repeated terms that are repeated infinitely only by their value. Such illustration 1 comes once, ’2 twice’, ...

Read More

Program to find sum of given sequence in C++

Revathi Satya
Revathi Satya
Updated on 22-May-2024 969 Views

In this article, we are given two numbers n and k representing a series. Our task is to create a program in C++ that finds the sum of the sequence given below: The input cycle is the process of adding up all the numbers in the given sequence to get a single output. The process of recursion is frequently used in mathematics and may be implemented with sequences namely the arithmetic ones ( each term is acquired by adding a constant difference between the previous one) and the geometric sequence ( where each term is multiplied by a constant ratio with the former term ...

Read More

Program to find smallest difference of angles of two parts of a given circle in C++

Revathi Satya
Revathi Satya
Updated on 22-May-2024 399 Views

In this article, we will find the smallest difference in angles between two parts of a given circle using the C++ programming language. Before proceeding to the code, let’s first understand how we can calculate the angles to find the smallest difference between them. We are given the angles of all the pieces of the circle in the array. We have to join the pieces in such a way that the angle difference between the two pieces is the least. Let's go through the input and output scenario for better understanding. Here, we declare an array contianing three different angles ...

Read More

Program to find slope of a line in C++

Revathi Satya
Revathi Satya
Updated on 22-May-2024 2K+ Views

In this article, we will learn how to find the Slope of a line using a program. But before we proceed into the program, let's first understand what the Slope of a line represents in mathematics and how to compute it using its mathematics formula in C++. In mathematics, the Slope of a line is a numerical value that measures the line’s steepness and direction. It indicates the rate at which the line ups or down as you move along it from left to right (or horizontally). Generally, it is denoted by the letter "m". In mathematics, the steepness refers to the slope or gradient of a line. In terms of mathematical, ...

Read More

Difference between Indoor and Outdoor Substations

Manish Kumar Saini
Manish Kumar Saini
Updated on 20-May-2024 6K+ Views

An indoor substation is one in which the entire substation is built inside a building, whereas an outdoor substation is a substation in which the equipment are installed in an open environment. Read this article to understand all the important differences between indoor and outdoor substations. Let us start this article with a brief overview on electrical substations, indoor substations, and output substations. What is a Substation? A substation or electrical substation is an arrangement of electrical equipment for changing the voltage levels of electric supply for transmission, distribution, and utilization purposes. Basically, a substation is used for the following ...

Read More

Types of Power Plants – Advantages and Disadvantages

Manish Kumar Saini
Manish Kumar Saini
Updated on 20-May-2024 5K+ Views

A power plant is a systematic arrangement of electrical equipment used for producing electrical power. In other words, an industrial facility used for producing bulk amount of electric power is called a power plant. Power plant is also called generating station or power station. These power plants are connected to an electrical network, called grid or power grid. A typical power plant contains many electrical and mechanical equipment such as prime mover or turbine, alternators, transformers, circuit breakers, conductors, etc. A source of energy like steam/flowing water is used to rotate the prime mover that in turn drives the alternator ...

Read More

Electrical Substation – Types and Components

Manish Kumar Saini
Manish Kumar Saini
Updated on 20-May-2024 7K+ Views

In electrical power systems, electric power is generated, transmitted, and distributed in the form of alternating current. The electrical power is generated at a power generating station which is located far away from the consumer's load. The generated power is then transmitted and distributed through an electrical network to the load ends. But it is also important to note that power is generated at a lower voltage, transmitted at a higher voltage, and distributed at a lower voltage again. This voltage variation is for many technical and economic reasons. For changing this voltage at many locations in the power system, ...

Read More

Difference between AIS and GIS Substation

Manish Kumar Saini
Manish Kumar Saini
Updated on 20-May-2024 6K+ Views

AIS and GIS are the two most widely used switchgear technology in the field of electrical substations. AIS stands for Air Insulated Switchgear and GIS stands for Gas Insulated Switchgear. A substation in which the insulation between phases is provided by the atmospheric air is called an air insulated substation or AIS substation. On the other hand, a substation in which the insulation within phase and between phases is provided by SF6 gas is known as a gas insulated substation or GIS substation. The primary difference between AIS substation and GIS substation is that an AIS substation uses the atmospheric ...

Read More
Showing 32211–32220 of 61,297 articles
Advertisements