Ayush Gupta has Published 530 Articles

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

283 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

328 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

945 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

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

Program to find the head start in a race in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:22:43

151 Views

In this problem, we are given two integers that give the head start that is given by A to B and C respectively in a 100-meter race. Our task is to create a program to find the head start in a race in C++.Code Description − Here, there are head ... Read More

Program to find the Hidden Number in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:21:21

401 Views

In this problem, we are an array arr[] consisting of n integer values. Our task is to create a Program to find the Hidden Number in C++.Code description − For an array, the hidden number, is the number which when subtracted from each element of the array gives the sum ... Read More

Program to find the Interior and Exterior Angle of a Regular Polygon in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:20:08

475 Views

In this problem, we are given a number n that denotes the sides of a regular polygon. Our task is to create a Program to find the Interior and Exterior Angle of a Regular Polygon in C++.Problem Description − Here, for the given number of sides, we will find the ... Read More

Program to find the initials of a name in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:19:16

1K+ Views

In the program, we are given a string name that denotes the name of a person. Our task is to create a Program to find the initials of a name in C++.Code Description − Here, we have to find the initials of the name of the person given by the ... Read More

Program to find the largest and smallest ASCII valued characters in a string in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:18:18

2K+ Views

In this problem, we are given a string. Our task is to create a program to find the largest and smallest ASCII valued characters in a string in C++.Code Description − Here, we have a string that consists of both upperCase and lowerCase characters. And we need to find the ... Read More

Program to find the Largest Number using Ternary Operator in C++

Ayush Gupta

Ayush Gupta

Updated on 15-Sep-2020 15:17:13

2K+ Views

In this problem, we are given some numbers. Our task is to create a Program to Find the Largest Number using Ternary Operator in C++.The elements can be −Two NumbersThree NumbersFour NumbersCode Description − Here, we are given some numbers (two or three or four). We need to find the ... Read More

Advertisements