Tag Archives: C Programming Tutorial

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 »

A C program to generate Salary Pay Slip for Staff – 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    An interactive C program to generate pay slips for the staff of size 12 employees (2 members are clerks, one computer operator, 6 salesmen, 3 helpers) , working in a small chemist retail… Read More »

A C Program to used as Weight Converter – 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  An interactive C program called “WEIGHT CONVERTER” that accepts the weight in milligrams / decigrams / centigrams / kilograms /ounces / pounds / tons and displays its equivalent in grams.   #include<stdio.h> void main()… Read More »

A C program to check whether the string is a palindrome or not, using pointers – 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     An interactive C program to check whether the given string is a palindrome or not, using pointers.   #include<stdio.h> void main() {     int MID,FLAG,I,LEN=0;     char *PTR1,*PTR2,S[50];     clrscr();     printf(“TO CHECK… Read More »

A C Program to replace a character in a String Using Function – 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 function strreplace(s, chr, repl_chr) which will replace each occurrences of character chr with the character repl_chr in the string s. The function returns the number of replacements. Place the source… Read More »

A C program to find out perfect numbers from 1 and 50 – 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 to find out perfect numbers from 1 and 50   #include<stdio.h> void main() { int NUM,I,SUM=0; clrscr(); for(NUM=1;NUM<50;NUM++) { for(I=1;I<NUM;I++) { if(NUM%I==0) { SUM=SUM+I; } } if(SUM==NUM) { printf(“\n%d IS… Read More »

C018 A C program to compute transpose of a matrix

Let’s identify variables needed for this program. Transpose of A matrix which is formed by turning all the rows of a given matrix into columns and vice-verse. The transpose of matrix A is written AT. In this program, we need to save matrices which consists Rows and Columns. To save this we need Two dimensional… Read More »