Programming Lab

Programming is the process of creating a set of instructions that tell a computer how to perform a task. Programming can be done using a variety of computer programming languages, such as JavaScript, Python, C and C++.

Subject: Software Engineering Lab (CSE12321)

List of Programs



File Link :- Software Engineering Lab




Subject: Principles of Programming Lab (CSE12454)

                                                                   List of Program


variables.



File Link :- Principles of Programming Lab





Subject :- Introduction to Programming Lab

List of Programs


1) Write a C Program to display any text on the screen.

2) Write a C Program to evaluate area of a circle.

3) Write a C Program to convert any temperature in Celsius to its equivalent Fahrenheit temperature and vice versa.

4) Write a C Program to find the average of 3 floating point numbers.

5) Write a C Program to swap two numbers using third variable.

6) Write a C Program to swap two numbers without using third variable.

7) Write a C Program to convert a given no Of days into years, months, days.

8) Write a C Program to compute simple interest.

9) Write a C Program to find the largest among three nos.

10) Write a C Program to check whether a no. is even or odd.

11) Write a C Program to check whether a year is leap year or not.

12) Write a C Program to compute Z=X+ Y++; Print X, Y, Z.

13) Write a C Program to compute x=++y; Print x, y

14) Write a C Program to evaluate k=i>>2,l=j<<2. Print k, l.

15) Write a C Program to evaluate bitwise AND (&) and bitwise OR (|)

16) Using ternary operator write a C Program to find out largest of three nos.

17) Write a C Program to calculate quadratic equation.

18) Write a C Program to find GCD(09) and LCM of two nos.

19) Write a C Program to find the sum of all integers greater than 100 and less than 200 that are divisible by 7. (Using FOR & IF)

20) Write a C Program to find the sum of the series: 1! +2! +3! +…+N!

(Using WHILE)

21) Write a C Program to print the series of prime nos. (Using WHILE)

22) Write a C Program to print:

                       *

                                ***

                                *****

23) Write a C Program to print:

                                *

                               **

                              ***

                             ****

24) Write a C Program to print:

1

   232

                            34543

                          4567654

 

25) Write a C Program to print:

*

   ***

                             *****

                              ***

                               *

26) Write a C Program to print:

                             1

  22

                             333

  4444

                             55555

27) Write a C Program to evaluate Fibonacci Series

28) Write a C Program to evaluate series of Armstrong number.

29) Write a C Program to find out the sum of the series:

a)             12 + 3+ 52 + 72 + …… + n2

b) 1 – x +x2/2! – x3/3! +…

30) Write a recursive function to find the summation of 1st n natural nos. and test the function by calling from a main ().    

31) WC P to find the biggest and smallest of n numbers.(03)

32) WCP to find the frequency of digits in a set of n numbers. (03)

33) WCP to give the macro definition to find the max of two nos. (03)

34) WCP to arrange a set of n numbers in ascending (03) or descending order (04)

35) Using ternary operator write a macro to find out the absolute value of a no. (03)(05)

36) Write a function to find the cube of a number and use this to main to evaluate x3+y3+z3  (04)

37) WCP to print the diagonal of a matrix.(04)

38) Write a recursive C function to return the GCD of two nos. (05)

39) Sum of two matrices. (05)

40) Recursive C function to find the factorial of a no. (05)

41) Write a function to calculate the value of power (a, b).

42) Quadratic equation using function.

43) To count the no of 1s in a character byte and if it is even then set MSB 0 else set MSB to 1.

44) To copy a string to another string.

45) To insert data in link list in a sorted manner.

46) To count letter ‘E’ in a 10-letter word.

47) To find the length of a string without using strlen ().

48) To find the number of vowels & consonants in a line of text.

49) To convert lower case alphabet to upper case alphabet.

50) To accept a string as a command line argument hence find its length.

51) To check whether a input string is palindrome or not.

52) Copy a disk file into another using command line argument.

53) To count the number of lines, words, characters in a given file.

54) To display the frequency of character in a given disk file.

55) To create a file.

56) To copy file f1.dat as f2.dat assuming f1 is available in current working directory.

57) To create an array of 30 structure variables and read all the members of each variable.

58) Will receive a file name and a line of text as command line arguments and write the text to that file.