Wednesday, July 5, 2023

1 B.COM CA Elective - I: PROGRAMMING IN C AND LAB

 I B.Com. CA 

FIRST YEAR – SEMESTER – I
Elective - I: PROGRAMMING IN C AND LAB


Simple Programs: for Input and Output

List of Programs

1. Write a C program to find roots of a Quadratic equation.

2. Write a C program to find the total no. of digits and the sum of individual digits of a positive integer.

3. Write a C program to generate the Fibonacci sequence of first N numbers.

4. Write a C program to sum the series S=1 – x + (x^2/2!) - (x^3/3!) + ---- - (x^n/n!)

5. Write a C program to arrange the elements of an integer array using Bubble Sort algorithm.

6. Write a C program to input two matrices and perform matrix multiplication on them

7. Write a C program to check whether the given string is palindrome or not without using Library functions.

8. Write a C program to count the number of lines, words and characters in a given text.

9. Write a C program to generate Prime numbers in a given range using user defined function.

10. Write a C program to find factorial of a given number using recursive function.

11. Write a C program to maintain a record of n student details using an array of structures with four fields - Roll number, Name, Marks and Grade. Calculate the Grade according to the following conditions.

Marks Grade

>=80 A

>=60 B

>=50 C

>=40 D

<40 E

Print the details of the student, given the student Roll number as input.

No comments:

Post a Comment

INTERNET OF THINGS

  Core XII: INTERNET OF THINGS SEMESTER: IV                                  CODE: P25CA412 UNIT- I  Introduction to Internet of Things:  In...