Pages

Search This Site..

Sep 30, 2011

C Program to mask password text with *.
This program is to illustrate how user authentication
is made before allowing the user to access the secured
resources. It asks for the user name and then the
password. The password that you enter will not be
displayed, instead that character is replaced by '*'.
Read more about C Programming Language .

Arrays in C.
Write a C program to read N integers and store them
in an array A, and so find the sum of all these
elements using pointer. Output the given array and
and the computed sum with suitable heading. Read more about C Programming Language .

Write a C program to read a matrix A (MxN) and to find the
following using functions
a) Sum of the elements of each row
b) Sum of the elements of each column
c) Find the sum of all the elements of the matrix
Output the computed results with suitable headings.
Read more about C Programming Language .

C Program to find the Multiplication of two matrices.
C Program Develop functions
a) To read a given matrix
b) To output a matrix
c) To compute the product of two matrices
Use the above functions to read in two matrices A (MxN)
B (NxM), to compute the product of the two matrices, to
output the given matrices and the computed matrix in a
main function
Read more about C Programming Language .

Write a C program to sort given N elements using SELECTION sort method
using functions :
a) To find maximum of elements
b) To swap two elementsSelection sort is comparison based sorting technique, It finds the minimum value in list and swaps that value to the first position and so on.
Selection sort is inefficient on larger data.
Read more about C Programming Language .

Write a C program to read N names, store them in the form
of an array and sort them in alphabetical order.Output the
given names and the sorted names in two columns side by side
with suitable heading.Program will sort the name strings using Bubble Sort technique.
Read more about C Programming Language .

Write a C program to read an English sentence and replace
lowercase characters by uppercase and vice-verso. Output
the given sentence as well as the case converted sentence on
two different lines.
Read more about C Programming Language .

Write a C program to read a string and check whether it is
a palindrome or not (without using library functions). Output
the given string along with suitable message.Palindrome is a word, sentence, group of characters, or number, that remains same, when reversed.
For example: GADAG, 9009...
Read more about C Programming Language .

Write a C program to read A (MxN), find the transpose
of a given matrix and output both the input matrix and
the transposed matrix.Transpose of a matrix is the interchanging the rows and columns, If A is matrix of order(i*j), where i is the row and j is the column, then Transpose of A is A(j*i).
Read more about C Programming Language .

Write a C program to read two matrices A (MxN) and B(MxN)
and perform addition ,subtraction of A and B, and Find the
trace of the resultant matrix. Output the given matrix,
their sum or Differences and the trace.
Read more about C Programming Language .

Write a C program to evaluate the given polynomial
P(x)=AnXn + An-1Xn-1 + An-2Xn-2+... +A1X + A0, by
reading its coefficents into an array.A Polynomial is a mathematical expression involving a sum of powers in one or more variables multiplied by coefficients.
Read more about C Programming Language .

Example programs to solve the problems of Arrays in C.
Write a C program to read in four integer numbers into an array
and find the average of largest two of the given numbers without
sorting the array. The program should output the given four numbers
and the average with suitable headings.
Read more about C Programming Language .

Write a C program to input real numbers and find the
mean, variance and standard deviation.Mean is sum of values divided by the total number of values.
Variance shows the how the data s are distributed.
Standard deviation is the square root of its variance.
Read more about C Programming Language .

Write a C program to input N numbers (integers or reals)
and store them in an array. Conduct a linear search for a
given key number and report success or failure in the form
of a suitable message.Linear search is the basic searching algorithm, also called as sequential search.
Algorithm search's the element by comparing the each element in the list, until the desired element found.
Read more about C Programming Language.

Example programs to solve the problems of Arrays in C.
C program to read N integers (zero, +ve and -ve)
into an array A and to
a) Find the sum of negative numbers
b) Find the sum of positive numbers and
c) Find the average of all input numbers
Read more about C Programming Language .

Write a C program to find the value of cos(x) using the series
up to the given accuracy (without using user defined function)
Also print cos(x) using library function.
Read more about C Programming Language.

Write a C program to find the value of sin(x) using the series
up to the given accuracy (without using user defined function)
Also print sin(x) using library function.
Read more about C Programming Language.

Write a C program to find the GCD and LCM of two integers
output the results along with the given integers. Use Euclids' algorithm to find the GCD and LCM.Euclids' algorithm uses the division algorithm which repeatedly divides starting from the two numbers we want to find the GCD of until we get a remainder of 0. Read more aboutC Programming Language .

Write a C program to find the sum of 'N' natural numbers.
Natural numbers are the whole numbers except zero, usually we used for counting.
Example:1, 2, 3, 4,-----------
Read more about C Programming Language .