Articles on Trending Technologies

Technical articles with clear explanations and examples

Program to find N-th term of series 1, 3, 12, 60, 360...in C++

Ayush Gupta
Ayush Gupta
Updated on 03-Oct-2020 276 Views

In this problem, we are given a number N. Our task is to create a Program to find N-th term of series 1, 3, 12, 60, 360...in C++.Given Series1, 3, 12, 60, 360, 2520 … N TermsLet’s take an example to understand the problem, Input − N = 6Output − 2520Solution Approach:The general term formula for this one is a bit tricky. So, the increase in the series values is huge. So, there can be a few possibilities factorial or exponentials. So, we will first consider factorial, and on observing we can see the growth half as half of the ...

Read More

Program to find N-th term of series 0, 11, 28, 51, 79, 115, 156, 203, ...In C++

Ayush Gupta
Ayush Gupta
Updated on 03-Oct-2020 221 Views

In this problem, we are given a number N. Our task is to create a program to find N-th term of series 0, 11, 28, 51, 79, 115, 156, 203, … In C++.Problem Description − To find the Nth terms of the series −0, 11, 28, 51, 79, 115, 156, 203, … N-th term.Let’s take an example to understand the problem,Input − N = 5Output − 79Solution Approach:The general formula for nth term of the series is −Tn = 3*(N*N) + 2*N - 5Program to illustrate the working of our solution,#include using namespace std; int findNTerm(int N) { int nthTerm = ( (3*N*N) + 2*N - 5); return nthTerm; } int main() { int N = 9; cout

Read More

Program to find N-th term of series 2, 12, 28, 50, 77, 112, 152, 198, ...in C++

Ayush Gupta
Ayush Gupta
Updated on 03-Oct-2020 191 Views

In this problem, we are given a number N. Our task is to create a program to find N-th term of series 2, 12, 28, 50, 77, 112, 152, 198, …in C++.Problem Description − To find the N-th term of the series.2, 12, 28, 50, 77, 112, 152, 198, ...N termsWe will find a general for the series.Let’s take an example to understand the problem, Input − N = 6Output − 112Solution Approach:Here, the series is increasing in parabolic form, so the general term will be a quadratic equation.So, the general formula for the series isTN = 3*(N*N) + N ...

Read More

Program to find N-th term of series 1 4 15 24 45 60 92... in C++

Ayush Gupta
Ayush Gupta
Updated on 03-Oct-2020 249 Views

In this problem, we are given a number N. Our task is to create a program to find N-th term of series 1 4 15 24 45 60 92... in C++.Problem description − To find the nth term of the series −1, 4, 15, 24, 45, 60, 92, 112 … N termsWe will find the general formula for the series.Let’s take an example to understand the problem, Input − N = 6Output − 60Solution Approach, The general term of the series is based on whether the value of N is even or odd. This type of series is a bit ...

Read More

Program to find N-th term of series 2, 4, 3, 4, 15... in C++

Ayush Gupta
Ayush Gupta
Updated on 03-Oct-2020 317 Views

In this problem, we are given a number N. Our task is to create a program to find N-th term of series 2, 4, 3, 4, 15… in C++.Problem Description − To find the sum of the given series, 2, 4, 3, 4, 15, 0, 14, 16 .... N termsWe will find the formula for the general term of the series.Let’s take an example to understand the problem, Input − N = 9Output − 9Solution Approach:The increase of the values in the series is linear i.e. no square values are in the series. Also, it’s value depends on other factors ...

Read More

Program to find number of solutions in Quadratic Equation in C++

Ayush Gupta
Ayush Gupta
Updated on 01-Oct-2020 445 Views

In this problem, we are given a quadratic equation of type ax2 + bx + c, where a, b and c are constants. Our task is to create a program to find number of solutions in Quadratic Equation in C++.Problem Description − Here, we need to find the numbers of solutions for a quadratic equation that can have at max 2 solutions.Let’s take a few examples to understand the problem, Example 1:Input − 3x2 + 7x + 4Output − 2Explanation − the two solutions of the equation are 1 and 4/3.Example 2:Input − x2 - 4x + 4Output − 1Explanation ...

Read More

Program to find number of squares in a chessboard in C++

Ayush Gupta
Ayush Gupta
Updated on 01-Oct-2020 2K+ Views

In this problem, we are given the size of a chessboard. Our task is to create a program to find number of squares in a chessboard in C++.Problem Description − To find the number of squares in a chessboard. We will have to calculate all the combinations of the square that are inside the chessboard i.e. we will consider squares of side 1x1, 2x2, 3x3 … nxn.Let’s take an example to understand the problem, Input: n = 4.Output: 30Squares of size 1x1 -> 16 Squares of size 2x2 -> 9 Squares of size 3x3 -> 4 Squares of size 4x4 ...

Read More

Program to find Perimeter / Circumference of Square and Rectangle in C++

Ayush Gupta
Ayush Gupta
Updated on 01-Oct-2020 624 Views

In this problem, we are given the side of a square (A) and the length and breadth of a rectangle (L and B). Our task is to create a Program to find Perimeter / Circumference of Square and Rectangle in C++.Problem Description:To find the circumference of a square, we need the side of the square (a). For that, we will use the formula for the perimeter of the square which is 4a.To find the circumference of a rectangle, we need the Length (L) and breadth (B) of the rectangle. For that, we will use the formula for the perimeter of ...

Read More

Explain operation cycle method in estimation of working capital.

Mandalika
Mandalika
Updated on 29-Sep-2020 3K+ Views

Operation cycle method considers total cycle of operations, from raw materials to finished goods, from accounts payable to net cash.The times taken to complete these operations are called operating cycle time.If the operating cycle is long then, requirement of working capital is less, if the operating cycle is less then, requirement of working capital is less.FormulasWorking capital = CGS(E)* D/365 + CBHere, CGS (E) = estimated cost of goods sold, D = days in operating cycle, CB = Cash/Bank balanceRM Stock = PU(E) * Cu * (Hp/365)Here, PU(E) = production units estimated, Cu = cost per unit, HP = holding ...

Read More

Explain Regression analysis method in estimation of working capital.

Mandalika
Mandalika
Updated on 29-Sep-2020 1K+ Views

In regression analysis method, statistical tool is used to calculate working capital.CalculationsWorking capital = Int + m*R            Int = intercept, m = slope, R = RevenueΣy = na + bΣxΣxy = aΣx + bΣ2            Where x = sales, y = working capital, n = yearsAdvantages of this method include −Accurate method for bigger volume of data.It is a proven method.Disadvantages of this method include −Not east to understand.Calculations are complicated as compared to percentage sales method.ExampleBy using following table, calculate the data using regression analysis method, forecasted sales = 500YearSales ...

Read More
Showing 51151–51160 of 61,299 articles
Advertisements