Hafeezul Kareem has Published 328 Articles

Digits of element wise sum of two arrays into a new array in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:41:24

274 Views

In this tutorial, we are going to write a program that finds the sun of two array elements and store them into a separate array.We have given two arrays and we need to add the corresponding index elements from the two arrays. If the sum is not single digits, then ... Read More

Digital Root (repeated digital sum) of the given large integer in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:40:39

1K+ Views

In this tutorial, we are going to learn how to find the digital root of a given number.The digital root is the sum of a number of digits (until the sum of the digits becomes a single digit).We are given an integer in string format. And we have to find ... Read More

Different substrings in a string that start and end with given strings in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:39:44

313 Views

In this tutorial, we are going to write a program that finds the total number of substrings that starts and ends with the given strings.We are given one string and two substrings. We need to find the different substrings count that starts and ends with the given two substrings. Let's ... Read More

Different possible marks for n questions and negative marking in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:36:21

350 Views

In this tutorial, we are going to write a program that finds different possible marks for the given n questions with positive and negative marking.Let's say we have 10 questions and each carries 2 marks for correct answers and -1 marks for a negative answer. Our aim is to find ... Read More

Diagonally Dominant Matrix in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:35:32

419 Views

In this tutorial, we are going to write a program that helps us to find whether the given matrix is diagonally dominant or not.The matrix is called a diagonally dominant matrix if the sum of elements in the matrix other than the diagonal element is less than the diagonal matrix. ... Read More

Diagonal of a Regular Pentagon in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:34:25

196 Views

In this tutorial, we are going to learn how to find the diagonal of a regular pentagon.We have to find the length of the diagonal of the regular pentagon using the given side. The length of the diagonal of a regular pentagon is 1.22 * s where s is the ... Read More

Diagonal of a Regular Heptagon in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:31:07

146 Views

In this tutorial, we are going to learn how to find the diagonal of a regular heptagon.We have to find the length of the diagonal of the regular heptagon using the given side. The length of the diagonal of a regular heptagon is 1.802 * s where s is the ... Read More

Determine the position of the third person on regular N sided polygon in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:30:25

134 Views

In this tutorial, we are going to learn how to find the position of a third person on a regular N-sided polygon.We have given a regular N-sided polygon. And there are two persons on two different points already. Our task is to find the third point to place the third ... Read More

Determinant of a Matrix in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:27:40

6K+ Views

In this tutorial, we are going to learn how to find the determinant of a matrix.Let's see the steps to find the determinant of a matrix.Initialize the matrix.Write a function to find the determinant of the matrix.If the size of the matrix is 1 or 2, then find the determinant ... Read More

Deserium Number with examples in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:26:05

129 Views

In this tutorial, we are going to learn about the deserium numbers with examples.The number whose sum of pow(digit, digitsCount) is equal to the given number is called Deserium number.Let's see the steps to find whether the given number is deserium number or not.Initialize the number.Find the digits count of ... Read More

Advertisements