Sunidhi Bansal has Published 1085 Articles

Program to calculate area and perimeter of a rhombus whose diagonals are givenWhat is rhombus in C++?

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 12:46:45

327 Views

What is rhombus?In geometry, rhombus is a quadrilateral with four sides of same length. Rhombus resembles with the shape diamond. If the diagonals of rhombus meet at right angle than it becomes square.Properties of rhombus are −equal sidesOpposite sides are parallel and opposite angles are equal making it parallelogramdiagonals bisects ... Read More

Program for Volume and Surface Area of Cuboid in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 12:36:32

766 Views

What is cuboid?Cuboid is a three-dimensional object with six faces of rectangle shape which means it has sides of different length and breadth. The difference between a cube and cuboid is that a cube has equal length, height and breadth whereas in cuboids these three are not sameProperties of cuboid ... Read More

Program for Volume and Surface Area of Cube in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 12:08:08

892 Views

What is cube?Cube is a three-dimensional object with six faces of square shape which means it has sides of same length and breadth. Cube is the only regular hexahedron with following properties −six faces12 edges8 verticesGiven below is the figure of cubeProblemGiven with the side, the task is to find ... Read More

Program for Surface Area of Octahedron in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 12:02:36

204 Views

What is Octahedron?The word ‘dodecahedron’ is derived from the Greek words where, Octa means ‘Eight’ and hedron specifies ‘faces’. octahedron in geometric is a 3-D platonic or regular solid with eight faces. Like, other figures octahedrons also have properties and that are −6 polyhedron vertices12 polyhedron edges8 equilateral facesGiven below ... Read More

Program for Surface area of Dodecahedron in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 11:58:55

231 Views

What is Dodecahedron?The word ‘dodecahedron’ is derived from the Greek words where, dodeca means ‘twelve’ and hedron specifies ‘faces’. Dodecahedron in geometric is a 3-D platonic or regular solid with twelve flat faces. Like, other figures dodecahedron also have properties and those are −20 polyhedron vertices30 polyhedron edges12 pentagonal faces, ... Read More

Program for factorial of a number in C program

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 11:53:49

775 Views

Given with the number n the task is to calculate the factorial of a number. Factorial of a number is calculated by multiplying the number with its smallest or equal integer values.Factorial is calculated as −0! = 1 1! = 1 2! = 2X1 = 2 3! = 3X2X1 = ... Read More

Program for EMI Calculator in C program

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 11:48:47

837 Views

Given with certain values the program will develop an EMI calculator to generate the needed output. EMI stands for Equated Monthly Installment. So this calculator will generate monthly EMI amount for the user.ExampleInput-: principal = 2000    rate = 5    time = 4 Output-: Monthly EMI is= 46.058037The formula ... Read More

Program for Celsius To Fahrenheit conversion in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 08:30:20

797 Views

Given with temperature ‘n’ in Celsius the challenge is to convert the given temperature to Fahrenheit and display it.ExampleInput 1-: 100.00    Output -: 212.00 Input 2-: -40    Output-: -40For converting the temperature from Celsius to Fahrenheit there is a formula which is given belowT(°F) = T(°C) × 9/5 ... Read More

Product of the nodes of a Singly Linked List

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 08:01:06

388 Views

Given with n nodes the task is to print the product of all the nodes of a singly linked list. The program must traverse all the nodes of a singly linked list starting from the initial node till the NULL is not found.ExampleInput -: 1 2 3 4 5 Output ... Read More

Product of the alternate nodes of linked list

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 07:50:04

200 Views

Given with n nodes the task is to print the product of alternate node in a linked list. The program must only print the product of alternate nodes without actually changing the locations of the nodes.ExampleInput -: 10 20 30 40 50 60 Output -: 15000In the above example, starting ... Read More

Advertisements