Showing posts with label BCA Semester-3. Show all posts
Showing posts with label BCA Semester-3. Show all posts

Thursday, November 21, 2013

Write all 6 DFS Sorting Programs

SelectionSort C Program (DFS)

#include<stdio.h>
#include<conio.h>

int main()
{

  int s,i,j,temp,a[20];

  printf("Enter total elements: ");
  scanf("%d",&s);

HeapSort C Program (DFS)

#include<stdio.h>
#include<conio.h>

void build_Heap(int [],int);
void HeapSort(int H[],int n);

int main()
{
    int arr[10],n,i;
    printf("Enter the total number of array elements: ");
    scanf("%d",&n);

InsertionSort C Program (DFS)

#include<stdio.h>
#include<conio.h>

int main()
{

  int i,j,s,temp,a[20];

  printf("Enter total elements: ");
  scanf("%d",&s);

QuickSort C Program (DFS)

#include<stdio.h>
#include<conio.h>

void quicksort(int [10],int,int);

int main()
{
  int x[20],size,i;

  printf("Enter size of the array: ");
  scanf("%d",&size);

BubbleSort C Program (DFS)

#include<stdio.h>
#include<conio.h>

int main(){

  int s,temp,i,j,a[20];

  printf("Enter total numbers of elements: ");
  scanf("%d",&s);

  printf("Enter %d elements: ",s);
  for(i=0;i<s;i++)
      scanf("%d",&a[i]);

MergeSort C Program (DFS)

#include<stdio.h>
#include<conio.h>

void mergeSort(int arr[],int low,int mid,int high);
void partition(int arr[],int low,int high);

int main(){
   
    int merge[10],i,n;

    printf("Enter the total number of elements: ");
    scanf("%d",&n);

    printf("Enter the elements which to be sort: ");
    for(i=0;i<n;i++){
         scanf("%d",&merge[i]);
    }

Thursday, October 17, 2013

How to write Procedure Block Name in PL/SQL simple example

----------------------------------------
Syntax:
----------------------------------------
CREATE [OR REPLACE] PROCEDURE [PROCEDURE_NAME](ARGUMENTS {IN / OUT / INOUT} DATA-TYPE)
IS/AS
    CURSOR DECLARATION;
    VARIABLE DECLARATION;
BEGIN
    SQL & PL/SQL STATEMENTS;
EXCEPTION
    ERROR HANDLING;
END;
/

Wednesday, October 9, 2013

Virtual Base Class ( Student, Marks, Behaviour, ECA & Result ) C++ Program

#include<conio.h>
#include<iostream.h>

class student
{
    public:
    int roll,id;
    char name[20],std[6];
    void getstudent()
    {
        cout<<"\n\tEnter Student Details \n";
        cout<<"\nEnter ID No :";cin>>id;
        cout<<"\nEnter STD : ";cin>>std;
        cout<<"\nEnter Name : ";cin>>name;
    }
};

Thursday, October 3, 2013

Multiple Hierarchical Inheritance C++ Program ( Gold, Cash, Properties )

#include<conio.h>
#include<iostream.h>

class MFMother
{
    double gold,properties;
    public:
    double togold,toopro;
    void mgetdata()
    {
        cout<<"\nEnter GMother's Details ";
        cout<<"\nEnter Gold in Kg :";cin>>gold;
        gold = gold*30200;

Sunday, September 15, 2013

Enque Algorithm for Curcular Queue using Array

If(Rear == U)
      next = L
Else
      next = Rear + 1
EndIf

If(next == Front)
      print “Queue is Full.

Saturday, September 7, 2013

Maths Paper Style for Internal Exam

Q-1 SOLVE THE FOLLOWING (ANY 3 OUT OF 4) 15 M

2->NORMAL FORMS
2->MATRICES

Q-2(A) THEORY [CONNECTIVES] 4M 


(B) PROPERTIES [CONNECTIVES] 4M


(C)SOLVE THE FOLLOWING (ANY 3 OUT OF 4) 12M

Q-3(A)DEFINITION+EXAMPLE 5M


(B)SOLVE THE FOLLOWING(ANY 1 OUT OF 2) 4M
(C)DEFINITIONS (ANY 6 OUT OF 7) 6M

TOTAL: 50 MARKS

Friday, August 23, 2013

How to write Simple Stack Program using Linked List

#include<conio.h>
#include<stdio.h>

void PUSH();
void PEEP();
void POP();

struct node{
int data;
struct node *link;

}*head,*top=NULL,*newx,*item;

Wednesday, August 21, 2013

How to write Simple Stack Program in C

#include<conio.h>
#include<stdio.h>
 
void PUSH();
void PEEP();
int POP();
int top=-1,item,a[10];
void main()
{
int i;
clrscr();
for(i=0;i<12;i++)
{
printf("\nEnter No: ");
scanf("%d",&item);

Thursday, August 8, 2013

Download DFS all PPTs Files till Unit Test 1

Hello Friends I have uploaded all DFS Material including all the PPTs Files till we have learned so far. So Download this zip file and extract it you will get total 6 files.