Tag Archives: same

An Assembly Language program to count number of alphabets are same – IGNOU MCA Assignment 2014-15

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-012 Course Title : Computer Organisation and Assembly Language Programming Assignment Number : MCA(1)/012/Assign/2014-15 Maximum Marks : 100 Weightage : 25%   Write a program in 8086 assembly Language (with proper comments) to count the number of those alphabets that are same as well as are at the… Read More »

Write a program in C, to copy file1 to another file2 in the same directory 7m Jun2007

Write a program in C, to copy file1 to another file2 in the same directory. 7m Jun2007 Code: #include<stdio.h> void main() { int ch,size=0; FILE *fp1; FILE *fp2; clrscr(); if((fp1=fopen(“readme.txt”,”r”))==NULL) { printf(“FILE DOES NOT EXIST\n”); exit(0); } if((fp2=fopen(“duplicate.txt”,”w”))==NULL) { printf(“FILE CAN NOT BE CREATED\n”); exit(0); } while(!feof(fp1)) { ch=getc(fp1); putc(ch,fp2); size++; } fclose(fp1); fclose(fp2); printf(”… Read More »

ASSEMBLY29 An Assembly program using the method of “add-and-shift” loop, in which you use the binary digits of one number to control additions of a shifted version of the other number into a running total; this is essentially the same algorithm you use when multiplying numbers by hand in decimal

Now we will write another Assembly program, Using the method of “add-and-shift” loop, in which you use the binary digits of one number to control additions of a shifted version of the other number into a running total; this is essentially the same algorithm you use when multiplying numbers by hand in decimal Let’s identify variables… Read More »