Ayush Gupta has Published 541 Articles

Program to find sum of series 1 + 1/2 + 1/3 + 1/4 + .. + 1/n in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 17:39:13

3K+ Views

In this problem, we are given a number n. Our task is to create a program to find sum of series 1 + 1/2 + 1/3 + 1/4 + .. + 1/n in C++.Code description − Here, we will find the sum of the series 1 + 1/2 + 1/3 ... Read More

Program to find the angles of a quadrilateral in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 17:31:28

169 Views

In this problem, we are given a value d, which is the common difference of AP. This AP is all the angles of a quadrilateral. Our task is to create a program to find the angles of a quadrilateral in C++.Problem Description − Here, the angles of the quadrilateral are ... Read More

Program to find the Area and Perimeter of a Semicircle in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 17:30:28

213 Views

In this problem, we are given a value that denotes the radius of a semicircle. Our task is to create a program to find the Area and Perimeter of a Semicircle in C++.SemiCircle is a closed figure that is half of a circle.Let’s take an example to understand the problem, ... Read More

Program to find the Area of a Parallelogram in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 09:03:01

270 Views

In this problem, we are given two values that denote the base and height of a parallelogram. Our task is to create a Program to find the Area of a Parallelogram in C++.Parallelogram is a four side closed figure that has opposite sides equal and parallel to each other.Let’s take ... Read More

Program to find the Break Even Point in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 09:00:07

157 Views

In this problem, we are given the three variables that denote total monthly expenditure (E), selling price (S) of the product, overhead maintenance (M) on each product. Our task is to create a program to find the Break Even Point in C++.Break-Even Point is the total number of products that ... Read More

Program to find the Centroid of the Triangle in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 08:59:03

320 Views

In this problem, we are given a 2D array that denotes coordinates of three vertices of the triangle. Our task is to create a program to find the Centroid of the Triangle in C++.Centroid of a triangle is the point at which the three medians of the triangles intersect.Median of ... Read More

Program to find the count of coins of each type from the given ratio in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 08:57:48

198 Views

In this problem, we are given four numbers that define the totalPrice and the ratio of coins of 1 Rs, 50 paise, 25 paise in the bag. Our task is to create a program to find the count of coins of each type from the given ratio in C++.Code description ... Read More

Program to find the diameter, cycles and edges of a Wheel Graph in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 08:55:31

250 Views

In this problem, we are given a number that denotes the number of vertices of a Wheel Graph. Our task is to create a Program to find the diameter, cycles and edges of a Wheel Graph in C++.Problem description − Here, we need to find the number of cycles, number ... Read More

Program to find the Discount Percentage in C++

Ayush Gupta

Ayush Gupta

Updated on 16-Sep-2020 08:52:02

659 Views

In this problem, we are given two numbers that define the marked price(M) and selling price(S) of a certain product. Our task is to create a program to find the Discount Percentage in C++.Discount is the amount that is deducted from the actual price (marked price) on a product.The formula ... Read More

Program to find the mid-point of a line in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:24:12

805 Views

In this problem, we are given two points A and B, starting and ending point of a line. Our task is to create a program to find the mid-point of a line in C++.Problem Description − Here, we have a line with starting and ending points A(x1, y1) and B(x2, ... Read More

Previous 1 ... 7 8 9 10 11 ... 55 Next
Advertisements