• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
projectsgeek

ProjectsGeek

Download Mini projects with Source Code, Java projects with Source Codes

  • Home
  • Java Projects
  • C++ Projects
  • VB Projects
  • PHP projects
  • .Net Projects
  • NodeJs Projects
  • Android Projects
    • Project Ideas
      • Final Year Project Ideas
      • JSP Projects
  • Assignment Codes
    • Fundamentals of Programming Language
    • Software Design Laboratory
    • Data Structure and Files Lab
    • Computer Graphics Lab
    • Object Oriented Programming Lab
    • Assembly Codes
  • School Projects
  • Forum

ProjectsGeek

Display Numbers in Ascending Order C language

July 2, 2013 by ProjectsGeek Leave a Comment

Display Numbers in Ascending Order C language

Develop a program in C Language to accept five numbers as input and then Display Numbers in Ascending Order .
#include<stdio.h>
#include<conio.h>
void main()
{
int n,i,j,num[20],temp;
clrscr();
printf(“\nEnter how many numbers to be sorted:\n”);
scanf(“%d”,&n);
printf(“\nEnter the %d numbers :”,n);
for(i=0;i<n;i++)
{
scanf(“%d”,&num[i]);

}
//the following code is for sorting
for(i=0;i<n;i++)
{
for(j=i+1;j<n;j++)
{

if(num[i]>num[j])
{
temp=num[i];
num[i]=num[j];
num[j]=temp;
}
}
}

printf(“\nElements in sorted order are : \n”);
for(i=0;i<n;i++)
{
printf(“%d\t”,num[i]);
}

getch();
}

Display Numbers in Ascending Program Output

Display Numbers C language

Other Projects to Try:

  1. Bubble Sort Code in C Language
  2. Mobile User Information Project
  3. Find prime numbers in C Language
  4. Display numbers as English word in C Language
  5. Assembly Language Codes

Filed Under: Uncategorized

Cab Service mini project in .Net

June 23, 2013 by ProjectsGeek Leave a Comment

Cab Service mini project

 

When it comes to cab rental services, Cool Service is the most trusted and reliable name in the travel business. The most advanced travel agents offering cab rental and car hire in India, making full use of information technology to improve the level of our efficiency. However, this is only one aspect of services. And this project continually strive to offer the best of services – both in terms of man and machine, to our clients

Moreover, this project has a fleet of cars ranging from luxury to budget cabs. While, it offers online cab hire service for corporate houses. And this project claim to offer the best of rates, which are tailor-made depending upon the facilities, availed and offer both intercity and infra-city cab facilities. All cabs have proper permits and documentation so that the clients couldn’t be hassled for the lack of documents. However, this project has strategic backup system for any eventuality. Cab drivers are educated, polite, and reliable and are trained to handle acute breakdowns. The cab service includes all categories of cars from luxury to budget.

Further, this project’s utmost priority is quality. To achieve this, vehicles are well maintained and tested for delivering optimum and uninterrupted performance. Team of professionals in the travel business enables this system to design trips that suits to all budgets and preferences of the travelers. In addition, workforce including drivers and administrative staff are well trained to discharge their duties with a lot of efficiency.

Modules of Cab Service mini project

  • Admin module
  • HR module
  • Maintenance module
  • Movement module
  • Finance module
  • Quality Assurance module

Requirements of Cab Service mini project

Hardware Requirements:

• PIV 2.8 GHz Processor and Above

• RAM 512MB and Above

• HDD 20 GB Hard Disk Space and Above

Software Requirements:

• WINDOWS OS (XP / 2000 / 2003 Server)

• Visual Studio .Net 2005 Enterprise Edition

• Visual Studio .Net Framework (Minimal for Deployment)

• SQL Server 2000/2005

 

Other Projects to Try:

  1. Cab Service Management mini project
  2. Web Service for Multiple clients Project Idea
  3. Budget Planner-Mini Project in .Net
  4. Shopping Cart mini project in Asp.Net
  5. 100+ .Net mini Projects with Source Code

Filed Under: .Net Projects Download

How to Implement Hash Table using C language

June 23, 2013 by ProjectsGeek Leave a Comment

Implement Hash Table using C language

 

#include<stdio.h>  
 #include<conio.h>  
 #define MAX 8  
 void createwor(int [][2]);  
 void insertwor(int [][2]);  
 void deletwor(int [][2]);  
 void displaywor(int [][2]);  
 void createwr(int [][2]);  
 void insertwr(int [][2]);  
 void deletwr(int [][2]);  
 void displaywr(int [][2]);  
 void searchwr(int [][2]);  
 void searchwor(int [][2]);  
 void main()  
 {  
 int ch,ch1,i,j;  
 int a[MAX][2],b[MAX][2];  
 for(i=0;i<MAX;i++)  
 for(j=0;j<2;j++)  
 b[i][j]=-1;  
 for(i=0;i<MAX;i++)  
 for(j=0;j<2;j++)  
 a[i][j]=-1;  
 do  
 {  
 clrscr();  
 printf("\n\t\tHASH TABLE\n\t\t1.CREATE HASH TABLE\n\t\t2.INSERT\n\t\t3.DELETE\n\t\t4.DISPLAY\n\t\t5.SEARCH\n\t\t6.EXIT");  
 printf("\n\t\tENTER UR CHOICE");  
 scanf("%d",&ch);  
 switch(ch)  
 {  
 case 1:  
 do  
 {  
 clrscr();  
 printf("CREATE HASH TABLE\n\t\t1.WITH REPLACEMENT\n\t\t2.WITHOUT REPLACEMENT\n\t\t3.EXIT");  
 printf("\n\t\tENTER UR CHOICE");  
 scanf("%d",&ch1);  
 switch(ch1)  
 {  
 case 1:  
 printf("WITH REPLACEMENT");  
 createwr(a);  
 break;  
 case 2:  
 printf("WITHOUT REPLACEMENT");  
 createwor(b);  
 break;  
 case 3:  
 break;  
 }  
 }while(ch1!=3);  
 break;  
 case 2:  
 do  
 {  
 clrscr();  
 printf("\n\t\tINSERT\n\t\t1.WITH REPLACEMENT\n\t\t2.WITHOUT REPLACEMENT\n\t\t3.EXIT");  
 printf("\n\t\tENTER UR CHOICE");  
 scanf("%d",&ch1);  
 switch(ch1)  
 {  
 case 1:  
 printf("WITH REPLACEMENT");  
 insertwr(a);  
 break;  
 case 2:  
 printf("WITHOUT REPLACEMENT");  
 insertwor(b);  
 break;  
 case 3:  
 break;  
 }  
 }while(ch1!=3);  
 break;  
 case 3:  
 do  
 {  
 clrscr();  
 printf("\n\t\tDELETE\n\t\t1.WITH REPLACEMENT\n\t\t2.WITHOUT REPLACEMENT\n\t\t3.EXIT");  
 printf("\n\t\tENTER UR CHOICE");  
 scanf("%d",&ch1);  
 switch(ch1)  
 {  
 case 1:  
 printf("WITH REPLACEMENT");  
 deletwr(a);  
 break;  
 case 2:  
 printf("WITHOUT REPLACEMENT");  
 deletwor(b);  
 break;  
 case 3:  
 break;  
 }  
 }while(ch1!=3);  
 break;  
 case 4:  
 do  
 {  
 clrscr();  
 printf("\n\t\tDISPLAY\n\t\t1.WITH REPLACEMENT\n\t\t2.WITHOUT REPLACEMENT\n\t\t3.EXIT");  
 printf("\n\t\tENTER UR CHOICE");  
 scanf("%d",&ch1);  
 switch(ch1)  
 {  
 case 1:  
 printf("WITH REPLACEMENT");  
 displaywr(a) ;  
 break;  
 case 2:  
 printf("WITHOUT REPLACEMENT");  
 displaywor(b) ;  
 break;  
 case 3:  
 break;  
 }  
 }while(ch1!=3);  
 break;  
 case 5:  
 do  
 {  
 clrscr();  
 printf("\n\t\tSEARCH\n\t\t1.WITH REPLACEMENT\n\t\t2.WITHOUT REPLACEMENT\n\t\t3.EXIT");  
 printf("\n\t\tENTER UR CHOICE");  
 scanf("%d",&ch1);  
 switch(ch1)  
 {  
 case 1:  
 printf("WITH REPLACEMENT");  
 searchwr(a);  
 break;  
 case 2:  
 printf("WITHOUT REPLACEMENT");  
 searchwor(b);  
 break;  
 case 3:  
 break;  
 }  
 }while(ch1!=3);  
 break;  
 case 6:  
 break;  
 }  
 }while(ch!=6);  
 getch();  
 }  
 void createwor(int b[][2])  
 {  
 int i,j;  
 for(i=0;i<MAX;i++)  
 for(j=0;j<2;j++)  
 b[i][j]=-1;  
 do  
 {  
 insertwor(b);  
 printf("DO U WANT TO ENTER MORE");  
 }while(getche()=='y');  
 }  
 void insertwor(int b[][2])  
 {  
 int r,s,t,a;  
 printf("\nENTER DATA");  
 scanf("%d",&a);  
 s=a%5;  
 if(b[s][0]==-1)  
 b[s][0]=a;  
 else  
 {  
 //printf("COLLISION OCCURS");  
 //getch();  
 while(1)  
 {  
 printf("\nTRUE COLLISION OCCURS");  
 getch();  
 if(b[s][1]==-1)  
 {  
 t=s;  
 while(b[s][0]!=-1)  
 { //s++;  
 s=(s+1)%MAX;  
 if(s==t)  
 {  
 printf("OVERFLOW");  
 break;  
 }  
 }  
 if(s!=t)  
 {  
 b[s][0]=a;  
 b[t][1]=s;  
 }  
 break;  
 }  
 else  
 s=b[s][1];  
 }  
 }  
 }  
 void deletwr(int b[][2])  
 {  
 int r,s,t,a;  
 printf("ENTER DATA WHICH U WANT TO DELETE");  
 scanf("%d",&a);  
 t=s=a%5;  
 while(1)  
 {  
 if(b[s][0]==a)  
 break;  
 t=s;  
 s=b[s][1];  
 if(s==-1)  
 break;  
 }  
 if(s==-1)  
 printf("NOT FOUND");  
 else  
 {  
 while(1)  
 {  
 if(b[b[t][1]][0]!=a)  
 b[t][0]=b[b[t][1]][0];  
 r=b[t][1];  
 if(b[r][1]==-1)  
 {  
 b[t][1]=b[r][1];  
 break;  
 }  
 t=r;  
 }  
 b[r][0]=-1;  
 }  
 }  
 void displaywor(int b[][2])  
 {  
 int i,r,s,t,a;  
 printf("\nINDEX\tDATA\tCHAIN");  
 for(i=0;i<MAX;i++)  
 {  
 if(b[i][0]!=-1)  
 {  
 printf("\n%d",i);  
 printf("\t%d",b[i][0]);  
 //if(b[i][1]!=-1)  
 printf("\t%d",b[i][1]);  
 }  
 }  
 getch();  
 }  
 void createwr(int b[][2])  
 {  
 int i,j;  
 for(i=0;i<MAX;i++)  
 for(j=0;j<2;j++)  
 b[i][j]=-1;  
 do  
 {  
 insertwr(b);  
 printf("DO U WANT TO ENTER MORE");  
 }while(getche()=='y');  
 }  
 void insertwr(int b[][2])  
 {  
 int r,s,t,a,i;  
 printf("\nENTER DATA");  
 scanf("%d",&a);  
 s=a%5;  
 if(b[s][0]==-1)  
 b[s][0]=a;  
 else if(s==(b[s][0]%5))  
 {  
 //printf("TRUE COLLISION OCCURS");  
 //getch();  
 while(1)  
 {  
 printf("\nTRUE COLLISION OCCURS");  
 getch();  
 if(b[s][1]==-1)  
 {  
 t=s;  
 while(b[s][0]!=-1)  
 {  
 s=(s+1)%MAX;  
 if(t==s)  
 {  
 printf("OVERFLOW");  
 getch();  
 break;  
 }  
 }  
 if(t!=s)  
 {  
 b[s][0]=a;  
 b[t][1]=s;  
 }  
 break;  
 }  
 else  
 s=b[s][1];  
 }  
 }  
 else  
 {  
 printf("FALSE COLLISION OCCURS");  
 getch();  
 r=i=b[s][0]%5;  
 while(1)  
 {  
 if(b[i][1]==s)  
 {  
 b[i][1]=b[s][1];  
 break;  
 }  
 i=b[i][1];  
 }  
 t=i;  
 while(b[i][1]!=-1)  
 i=b[i][1];  
 t=i;  
 i=(i+1)%MAX;  
 while(b[i][0]!=-1)  
 {  
 i=(i+1)%MAX;  
 if(r==i)  
 {  
 printf("OVERFLOW");  
 getch();  
 break;  
 }  
 }  
 if(r!=i)  
 {  
 b[t][1]=i;  
 b[i][0]=b[s][0];  
 //b[i][1]=-1;  
 b[s][0]=a;  
 b[s][1]=-1;  
 //b[r][1]=i;  
 }  
 }  
 }  
 void displaywr(int b[][2])  
 {  
 int i,r,s,t,a;  
 printf("\nINDEX\tDATA\tCHAIN");  
 for(i=0;i<MAX;i++)  
 {  
 if(b[i][0]!=-1)  
 {  
 printf("\n%d",i);  
 printf("\t%d",b[i][0]);  
 //if(b[i][1]!=-1)  
 printf("\t%d",b[i][1]);  
 }  
 }  
 getch();  
 }  
 void searchwr(int b[][2])  
 {  
 int r,s,a;  
 printf("ENTER DATA WHICH U WANT TO SEARCH");  
 scanf("%d",&a);  
 s=a%5;  
 while(1)  
 {  
 if(b[s][0]==a)  
 break;  
 s=b[s][1];  
 if(s==-1)  
 break;  
 }  
 if(s==-1)  
 printf("NOT FOUND");  
 else  
 {  
 printf("\nINDEX IS %d:",s);  
 printf("\nDATA IS %d:",b[s][0]);  
 printf("\nINDEX WHICH IS CHAINED FROM IT:%d",b[s][1]);  
 }  
 getch();  
 }  
 void searchwor(int b[][2])  
 {  
 int r,s,a;  
 printf("ENTER DATA WHICH U WANT TO SEARCH");  
 scanf("%d",&a);  
 s=a%5;  
 while(1)  
 {  
 if(b[s][0]==a)  
 break;  
 s=b[s][1];  
 if(s==-1)  
 break;  
 }  
 if(s==-1)  
 printf("NOT FOUND");  
 else  
 {  
 printf("\nINDEX IS %d:",s);  
 printf("\nDATA IS %d:",b[s][0]);  
 printf("\nINDEX WHICH IS CHAINED FROM IT:%d",b[s][1]);  
 }  
 getch();  
 }  
 void deletwor(int b[][2])  
 {  
 int r,s,t,a,k;  
 printf("ENTER DATA WHICH U WANT TO DELETE");  
 scanf("%d",&a);  
 t=s=a%5;  
 while(1)  
 {  
 if(b[s][0]==a)  
 break;  
 t=s;  
 s=b[s][1];  
 if(s==-1)  
 break;  
 }  
 if(s==-1)  
 printf("NOT FOUND");  
 else  
 {  
 r=t;  
 while(1)  
 {  
 if(b[b[r][1]][0]!=a&&b[b[r][1]][0]%5!=b[r][1])  
 {  
 b[t][0]=b[b[r][1]][0];  
 t=r;  
 }  
 else if(b[b[t][1]][1]==-1)  
 {  
 b[t][1]=-1;  
 break;  
 }  
 r=b[r][1];  
 if(b[r][1]==-1)  
 {  
 b[t][1]=b[r][1];  
 break;  
 }  
 if(b[b[t][1]][0]!=a&&b[b[t][1]][0]%5!=b[t][1])  
 {  
 t=r;  
 k=r;  
 }  
 }  
 b[r][0]=b[k][1]=-1;  
 }  
 }

 

 

Other Projects to Try:

  1. Matrix operations in c language
  2. Sparse Matrix Operations Code using C Langauge
  3. BFS AND DFS Algorithm using C Language
  4. Breadth First and Depth First Search C Language
  5. Hash table code in C Language

Filed Under: Uncategorized

Banking project in c language source code

June 23, 2013 by ProjectsGeek 2 Comments

Banking  project in C Language

 

Statement : Develop a Banking  project in c language which will implement following features or functionality in the program .

 

  • Account Creation
  • Deposit Amount
  • Withdraw Amount
  • View Details
  • Foreign Exchange
  • Exit program

 


 #include<stdio.h>  
 #include<dos.h>  
 #include<conio.h>  
 #include<string.h>  
 #include<graphics.h>  
 #include<process.h>  
 struct bank // Bank Structure  
 {int accno;  
 char name[20];  
 float bal;  
 }b;  
 void main()  
 {int ch;  
 clrscr();  
 b:printf("\n\t\t\t\t Welcome to Aarthi Banking Corporation \n\n\n\t Please select your appropriate option...");  
 printf("\n 1. New customer \n 2. Existing customer \n 3. Exit");  
 scanf("%d",&ch);  
 switch (ch)  
 { case 1:  
      {FILE*ff;  
      ff=fopen("customer.dat","a");  
      clrscr();  
      printf("\n Welcome to Aarthi Banking Corporation (ABC.Ltd).\n It is a pleasure to have you here \n Please enter your name without spaces :");  
      scanf("%s",&b.name);  
      clrscr();  
      printf("\n Welcome %s, please enter a suitable account number",b.name);  
      scanf("%d",&b.accno);  
      printf("\n Please mention the initial deposit... Rs: ");  
      scanf("%f",&b.bal);  
      printf("\n Congratulations... Your account has been created.\nTo deposit please login as existing customer");  
      fwrite(&b,sizeof(b),1,ff);  
      fclose(ff);  
      getch();  
      clrscr();  
      goto b;  
      }break;  
 case 2:  
      {     int num,count=0,n,ch,flag;  
  int a,c,t;  
  float amount,value,temp;  
  FILE *fp;  
   clrscr();  
   printf("\n Welcome once again to Aarthi Banking Corporation (ABC)... ");  
   printf("\n\n Please Enter your Account Number");  
   scanf("%d",&num);  
   fp=fopen("customer.dat","r+");  
   rewind(fp);  
   while(!feof(fp)&&count==0)  
  { fread(&b,sizeof(b),1,fp);  
   if (b.accno==num)  
   {  count=1;  }   }  
   if(count==0)  
   {     printf("\n Wrong account number... No such user");  
   getch();  
   goto b;  }  
  else  
   { int m;  
   clrscr();  
   printf("\n Welcome %s, What service would you like to avail",b.name);  
   printf("\n 1. Deposit Amount ");  
   printf("\n 2. Withdraw Amount ");  
   printf("\n 3. View Details ");  
   printf("\n 4. Foreign Exchange");  
   printf("\n 5. Exit program");  
   printf("\n Please Enter your choice : ");  
   scanf ("%d",&m);  
   switch(m)  
   {case 1:  
   {clrscr();  
    printf("\n\n\n Dear %s, please enter the amount you wish to deposit : ",b.name);  
    scanf("%f",& amount);  
    b.bal=b.bal+amount;  
    printf("\n Your current available bank balance is %f", b.bal);  
    n=sizeof(b);  
    fseek(fp,-n,SEEK_CUR);  
    fwrite(&b,n,1,fp);  
    fclose(fp);  
    getch();  
    }break;  
    case 2:  
   {clrscr();  
    printf("\n\n\n Dear %s, please enter the amount you wish to withdraw : ",b.name);  
    scanf("%f",& amount);  
    if(b.bal-amount<=0)  
    {printf("\n Sorry, You dont have enough money in your account");  
    fclose(fp);  
    getch();  
    goto b;  
    }  
    else  
    {b.bal=b.bal-amount;  
    printf("\n Your current available bank balance is %f", b.bal);  
    getch();  
    n=sizeof(b);  
    fseek(fp,-n,SEEK_CUR);  
    fwrite(&b,n,1,fp);  
    fclose(fp);  
    goto b;  
    }  
    }break;  
    case 3:  
    { clrscr();  
    printf("\n Your Account Details are as folows...");  
    printf("\n\n Name : %s",b.name);  
    printf("\n\n Account Number : %d ",b.accno);  
    printf("\n\n Available Balance :%f ",b.bal);  
    fclose(fp);  
    printf("\n Press any key to continue...");  
    getch();   clrscr();  
    goto b;  
    }break;  
    case 4:  
    {int x;  
    float y,z;  
    clrscr();  
    printf("\n Welcome to the foreign exchange convertor section \n Select the currency you wish to convert.");  
    printf("\n 1. US Dollar");  
    printf("\n 2. Euro");  
    printf("\n 3. Pound");  
    scanf("%d",&x);  
    switch(x)  
    {  
    case 1:  
    {   printf("\n Please enter the amount of rupees you wish to convert");  
    scanf("%f",&y);  
    z=45/y;  
    printf("\n The converted rate is $ %f",z);  
    getch();  
    goto b;  
    }break;  
    case 2:  
    {   printf("\n Please enter the amount of rupees you wish to convert");  
    scanf("%f",&y);  
    z=75/y;  
    printf("\n The converted rate is euro %f",z);  
    getch();  
    goto b;  
    }break;  
    case 3:  
    {printf("\n Please enter the amount of rupees you wish to convert");  
    scanf("%f",&y);  
    z=60/y;  
    printf("\n The converted rate is pound %f",z);  
    getch();  
    goto b;  
    }break;  
    default:  
    exit(0);  
   }  }break;}}}}}

 

Other Projects to Try:

  1. How to Implement Hash Table using C language
  2. Sparse Matrix Operations Code using C Langauge
  3. Single Link List code using C Language
  4. Matrix operations in c language
  5. Banking Management System Project in Visual Basic with Source Code

Filed Under: C Assignments

Graphical User Interface designer for Java project

June 23, 2013 by ProjectsGeek Leave a Comment

Graphical User Interface designer for Java

 

The ambition where to develop a fully functional GUI designer for Java. It was to be 100% cross platform compliant, fast and easy to use with “hidden” power features, such as keyboard shortcuts for all operations. The program will base it’s structure on open standards and therefore have a strong foundation which easily can be extend. All code must be available to the public and based on the open source Gnu Public License.

The Gart must be easy to install and use. It will implement several quick start features which, makes it easy to start on new project without getting to many questions. It’s very important that The Gart will not implement anything else then GUI features and that way avoid becoming a monster application using unnecessary time and resources.

By implementing all these features we hope The Gart will be an unique application and appeal to all levels of Java coders.

System Specification for Graphical User Interface designer

 

The system on which the project developed has the following configuration.

Hardware Specifications

Main Memory : 64MB.

Micro Processor : Pentium –III.

Hard Disk Drive : 4.3 GB.

Cache Memory : 512KB.

Software Specifications

Operating System : Windows 98/NT.

Front End : Java Using Swings/AWT.

JAVA VERSION : JDK 1.4

 

 

Other Projects to Try:

  1. Packtpub.Android.User.Interface.Development.Beginners.Guide.
  2. Notepad Application in Java Project with Source Code
  3. Broadcasting Chat Server Project using Java
  4. Multiple Inheritance in java program
  5. SMS Hiding Graphical Password Android Project

Filed Under: Uncategorized

How to convert Binary to Gray conversion

June 23, 2013 by ProjectsGeek 3 Comments

Binary to Gray conversion

 

Write a Program for Binary to Gray conversion in Assembly language . Algorithm for Binary-Gray conversion is given below and it can be easily implemented by this algorithm .

Algorithm for Binary to Gray conversion

 

Step I : Get the number whose gray code equivalent is to be found.

Step II : Add number with itself.

Step III : XOR this added result with the original number.

Step IV : Shift the XOR ed number by 1 bit position to the right to get the Gray equivalent.

Step V : Display the result.

Step VI : Stop.

Program for Binary to Gray conversion 

.model small  
 .data            
 a db 0AH  
 .code  
      mov      ax, @data           ; Initialize data section  
      mov      ds, ax  
      mov      al, a               ; Load number1 in al  
      mov      bl, al              ; get the number in bl also  
      mov      ah, 00h             ; ah=00  
      add      ax, ax              ; add contents of ax with itself   
      xor      bx, ax              ; xor the added contents with number itself  
      ror      bx, 01h             ; roll by 1 bit to right to get gray equivalent  
      mov      ax, bx              ; copy result to ax also  
      mov      ch, 02h             ; Count of digits to be displayed  
      mov      cl, 04h             ; Count to roll by 4 bits  
      mov      bh, al              ; Result in reg bh  
 l2:     rol      bh, cl           ; roll bl so that msb comes to lsb   
      mov      dl, bh              ; load dl with data to be displayed  
      and      dl, 0fH             ; get only lsb  
      cmp      dl, 09              ; check if digit is 0-9 or letter A-F  
      jbe      l4  
      add      dl, 07              ; if letter add 37H else only add 30H  
 l4:     add      dl, 30H  
      mov      ah, 02              ; Function 2 under INT 21H (Display character)  
      int      21H  
      dec      ch                  ; Decrement Count  
      jnz      l2  
      mov      ah, 4cH             ; Terminate Program  
      int      21H  
 end

 

How to Run this Program

 

For Running this program you should have installed Tasm on you computer .

C:\programs>tasm bin-gray.asm

Turbo Assembler Version 3.0 Copyright (c) 1988, 1991 Borland International

Assembling file: bin-gray.asm

Error messages: None

Warning messages: None

Passes: 1

Remaining memory: 438k

C:\programs>tlink bin-gray.obj

Turbo Link Version 3.0 Copyright (c) 1987, 1990 Borland International

Warning: No stack

C:\programs>bin-gray

0F

 

 

Other Projects to Try:

  1. Add 8 Bit BCD Numbers
  2. Assembly Programs
  3. 2s Complement of a Numbers Assembly Code
  4. Assembly Language Codes
  5. ASCII-Binary conversion in Assembly Language

Filed Under: Assembly Codes Tagged With: Assembly Codes

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 94
  • Page 95
  • Page 96
  • Page 97
  • Page 98
  • Interim pages omitted …
  • Page 135
  • Go to Next Page »

Primary Sidebar

Tags

.Net Projects Download Android Project Ideas Android Projects Angular 2 Assembly Codes C # Projects C & C++ Projects C++ Projects Class Diagrams Computer Graphics Database Project Data Mining Projects DataScience Projects Datastructure Assignments Download Visual Basic Projects Electronics project Hadoop Projects Installation Guides Internet of Things Project IOS Projects Java Java Interview Questions Java Projects JavaScript JavaScript Projects java tutorial JSON JSP Projects Mechanical Projects Mongodb Networking Projects Node JS Projects OS Problems php Projects Placement Papers Project Ideas Python Projects seminar and presentation Struts

Search this Website


Footer

Download Java Project
Download Visual Basic Projects
Download .Net Projects
Download VB Projects
Download C++ Projects
Download NodeJs Projects
Download School Projects
Download School Projects
Ask Questions - Forum
Latest Projects Ideas
Assembly Codes
Datastructure Assignments
Computer Graphics Lab
Operating system Lab
australia-and-India-flag
  • Home
  • About me
  • Contact Form
  • Submit Your Work
  • Site Map
  • Privacy Policy