Tag Archives: accept

Write a program in C language that will accept a Graph as input and will generate its Minimum Cost Spanning Tree – IGNOU MCA Assignment 2015 – 16

MASTER OF COMPUTER APPLICATIONS Course Code : MCSL-025 Course Title : Lab Course Assignment Number : MCA(II)/L-025/Assignment/15-16 Maximum Marks : 50 Weightage : 25%   Write a program in C language that will accept a Graph as input and will generate its Minimum Cost Spanning Tree. #include <stdio.h> #define MAXVERTICES 10 #define MAXEDGES 20 typedef… Read More »

Write a program in C’ that accepts 10 words of varying length and arranges the words in the descending order of word length. Use arrays. 10m Dec2006

Write a program in C’ that accepts 10 words of varying length and arranges the words in the descending order of word length. Use arrays. 10m Dec2006 #include<stdio.h> #include<string.h> void main() { int i,j; char array[10][10],temp[10]; clrscr(); printf(“Enter ten words : \n”); for(i=0;i<10;i++) { printf(“%d : “,i+1); gets(array[i]); } for(i=0;i<10;i++) { for(j=i;j<10;j++) { if(strlen(array[i])<strlen(array[j])) {… Read More »

Write the functions to perform the following : 10m Dec2005

Write the functions to perform the following : 10m Dec2005  To accept a string and print the rightmost “n” characters   #include<stdio.h> #include<string.h> #include<alloc.h> char *rightsub(char *,int n); void main() { char s1[20],s2[20],ch,*s; int n; clrscr(); printf(“enter the string s1:”); gets(s1); printf(“enter the no of characters to extract=”); scanf(“%d”,&n); s=rightsub(s1,n); printf(“\nright sub string: %s”,s); free(s); getch();… Read More »

An assembly program to accept a decimal number and print it’s 2’s complement binary and hexadecimal – IGNOU MCA Assignment 2013

MASTER OF COMPUTER APPLICATIONS Course Code : MCSL-017 Course Title : C and Assembly Language Programming Assignment Number : MCA(1)/L017/Assign/2013    Write an assembly language program to accept a decimal number and display it’s two’s complement representation in binary and hexadecimal formats   DATA SEGMENT     DIGIT1 DB ?     DIGIT2 DB ?     HEXNUM DB… Read More »