• Articles

C Program for Translation of a Triangle

2 years ago

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

  • Articles

C Program for 2D Translation

2 years ago

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

  • Articles

Java Class Definition and its Basic Components with Program Example

2 years ago

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

  • Articles

Factorial Program in Java

2 years ago

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

  • Articles

C Program to Draw Chess Board

2 years ago

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

  • Articles

C Program to Show a Man Walking in Rain

2 years ago

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

  • Articles

Java program to Add Two Matrices Using Two Dimensional Array

2 years ago

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

  • Articles

Java Program to Sort an Array in Ascending Order and Descending Order

2 years ago

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

  • Articles

Java Program to Calculate and Print Grade of Students With Output

2 years ago

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

  • Articles

Types Of Curves in Computer Graphics

2 years ago

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