Ayush Gupta has Published 541 Articles

C++ Program to implement Linear Extrapolation

Ayush Gupta

Ayush Gupta

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

643 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

330 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

350 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

330 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

815 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

572 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

647 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

How to prevent moment.js from loading locales with webpack?

Ayush Gupta

Ayush Gupta

Updated on 02-Dec-2019 06:57:27

360 Views

A local file is a .json file that contains a set of translations for the text strings used in a theme template file. A separate local file is used for every language.When you require moment.js in your code and pack it with webpack, the bundle size becomes huge because it ... Read More

Jasmine.js comparing arrays

Ayush Gupta

Ayush Gupta

Updated on 02-Dec-2019 06:55:34

845 Views

Arrays can be compared in 2 ways −They refer to the same array object in memory.They may refer to different objects but their contents are all equal.For case 1, jasmine provides the toBe method. This checks for reference. For example, Exampledescribe("Array Equality", () => {    it("should check for array ... Read More

Advertisements