C assignment question paper:

Day-6

Bitwise operator programs:

1.C program to get minimum number of bits to store an integer number.        

2.C program to swap two numbers using bitwise XOR operator.

3.C program to counter number of 1’s in an integer number.

Day-7

Digits manipulation programs :

4.C program to check whether number is Perfect Number or not.

5.C program to check whether number is Perfect Square or not.

6.C Program to classify the triangle as equilateral, isosceles and scalene.

Day-8

Mathematical operations programs :

7.C Program To Find The Roots Of Quadratic Equation

8.C program to count occurrence of a particular digit in a number.

9.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

Day-9

Number system conversion program:

10.C Program to convert a Roman numeral to its decimal equivalent

11.C program to find the 2’s complement of a binary number.

12.C program to convert the given Binary number into its equivalent Decimal,Octal and Hexadecimal numbers.

Day-10

Patterns programs:

13.C program to print following Pyramid:

        *

       * *

      * * *

     * * * *

    * * * * *

    * * * * *

     * * * *

      * * *

       * *

        *

14.C program to print following pyramid

1A2B3C4D5E

1A2B3C4D

1A2B3C

1A2B

1A

15.C Program For Draw A Perfect Christmas Tree.

Day-11

Sum of series programs:

16.C program to find sum of following series:

        1+ 1/2 + 1/3 + 1/4 + 1/5 + .. 1/N

17.C program to find sum of following series:

        1 + 3^2/3^3 + 5^2/5^3 + 7^2/7^3 + ... till N terms

18.C program to find sum of the square of all natural numbers from 1 to N.

        Series: 1^2+2^2+3^2+4^2+..N^2

Day-12 & 13

Array programs:

19.C program to replace all EVEN elements by 0 and Odd by 1 in One Dimensional Array.

20.C program to swap adjacent elements of a one dimensional array

21.C program to cyclically permute the elements of an array.

Day-14 & 15

String manipulation program :

22.C program to count upper case, lower case and special characters in a string.

23.C program to convert string in upper case and lower case

24.C program to toggle case of all characters of string.

Day-16

Pointer programs :

25.C program to count vowels and consonants in a string using pointer

26.C Program to Access Elements of an Array Using Pointer.

27. C program for Attempting to modify data through a  non constant pointer to constant data.

Day-18

Structure programs :

28.C program to add two distances in feet and inches using structure.

29.Calculate Difference Between Two Time Periods.

30.C Program to Add Two Distances (in inch-feet) System Using Structures.

Union programs:

31.A program to declare a member of an union as a structure data type and to display the contents     of the union

32.C program to Demonstrate union

33.C program for entering the marks and grade of students by using Union

Day-19

Dynamic memory allocation :

37.C program to read a one dimensional array, print sum of all elements along with inputted array elements using Dynamic Memory Allocation.

38.C program to read and print the student details using structure and Dynamic Memory Allocation.

39.C program to read and print the N student details using structure and Dynamic Memory Allocation.

Day-20

File handeling :

34.C program to print contents in reverse order of a file.

35.C program to copy number of bytes from specific offset to another file.

36.C program to Convert All Characters in Upper Case of a File using C Program.