Tag Archives: algorithms

Write and Implement multiple stacks in a single dimensional array – IGNOU MCA Assignment 2014-15

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-021 Course Title : Data and File Structures Assignment Number : MCA(2)/021/Assign/2014-15 Maximum Marks : 100 Weightage : 25%   Implement multiple stacks in a single dimensional array. Write algorithms for various stack operations for them.   #include <stdio.h> #define max 10 int top1, top2, stk_arr[max]; void push();… Read More »

A C program and algorithm to implement stack in a single dimensional array – IGNOU MCA Assignment 2014 – 15

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-021 Course Title : Problem Solving and Programming Assignment Number : MCA(1)/021/Assign/13 Assignment 2013   Implement stack in a single dimensional array. Write algorithms for various stack operations for them.   #include <stdio.h> #define MAX 10 /* The maximum size of the stack */ void push(int [],int *,int);… Read More »

A C program to covert decimal to binary, octal & Hexadecimal – IGNOU MCA Assignment 2013

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-011 Course Title : Problem Solving and Programming Assignment Number : MCA(1)/011/Assign/13 Assignment 2013   A C program that takes a decimal number and converts it into binary, octal and hexadecimal equivalents. Your program should have functions for each type of conversion. These functions should implement algorithms to… Read More »