Ayush Gupta has Published 541 Articles

Program to print 2D shapes in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:25:20

361 Views

In this tutorial, we will be discussing a program to print out 2D shapes.For this we will be provided with the various parameters required to make a shape such as radius, side length and side breadth, etc. And our task is to print a shape accordingly with no thickness.Example Live Demo#include ... Read More

Program to print ‘N’ alphabet using the number pattern from 1 to n in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:17:18

154 Views

In this tutorial, we will be discussing a program to print ‘N’ alphabet using the number pattern from 1 to n.For this we will have to print the english alphabet N. Our task is to determine the size of the letter and print it back using the numbers from 1 ... Read More

Program to multiply two matrices in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:08:51

384 Views

In this tutorial, we will be discussing a program to multiply two matrices.For this we will be given with two matrices and our task is to print the product of two those matrices. The only condition is that the number of columns of first matrix should be equal to the ... Read More

Program to make a histogram of an array in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:05:50

2K+ Views

In this tutorial, we will be discussing a program to make a histogram by the data given inside an array.For this, we will be provided with integer values inside an array. Our task is to plot a histogram keeping the value of both coordinates x and y equal to the ... Read More

Program to invert bits of a number Efficiently in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:02:48

282 Views

In this tutorial, we will be discussing a program to invert bits of a number efficiently.For this we will be given with a non-negative number. Our task is to convert the number in the binary format, invert the binary bits of the number. And then finally print the decimal equivalent ... Read More

Program to Interchange Diagonals of Matrix in C program

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 08:12:16

179 Views

In this tutorial, we will be discussing a program to interchange the diagonals of a given matrix.For this, we will be given with a square matrix of the order n*n. Our task is to interchange the elements in the two diagonals of the matrix and then return the new matrix.Example Live ... Read More

C++ Program to implement t-test

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 11:26:46

680 Views

In this tutorial, we will be discussing a program to implement t-test.The t-test of the student’s T test is used to compare two means and tell if both of them are similar or different. Along with this, t-test also helps to determine how large the differences are to know the ... Read More

C++ Program to implement standard error of mean

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 11:25:42

221 Views

In this tutorial, we will be discussing a program to implement standard error of mean.Standard error of mean is the estimation of sample mean dispersion from population mean. Then it is used to estimate the approximate confidence intervals for the mean.Example#include using namespace std; //calculating sample mean float calc_mean(float ... Read More

C++ program to implement standard deviation of grouped data

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 10:36:51

270 Views

In this tutorial, we will be discussing a program to implement standard deviation of grouped data.For this we will be given with class interval and frequency of the class. Our task is to find the standard deviation of the grouped data.Example#include using namespace std; //finding mean of grouped data ... Read More

C++ program to implement Simpson’s 3/8 rule

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 10:34:00

832 Views

In this tutorial, we will be discussing a program to implement SImpson’s ⅜ rule.Simpson’s ⅜ rule is used for doing numerical integrations. The most common use case of this method is in performing numerical approximations of definite integrals.In this, the parabolas on the graph are used for performing the approximations.Example#include ... Read More

Advertisements