Ayush Gupta has Published 530 Articles

C++ program to implement standard deviation of grouped data

Ayush Gupta

Ayush Gupta

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

365 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

1K+ 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

C++ Program to implement Linear Extrapolation

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 10:31:42

887 Views

In this tutorial, we will be discussing a program to implement Linear Extrapolation.Extrapolation is defined as a process in which the required value for a certain function is beyond the lower or the upper limits of the function definition.In the case of Linear Extrapolation, the value beyond the scope is ... Read More

C++ program to implement Inverse Interpolation using Lagrange Formula

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 10:28:57

431 Views

In this tutorial, we will be discussing a program to implement Inverse Interpolation using Lagrange formula.Inverse Interpolation is defined as the method of finding the value of an independent variable from the given value of dependent value lying between two tabulated set of values for an unknown function.Example#include using ... Read More

C++ program to implement ASCII lookup table

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 10:25:57

429 Views

In this tutorial, we will be discussing a program to implement ASCII lookup table.ASCII lookup table is a tabular representation that provides with the octal, hexadecimal, decimal and HTML values of a given character.The character for the ASCII lookup table includes alphabets, digits, separators and special symbols.Example#include #include ... Read More

C++ program to implement Collatz Conjecture

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 10:23:59

428 Views

In this tutorial, we will be discussing a program to implement Collatz Conjecture.For this, we will be given with a number n and we have to find out whether it can be converted to 1 using two operations −If n is even, n is converted to n/2.If n is odd, ... Read More

C++ program to get the Sum of series: 1 – x^2/2! + x^4/4! -…. upto nth term

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 10:20:32

995 Views

In this tutorial, we will be discussing a program to get the sum of series 1 – x^2/2! + x^4/4! … upto nth term.For this we will be given with the values of x and n. Our task will be to calculate the sum of the given series upto the ... Read More

C++ program to generate random alphabets

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 10:17:22

874 Views

In this tutorial, we will be discussing a program to generate random alphabets.For this, we will have a fixed size of array/string and use the rand() function to generate a random string of alphabets.Example#include using namespace std; const int MAX = 26; //generating a string of random alphabets string ... Read More

C++ program to generate CAPTCHA and verify user

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 10:13:06

802 Views

In this tutorial, we will be discussing a program to generate CAPTCHA and verify user.For this, we will provide the user with a random string and ask him to reenter the same string. Then it has to be checked if the given and the input string matches.The CAPTCHA should be ... Read More

Difference between res.send and res.json in Express.js

Ayush Gupta

Ayush Gupta

Updated on 02-Dec-2019 07:00:51

2K+ Views

Whenever an Express application server receives an HTTP request, it will provide the developer with an object, commonly referred to as res. For example, Exampleapp.get('/test', (req, res) => {    // use req and res here })The res object basically refers to the response that'll be sent out as part ... Read More

Advertisements