## C graphics program for analog clock

Time_Dig[0]=hour/10+48;

Time_Dig[1]=hour%10+48;

Time_Dig[2]=’:’;

Time_Dig[3]=min/10+48;

Time_Dig[4]=min%10+48;

Time_Dig[5]=’:’;

Time_Dig[6]=sec/10+48;

October 2nd, 2009

Time_Dig[0]=hour/10+48;

Time_Dig[1]=hour%10+48;

Time_Dig[2]=’:’;

Time_Dig[3]=min/10+48;

Time_Dig[4]=min%10+48;

Time_Dig[5]=’:’;

Time_Dig[6]=sec/10+48;

October 2nd, 2009

setcolor (WHITE);

line (pt[0][0], pt[0][1], pt[1][0], pt[1][1]);

line (pt[1][0], pt[1][1], pt[2][0], pt[2][1]);

line (pt[2][0], pt[2][1], pt[0][0], pt[0][1]);

getch();

October 2nd, 2009

C Program to implement 3-D rotation with respect to x-axis, y-axis and z-axis (wire frame model of a cube). Use appropriate data structures to manipulate the wire frame model.

October 2nd, 2009

double xt = pow (1-t, 3) * x[0] + 3 * t * pow (1-t, 2) * x[1] +

3 * pow (t, 2) * (1-t) * x[2] + pow (t, 3) * x[3];

double yt = pow (1-t, 3) * y[0] + 3 * t * pow (1-t, 2) * y[1] +

3 * pow (t, 2) * (1-t) * y[2] + pow (t, 3) * y[3];

October 2nd, 2009

point p1,p2;

printf(“Enter 2 hermite points:\n”);

scanf(“%d%d%d%d”,&p1.x,&p1.y,&p2.x,&p2.y);

printf(“Enter the tangents at p1,p4”);

scanf(“%d%d”,&r1,&r4);

cleardevice();

October 2nd, 2009

C Program to implement the Cohen-Sutherland line-clipping algorithm. Make provision to specify the input line, window for clipping and view port for displaying the clipped image. (Use built-in line and rectangle functions).

October 2nd, 2009

C Program to create a house like figure and perform the following operations.

a. Scaling about the origin followed by translation.

b. Scaling with reference to an arbitrary point.

c. Reflect about the line y = mx + c.

October 2nd, 2009

C Program to draw a rectangle and perform the following operations.

a. Rotation about the origin followed by translation.

b. Rotation about an arbitrary point.

c. Apply X shear and Y shear on the rectangle.

October 2nd, 2009

C Program to implement the midpoint circle drawing algorithm to draw a circle. Modify the algorithm toimplement specified arc or sector.

October 2nd, 2009

Program to display a line graph using midpoint line algorithm. The input to the program is a set of data corresponding to the X and Y-axes. Data parts are to be displayed as asterisk (*) according to the input specification.

October 2nd, 2009

- First In First Out Page Replacement Algorithm
- Program to calculate a simple interest
- Program to calculates the area of a rectangle
- Program to accept five numbers and display the sum of even numbers and product of odd numbers
- Program to check the occurence of digit in a given number
- Program to find out the sum of first n numbers
- Program to generate a table of a given input number
- Program to check a triangle is a equilateral, isosceles or scalene
- Program to accept a character and check whether entered character is vowel or not using switch statement
- Program to find out whether a entered number is divisible by 3 and 5 or not
- Program to compute the word length of the host machine
- To find the biggest and smallest number and positions in the given array
- to find the gross and net salary
- to find the roots of a quadratic equation
- To calculate area and circumference of the circle
- to find the biggest and smallest of three numbers
- To calculate area and circumference of the circle

- C Program to convert IP address to 32-bit longint
- C Program to convert IP address to 32-bit long int
- Program to accept a list of numbers and display it in reverse order using function concept
- program to accept ten numbers from the user and display the lowest one
- Program to accept ten numbers from the user and display the largest one
- Program to find the value of the polynomial f(x)=a4x4+a3x3+a2x2+a1x+a0 using Horner’s method
- C program to calculate the GCD of a number
- C program for finding remainder
- To find the sum of the cos series
- Program to find the sum of the sine series
- To find the sum of digits
- To check whether a given number is palindrome or not
- To reverse a given number
- Program for Armstrong numbers
- Program to find the prime numbers between a given range
- Program to find the prime numbers below a given number.
- Program to find the perfect numbers between a given range
- Program to find the perfect numbers below a given number.
- To find the fibonacci numbers below a given number.
- Program to find the fibonacci numbers between a given range
- Program for Fibonacci numbers
- Program for perfect numbers
- Program for prime numbers

- Program to find the transpose of a Matrix
- To find the sum of secondary diagonal of a Matrix
- To find the sum of primary diagonal of a Matrix
- To multiply two Matrices
- To find the difference of two Matrices
- To find the sum of two Matrices
- Intelligent Train Engines
- Robotic car using 8951 Microcontroller

- C Program to implement newStringCopy and newStringConcatenate functions
- Program to replace each string of one or more blanks by a single blank
- Program to match two given strings using function
- Program to arrange the string in alphabetical order
- Program to delete n Characters from a given position in a given string using functions
- To reverse the given string using pointer
- To reverse the given string
- To copy the contents of one string to another string using pointer
- To copy the contents of one string to another string
- To check whether the given string is palindrome-method 2
- To check whether the given string is palindrome-method 1
- To replace a word by another word in a given string
- Program to concatenate two given string using Pointer
- Program to concatenate two given string
- Program to find the total number of palindrome in a given string
- To count the number of vowels in a given string
- To count the number of words in a given string

- C graphics program for analog clock
- C Program to fill any given polygon using scan-line area filling algorithm
- C Program to implement 3-D rotation with respect to x-axis, y-axis and z-axis
- C Program to implement Bezier curves for a given set of control points.
- C Program to implement Hermite curves for a given set of control points.
- C Program to implement the Cohen-Sutherland line-clipping algorithm.
- C Program to create a house and perform the operations.
- C Program to draw a rectangle and perform the operations.
- C Program to implement the midpoint circle drawing algorithm
- C Program to display a line graph using midpoint line algorithm.
- C Program to for Midpoint Line algorithm
- C program to for Moving Car
- C program to for Rotation of wheel
- C Program to impliment Fish Movement
- C program to implement Spiral Model
- C program to implement Bar Graph
- C Program to implement Kite flying

- Least Recently Used Paging Algorithm
- C Program to convert Prefix Expression into INFIX
- C Program for Binary Search and Towers of Hanoi using Recursion
- C program to insert Student Records to a Sequential File
- C Program which performs stack operations
- Binary Search
- Priority schedueling with & without preemtion, with aging, with different arrival times
- C program to implement tower of Hanoi problem
- C program to Implement Morse code to text conversion and vice-versa.
- C program for Syntax Analyzer
- C program for Shortest Job Next
- C program for Round Robin
- C program for Priority Scheduling
- C program for Pass-1 Assembler
- C program for Operator Precedence
- C program for Macro Processor
- C program for Lexical Analyzer
- C progrma for First Come First Serve Algorithm

- C Program for implementing two Stacks on Single Array
- C Program for Simple DSC order Priority QUEUE Implementation using Structure
- C Program for Simple DSC order Priority QUEUE Implementation using Structure
- C Program for Simple ASC order Priority QUEUE Implementation using Structure
- C Program for Simple DSC order Priority QUEUE Implementation
- C Program for Simple ASC order Priority QUEUE Implementation
- C Program to convert Prefix Expression into Postfix
- C Program for Infix to Prefix Conversion
- C Program for Binary Search Tree Creation and Traversals
- Program for Doubly Linked List Operations
- C Program to implement QUEUE operations using Linked Lists
- C Program to implement STACK operations using Linked Lists
- C Program for Singly Linked List Operations
- C Program for Circular QUEUE Operations – using Array
- C Program for Simple/Linear QUEUE Operations – Using Array
- C Program for Evaluation of Postfix Expression 34*5+
- C Program for Infix to Postfix Conversion
- C Program for Stack Operations – Using Array
- C program which converts given expression into its post-fix format
- C program to implement linked list
- C program to implement Circular Queue operations
- C program to implement queue operations
- C program to implement stack operations using array
- C program for sorting a Linked List