- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
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
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 ... Read More
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
Introduction Linux is an open-source operating system that has gained immense popularity for its stability and security. It is widely used in various fields such as web servers, embedded systems, and supercomputers. One of the key aspects of Linux is its efficient usage of sockets for interprocess communication. Sockets provide a flexible way to establish communication channels between different processes running on the same or different machines connected over a network. What are Sockets? Sockets are a fundamental concept in Linux networking, allowing communication between processes on different computers over a network. In simple terms, a socket is an endpoint ... Read More
Oil circuit breakers (OCBs) are used for performing the following two important functions - Switching of electric supply Protection of electrical system They are called oil circuit breakers because in this type of circuit breakers, insulating/dielectric oil is used for quenching the arc. In this article, we will learn about the basics of oil circuit breakers and their different types. What is an Oil Circuit Breaker? An oil circuit breaker is an electrical switch in which an insulating or dielectric oil is used for arc quenching. As we know, when a fault occurs in the electrical system, we ... Read More
ProblemCreate a B-Tree of order 4 for the following set of key values −1, 12, 8, 2, 25, 6, 14, 28, 17, 7, 52, 16, 48, 68, 3SolutionLet us start constructing B-Tree step by step −Step 1 − As the given order is 4, the first four items go into root and are arranged in sorted order (ascending). Step 2 − Now, we need to insert the fifth element, if we insert the fifth item in root it violates the condition, because the order is 4. Step 3 − So, when 25 arrives pick ... Read More
In secondary Index (Unique value) is created for each record in a data file which is a candidate key. Secondary index is a type of dense index and also called a non clustering index.Secondary mapping size will be small as the two levels DB indexing is used.While creating the index, generally the index table is kept in the primary memory and the main table is kept in secondary memory because of its size.A table may contain thousands of records for this reason the sparse index becomes so large which cannot be handled in primary memory.Also, if we cannot keep the ... Read More
Relational database design (RDD) models’ information and data into a set of tables with rows and columns. Each row of a relation/table represents a record, and each column represents an attribute of data. The Structured Query Language (SQL) is used to manipulate relational databases. The design of a relational database is composed of four stages, where the data are modeled into a set of related tables. The stages are −Define relations/attributesDefine primary keysDefine relationshipsNormalizationRelational databases differ from other databases in their approach to organizing data and performing transactions. In an RDD, the data are organized into tables and all types ... Read More
In electrical engineering, a relay is an electromagnetic or an electronic switch that can automatically operate if any abnormal conditions occur in the circuit. The primary functions of a relay are to monitor the circuit, sense the fault, and initiate the tripping of the circuit if a fault occurs in the system. Read this article to learn the operation of a relay. Let's start with some frequently used terms related to the operation of a relay. Relay Operation Terminology The following are some key terms related to the operation of a relay in power system. Operating Force or Torque - ... Read More
To Continue Learning Please Login
Login with Google