A Triangle is made up of three vertices or points in which three line segments are joined together. Here is the snippet. Program for Translation… Read More
2D Translation can be defined as a way of shifting an object from one point to another in a straight path. Here is the C… Read More
Java supports encapsulation which is one of the essential features of OOPs. Encapsulation can be defined as a way of binding attributes and behaviour together… Read More
The program simply prints factorial of a given number. A factorial is calculated by multiplying all the numbers starting from 1 to all the way… Read More
C supports a special header file named graphics.h that provides various functions through which one can draw different shapes such as line, circle, triangle, and… Read More
Using translation transformation, an illusion of moving object can be achieved. Here's the simple code to show a man is walking in the rain. C… Read More
The program adds two matrices with the help of two-dimensional arrays. It is achieved by frequently adding an element of first array with an element… Read More
The program prints sorted array both in ascending order and descending order. It uses a Scanner class for input and a temp variable to swap… Read More
The program simply calculates and prints grades of a student. It is a basic program, where a user inputs marks for all the subject. Further,… Read More
A curve is a collection of indefinite points where each and every point has two neighbors, except start and endpoints (as they have one). There… Read More