C program to for Moving Car

Friday, October 2nd, 2009  »  Posted By  »  Total 19 Comments

line(80+i,300,90+i,270);
line(90+i,270,120+i,270);
line(120+i,270,160+i,240);
line(160+i,240,230+i,240);
line(230+i,240,275+i,270);

C program to find the Shortest path for a given graph

Sunday, September 20th, 2009  »  Posted By  »  Total 7 Comments

OUTPUT:
enter the cost matrix :
0 1 4 2 0
0 0 0 2 3
0 0 0 3 0
0 0 0 0 5
0 0 0 0 0
enter number of paths : 4
enter possible paths :
1 2 4 5 0
1 2 5 0 0
1 4 5 0 0
1 3 4 5 0
minimum cost : 4
minimum cost path :
1–>2–>5

C program for finding remainder

Sunday, September 20th, 2009  »  Posted By  »  Total 0 Comment

OUTPUT:
enter frame:
1 0 1 1 0 1 0 0
enter generator:
1 0 1 0
remainder is:
0 0 1 0

Program for Deadlock detection algorithm

Saturday, September 19th, 2009  »  Posted By  »  Total 26 Comments

INPUT: enter total no. of processes : 4 enter claim matrix : 0 1 0 0 1 0 0 1 0 1 0 0 0 0 1 1 0 1 0 1 enter allocation matrix : 1 0 1 1 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 […]

Program for Cyclic Redundency Check

Saturday, September 19th, 2009  »  Posted By  »  Total 0 Comment

INPUT:
enter frame :
1 1 1 1 1 1 1 1
enter generator :
1 1 0 1

OUTPUT:
frame received correctly

Program for character stuffing

Saturday, September 19th, 2009  »  Posted By  »  Total 8 Comments

INPUT:
enter string:
asdlefgh
enter position: 8
invalid position,enter again: 3
enter the character: k

OUTPUT:
frame after stuffing:
dlestx as dle k dle dle dlefgh dleetx

Program for Bit Stuffing

Friday, September 18th, 2009  »  Posted By  »  Total 12 Comments

Enter frame length: 10

Enter input frame (0′s & 1′s only):
1 0 1 0 1 1 1 1 1 1

After stuffing the frame is:
1 0 1 0 1 1 1 1 1 0 1

Interfacing an LCD to the 8951 Microcontroller

1 Wednesday, November 19th, 2008  »  Posted By  »  Total 18 Comments

LCD pin descriptions: The LCD discussed in this section has 14 pins. The function of each pin is given in table. Vcc, Vss, and VEE: While Vcc and Vss  provide  +5V and ground, respectively, VEE  is used for controlling LCD contrast. RS – register select: There are two very important registers inside the LCD. The […]

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup

Email: