Tag Archives: from


Design a two bit counter (a sequential circuit) that counts from 00 to 10 only – IGNOU MCA Assignment 2015 – 16

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-012 Course Title : Computer Organisation and Assembly Language Programming Assignment Number : MCA(I)/012/Assignment/15-16 Maximum Marks : 100 Weightage : 25% Design a two bit counter (a sequential circuit) that counts from 00 to 10 only. Thus, the counter states are 00, 01, 10, 00, 01,…. You should… Read More »

Write a program to read formatted data from the file. 6m Jun2008

Write a program to read formatted data from the file. 6m Jun2008 CODE:- #include<stdio.h> void main() { int account; char name[30]; double bal; FILE *fp; if((fp=fopen(“data.txt”,”r”))== NULL) printf(“FILE not present \n”); else do{ fscanf(fp,”%d%s%lf”,&account,name,&bal); if(!feof(fp)) { if(bal==0) printf(“%d %s %lf\n”,account,name,bal); } }while(!feof(fp)); getch(); } ScreenShots:  

Write an algorithm and draw a corresponding flowchart to print the sum of all integers starting from 2 to the given positive integer x where x >= 2. 10m Dec2006

Write an algorithm and draw a corresponding flowchart to print the sum of all integers starting from 2 to the given positive integer x where x >= 2. 10m Dec2006 An algorithm is a finite set of steps defining the solution of a particular problem. An algorithm is expressed in pseudo code – something resembling C language… Read More »

An Assembly program to read ten (10) characters from console

Now we will write another Assembly program which reads ten (10) characters from console. Let’s identify variables needed for this program. First variable will be holding the Message “ENTER 10 CHARACTERS : ” to be printed for the User, So in all One variable. The identified variable is MESSAGE. First Line – DATA SEGMENT DATA SEGMENT is the… Read More »

An Assembly program to read a character from console and echo it.

Now we will write another Assembly program which read a character from console and echo it. Let’s identify variables needed for this program. First variable will be the one which will hold the values entered at Console and it will be X. Other variable will be holding the Message “ENTER CHARACTER” to be printed for… Read More »