Sudhir sharma has Published 1218 Articles

C++ program for the Array Index with same count of even or odd numbers on both sides?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 08:27:33

210 Views

Finding the array index with the same count of even or odd number is a number that has equal number of either numbers or odd number on both sides of it i.e. no.s at left = no.s right.Here, we need a few definitions that are related to the concept, Array ... Read More

Array elements with prime frequencies in C++?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 08:22:18

157 Views

Array is a container of elements of same data type.Prime Frequencies means that the number of occurrence of the element of the array is a prime number.So, based on these definitions the problem to find array elements with prime frequencies. We are given a string of array. We have to ... Read More

Array elements that appear more than once in C?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 08:13:33

792 Views

Array is a container of elements of Same data types length needs to be defined beforehand. And an element can appear in any order and any number of times in an array. so in this program we will find elements that appear more than once in an array.Problem description − ... Read More

Array element with minimum sum of absolute differences in C++?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 08:08:14

256 Views

This program is to find minimum absolute difference of the array given we have an array which have distinct element.To learn this concept better let’s rebrush the things that required, Array is a container of elements of same data type. The length of an array needs to be predefined.absolute difference ... Read More

The abs(), labs(), llabs() functions in C/C++

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 08:00:18

773 Views

What are Integer Functions in C Library?Integer functions are those functions which returns the exact value of an integer. C only supports integer values. In this function the nearest integer which is less than or equal to the argument returns to this function.Types of Integer functions −int = abs (int ... Read More

C++ Sum Array Puzzle

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:57:36

151 Views

Array is a data structure that stores multiple elements of the same data type. It can store entire set of values at once. But its length needs to be defined beforehand.In this sum array puzzle, we are given an array A1 of a definite size say n. In order to ... Read More

Write program to shutdown a system in C/C++

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:54:57

224 Views

A program to shutdown the system works on the operating systems like windows, linux or macOS. To shut it off and close all opened applications.What shut down or power off means?Shut down or Power off a computer means removing power from a computer's main components in an organised prescribed way ... Read More

C++ program to find the Area of the Largest Triangle inscribed in a Hexagon?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:52:34

158 Views

Find the area of largest Triangle inscribed in a hexagon we need to learn these figures are and how 1 is inscribed inside other.Triangle is a closed figure with 3 sides which may be equal or different size.Hexagon is a closed figure with 6 sides which may be equal or ... Read More

C++ program to find the Area of the circumcircle of any triangles with sides given?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:41:36

107 Views

To calculate the area of circumcircle of any triangles. We need to learn about basic concepts related to the problem.Triangle − A closed figure with three sides.Circle − A closed figure with infinite number or side or no sides.A circle that encloses other figure inside it is a circumcircle.A circumcircle ... Read More

Angle between two Planes in 3D in C++?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:30:39

161 Views

For learning about the angle between two planes in 3D, we need to learn about planes and angles.Plane is a two-dimensional surface that extends to infinity.Angle is the space in degrees between two lines and surfaces which intersect at a point.So, in this problem we need to find the angle ... Read More

Advertisements