DFS - DATA FILE STRUCTURE PROGRAMS
- Program for String operations without library functions
- Various operations on polynomials using structures
- Represent Sparse Matrix using array and perform Matrix Addition,Simple Transpose and Fast Transpose
- Simulation of Stack using Array
- Simulation of Queue using Array
- A program for Circular Queue using Array
- A program for Circular Dequeue using an Array
- Simulation of Stack using Linked List
- Queue represented using Linked List
- Queue represented using a Circular Linked List
- Dequeue represented using Linked List
- Various operations on Polynomials using linked List
- operations on sll (Singly Linked List)
- Infix to Prefix and Postfix with Evaluation
- Postfix to Infix and Prefix
- Prefix to Infix and Postfix
- Operations on Doubly Linked List
- Operations on CLL -Circular Linked List
- Program showing various operations on Binary Search Tree
- Program for AVL Tree
- Indegree,Outdegree,Total Degree of each Vertex and, BFS , DFS on a Graph represented using Adjacency Matrix
- DFS and BFS on Graph represented using Adjacency List
- BSF and DSF on a Graph represented using Adjacency Matrix
- Program for constructing a minimum cost spanning tree using Prim's algorithm
- Program for constructing a Minimum Cost Spanning Tree Kruskal Algorithm
COMPUTER GRAPHICS PROGRAMS
Line:
Circle:
Circle:
- Program to Draw a Circle using Mid Point Algorithm
- Program to Draw a Circle using Bresenham's Algorithm
- Program to Draw Circle (Simple Prorgam)
- Program to draw a Circle having Changing its Color and Design
- Program to draw a Circle using Direct Algorithm
- Program to draw an Ellipse using Mid - Point Ellipse Algorithm
- Program to draw an Ellipse with Different Colours
- Program to draw Polar Ellipse
- Program to draw an Ellipse Showing Two Axis
COMPUTER GRAPHICS ALGORITHM PROGRAMS
- Bresenham line drawing algorithm program in c
- Cohen Sutherland Line Clipping Algorithm
- Bresenhams Circle Algorithm
Operating System (OS) Programs
- Priority Scheduling Algorithm C Program
- Round Robin Scheduling Method C Program
- Shortest Job First Scheduling Algorithm C Program
- First in First Serve Algorithm C Program
- Producer Consumer Problem C Program
- Dining Philosophers Problem C Program
- Implementation of System Calls C Program
Distributed System (DS) Programs
- WAP to Implement Iterative echo Client-Server using Socket Programming.
- WAP To demonstrate the use of RPC Remote Procedural Call Distributed System.
Computer Network (CN) Programs
- Implement the Data Link Layer Framing methods such as " Bit Stuffing "
- Implement the Data Link Layer Framing methods such as " Character Stuffing and also De stuff "
- Implementation of CRC C Program
- Implementation of Checksum C Program
- Implementation of Sliding Window
- Implementation of Simple FTP Client
- Implementation Of Peer to Peer Connection using UDP
- Implementation Of UDP Client Server Communication Using Bind System Call
- Transferring Files over RS232
Interrupt Programming
- Program to save the Interrupt Vector Table (IVT) in a file.
- C Program to display the Conventional Memory of the system.
- Program to show the System Configuration using interrupt 11h.
- Program to get and set System Date using Interrupt 21h.
- Write a program to dDlete a specified file using Interrupt 21h
- Program to Delete a specified Directory using Interrupt 21h
- Write a program to Read a character from KeyBoard with echo using Interrupt 21h
- Program to show files in Directories
- Write a program that Restarts your Computer
- Program to read character from keyboard using interrupt 21h
Miscellaneous Programs
Operation on Very Large Numbers
C Programs on Number
- Sleep() Function
- Addition C Program
- Subtraction C Program
- Subtract Two Numbers without using Subtraction Operator
- Division C Program
- Multiplication C Program
- ODD or EVEN number ?
- Fibonacci Series C Program
- Count : Write a program to Count the digits of a given number without using Loop.
- Calculate Next & Previous Prime of a Number
- Maximum and Minimum Number
- Add Two Numbers without using the Plus Operator in C
- Reverse Number
- Prime Factor of a Number
C Programs on Sorting Algorithms
- Parallel Merge Sort Algorithm
- Quick Sort Algorithm Program
- Binary Tree Sorting C Program
- Heap Sort Algorithm C Program
- Insertion Sort Algorithm Program
- Sorting of Array Elements using a Function
- Merge Sort Algorithm Program using Array in C
- Selection Sort Algorithm Program using Array in C
- Bubble Sort Program
C Programs on Search Algorithms
C Program on Number Pattern
OTHER PROGRAMS
- Hello world program
- Punctuators
- Operators
- Switch Case
- Structure in C
- Union C Program
- What is Language?
- Factorial of Number
- Calculator C Program
- Square root of Number
- Features of C Language.
- Centigrade to Fahrenheit
- Doubly Link List C program
- Number Pattern C Program
- Simple - Compound interest
- C Program to maintain Heap
- What is Language Translator?
- Error Handling in File Operations
- Hill Cipher Algorithm C Program
- Write a Program to Print MATRIX
- C Program to maintain an AVL tree
- C Program to draw reliability graph
- C Program to Add two Polynomials
- Find Area of Rectangular C Program
- Number is Prime or Not ? C Program
- C program to convert Binary to Decimal
- C program to convert Binary to Octal.
- Passing of arrays to a function C Program
- A* (Star) Search Algorithm Source Code
- Writing strings using %s format C Program
- passing Structure to Function - C Program
- Producer-Consumer Problem using Thread
- Printing All Possible Subsets using BitMask
- System Configuration using biosequip function
- Evalution Of Binomial Coefficients C Program
- C Program to maintain a Threaded Binary Tree
- False Position Method or Regula Falsi Method
- Reverse String without using loop or Recursion
- Program to print Array Element in Reverse Order
- C Program to convert an Infix form to Postfix form
- ILLUSTRATION OF fseek & ftell FUNCTIONS
- IPC Shared Memory Implementation Program in C
- Color Program without using Graphics - C Program
- Source Code for Illustration of nested for loops in C
- C program of matrix transpose and matrix multiplication
- Compute x to the power n using while loop - C Program
- Program to save the Interrupt Vector Table (IVT) in a file
- Multi Dimentional Array values using Functions C Program
- Program to find greatest number from one dimensional array
- C Program to print pyramid of small letter and capital letter abcd
- C Program to calculate x raise to y or power(x,y) using while loop
- Insert and Delete a Node from the Binary Search Tree - C Program
- Example of File Functions like fread(), fwrite(), fopen(), fclose() and fseek()
- Simulated Annealing for Traveling Salesman Problem - Artificial Intelligence
- Doublely link list with Create, Insert, Delete and Display operations using Structure Pointer
- Write a C program that prints your name in the four corner of the screen
- Write a C program that converts Hexadecimal value in Decimal, Octal and Binary value
- How to Use strlen() Function in C
- How to Use abs() function in C
- C Program to Check Whether a Number is a Palindrome or Not
- C Program to Count number of Digits in Factorial
- LRU Program in C: Algorithm and Implementation
Keep Visiting... I will upload more programs soon . You can request Program or Solution in Comment Section.
4 Comments
Can anybody help me with this problem???
ReplyDeleteenter 10 nos.
*
*
*
*
*
*
*
*
summary: ***********(ung sampu)
negative nos: (kung ilan un neg)
positive nos:
sum of negative nos:
sum of positive nos:
Any my codes are:
#include
main()
{
int n[10], sum1, sum2,
x, y;
printf("Enter 10 numbers: \n");
{for(x=0;x<=10;x++)
n[x]=0;
}
{for(x=0;x<=10;x++)
sum1+=n[x];
}
scanf("%d", &n);
{
printf("SUMMARY: %d", n);
}
getch();
}
ANY CORRECTIONS????
//it would be like this.
Delete#include
#include
#include
void main()
{
int a[10],i,sum=0;
clrscr();
printf("Enter 10 numbers for addition: \n");
for(i=0;i<10;i++)
{
scanf("%d",&a[i]);
sum=sum+a[i];
}
printf("sum=%d",sum);
getch();
}
program for addition of numbers and display positive and negative numbers and their addition
ReplyDelete#include
#include
void main()
{
int a[10],i,sum=0,neg=0,pos=0;
clrscr();
printf("Enter 10 numbers for addition: \n");
for(i=0;i<10;i++)
{
scanf("%d",&a[i]);
sum=sum a[i];
}
printf("sum of numbers= %d",sum);
printf("\nPositive nos : ");
for(i=0;i<10;i++ )
{
if(a[i]>0)
{
printf("%d\t",a[i]);
pos=pos a[i];
}
}
printf("\nsum of positive nos=%d",pos);
printf("\nNegative nos: ");
for(i=0;i<10;i ++)
{
if(a[i]<0)
{
printf("%d\t",a[i]);
neg=neg a[i];
}
}
printf("\nsum of Negative nos=%d",neg);
getch();
}
Reena’s operating system uses an algorithm for deadlock avoidance to manage the allocation of resources say three namely A, B, and C to three processes P0, P1, and P2. Consider the following scenario as reference .user must enter the current state of system as given in this example : Suppose P0 has 0,0,1 instances , P1 is having 3,2,0 instances and P2 occupies 2,1,1 instances of A,B,C resource respectively. Also the maximum number of instances required for P0 is 8,4,3 and for p1 is 6,2,0 and finally for P2 there are 3,3,3 instances of resources A,B,C respectively. There are 3 instances of resource A, 2 instances of resource B and 2 instances of resource C available. Write a program to check whether Reena’s operating system is in a safe state or not in the following independent requests for additional resources in the current state: 1.Request1: P0 requests 0 instances of A and 0 instances of B and 2 instances of C. 2.Request2: P1 requests for 2 instances of A, 0 instances of B and 0 instances of C. All the request must be given by user as input.
ReplyDelete