Tag Archives: Add


Assume that a new machine has been developed. Give justification of the selection of every addressing mode? – IGNOU MCA Assignment 2014 – 15

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-012 Course Title : Computer Organisation and Assembly Language Programming Assignment Number : MCA (2)/012/Assign /2014-15 Maximum Marks : 100 Weightage : 25% Assume that a new machine has been developed. This machine has 64 general purpose registers of 64 bits each. Out of these 64 registers, 32… Read More »

Evaluate 2’s complement of 9 bits including sign bit. iii) Add 124 and 132 – IGNOU MCA Assignment 2014 -15

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-012 Course Title : Computer Organisation and Assembly Language Programming Assignment Number : MCA (2)/012/Assign /2014-15 Maximum Marks : 100 Weightage : 25% Perform the following arithmetic operations:- Using binary signed 2’s complement notation for integers. You may assume that the maximum size of integers is of 9… Read More »

Evaluate 2’s complement of 9 bits including sign bit. i) Add – 256 and 206 – IGNOU MCA Assignment 2014 – 15

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-012 Course Title : Computer Organisation and Assembly Language Programming Assignment Number : MCA (2)/012/Assign /2014-15 Maximum Marks : 100 Weightage : 25% Perform the following arithmetic operations :- using binary signed 2’s complement notation for integers. You may assume that the maximum size of integers is of… Read More »

A C program to add two fractions & print resultant fraction – IGNOU MCA Assignment 2014 – 15

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-011 Course Title : Problem Solving and Programming Assignment Number : MCA(1)/011/Assign/2014-15 Maximum Marks : 100 Weightage : 25%   Write a C program to add two fractions and display the resultant fraction. The program should prompt the user to input Fraction-One and Fraction-Two. The numerator and denominator of each fraction‟s are… Read More »

Write a Menu driven program in C to add, subtract add multiply two distances which are given in feet and inches. 10m Dec2005

Write a Menu driven program in C to add, subtract add multiply two distances which are given in feet and inches. [e.g. 3 ft 9 inches + 2 ft 5 inches=6 ft 2 inches]. 10m Dec2005 #include<stdio.h> struct LENGTH {     int FEET;     int INCH; }; void main() {  int I;  struct LENGTH A,B;… Read More »

Write a program in ‘C’ to add the given number of days to the current date and print the (final) resultant date. (for e.g. adding 12 days to 22/08/2005 will result in 03/09/2005) 10m Dec2005

Write a program in ‘C’ to add the given number of days to the current date and print the (final) resultant date. (for e.g. adding 12 days to 22/08/2005 will result in 03/09/2005)  10m Dec2005     #include <time.h> #include <stdio.h> void  main() { struct tm date = {0} ; time_t timer; clrscr(); timer=time(NULL); date =… Read More »

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 »

An Assembly program which adds the sales tax in the Price list of items and replace the Price list with the new list

Now we will write another Assembly program to calculate the average of three given numbers stored in memory. Let’s identify variables needed for this program. First variables will be the one which will hold the values present in the Price list and it will be array PRICE. Other variables will be holding the Sale’s Tax and it… Read More »

An Assembly program to add two numbers present in (variables) memory locations and store the result in next (variable) memory location

Now we will write another Assembly program which does some Addition Operations. Let’s identify variables needed for this program. First variables will be the one which will hold the values present in the variables to be Added and it will be NUM1 and NUM2. Other variables will be holding the Output or Result of the… Read More »

An interactive C program to do the following computation by providing the option using the switch statement 1.Add two matrices. 2. Subtract two matrices. 3. Multiply two matrices.

Let’s identify variables needed for this program. In this program, we need to save matrices which consists Rows and Columns. To save this we need Two dimensional ARRAY. Multi-dimensional Array is a nothing different than any Array but the only difference is that it has more than one dimension to it e.g. square has two… Read More »