Friday, April 17, 2015

List of C Programs for FE SEM II (SPA)

1.        Write a program to accept a two digit number and display it in reversed form.
2.        Write a program to display the first n natural numbers, where the value of n is taken from user.
3.        Write a program to find the factorial of a number.
4.        Write a program to display the multiplication table of a user entered number. The table must be upto 10.
5.        Write a program to calculate the value of the following series.
6.        Write a program to display the following for the users specified number of lines.
*
**
*** 
****
*****
|
 n lines 
7.        Write a program to display the following for the user specified number of lines.
       *
      **
     ***     
    ****
   *****
  ******     
 *******
********
   |
   n lines

8.        Write  a program to display the following asking the user for the number of lines
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6

9.        Write a program to display the following asking the user for the number of lines.
                      A
                   A B A
                A B C B A
             A B C D C B A
          A B C D E D C B A
        A B C D E F E D C B A

10.     Write a program to check if the entered number is prime number or not.
11.     Write a program to check if the entered number is Armstrong or not.
12.     Write a program to check if the year entered is leap year or not.
13.     Write a program to display the user entered number in words.
14.     Write a program to find value of y using function, where y=xn.
15.     Write a menu driven program to perform add / subtract / multiply / divide / modulus based on the users choice.
16.     Write a program to display the month name by accepting the month number from user.
17.     Write a program to demonstrate the use of break statement and continue statement.
18.     Write a program to find GCD and LCM of two numbers.
19.     Write a program to add two numbers using function.
20.     Write a program to find the factorial of a number using a function.
21.     Write a program to find n Fibonacci elements, using a recursive function.
22.     Write a program to find value of y using recursive function, where y=xn.
23.     Write a program to print transpose of a square matrix.
24.     Write a program to accept ‘n’ integers from user into an array and display the average of these numbers.
25.     Write a program to accept ‘n’ integers from user into an array and display the count of even and odd numbers of these.
26.     Write a program to find an element in an array and display the index of the element using a function. OR Write a program to implement sequential search algorithm.
27.     Write a program to sort numbers in ascending order. Write a program to implement bubble sorting algorithm for sorting numbers in ascending order.
28.     Write a program to accept ‘n’ integers from user into an array and display the largest element.
29.     Write a program to add two matrices of size m x n.
30.     Write a program to accept a string, copy it into another string and display this new string.
31.     Write a program to accept two strings, join them and display the result.
32.     Write a program to accept a string and find its length without using the string header file.
33.     Write a program to reverse a user entered string.
34.     Write a program to check whether the entered string is palindrome or not (Do not use the string header file).
35.     Write a program to find the sum of column elements of a 2 dimensional M x N array.
36.     Write a program to count blank spaces, digits, vowels and consonants in the string.
37.     Write a program to swap two numbers using a function. Pass the values to be swapped to this function using call-by-value method.
38.     Write a program to swap two numbers using a function. Pass the values to be swapped to this function using call-by-reference method.
39.     Write a program to store and display the name, roll number and fees of a student using structure.
40.     Define structure within structure consisting of following elements:
                                                      i.        Employee Code
                                                     ii.        Employee Name
                                                    iii.        Employee Salary and
                                                   iv.        Employee Date_of_joining

Write a C program to read at least 10 records and display them.

No comments:

Post a Comment

ECCF Question Describe the Block diagram of Operational Amplifier Draw the pin diagram of  µA 741 op-amp Draw the schematic diagram o...