SAMBHRAM INSTITUTE OF TECHNOLOGY
DEPARTMENT OF BASIC SCIENCE
1BEIT105 PROGRAMMING IN C
LEARNING ACTIVITY (PROGRAMMING ASSIGNMENT)
1. Design and Develop the Algorithm for finding Largest and Smallest of given two numbers. Write
a C program by using if statement
2. Design and Develop the Algorithm and write a C program by using condition operator to the
following
a. find smallest of 2 numbers
b. find largest of 3 numbers
3. Design and Develop the Algorithm for finding the sum of 1 to 100. Write a C Program by using (i)
for loop (ii)while loop (iii)do while loop.
4. Design and Develop the Algorithm for factorial of a number. Write a C Program by using for
loop.
5. Design and Develop the Algorithm for quadratic equation for non-zero coefficient a, b and c.
Write a C program with following
a. Without using switch statement
b. Using switch statement
6. Design and Develop the Algorithm and write a C Program using Single Dimension Array for
following
a. Largest and its position
b. Smallest and its position
7. Design and Develop the Algorithm and Write a C program by using two-dimension array of order
Amxn and Bpxq (where n=p) to find the Sum of two matrices
8. Design and Develop the Algorithm and Write a C program by using two-dimension array of order
Amxn and Bpxq (where n=p) to find the Product of two matrices
9. Design and Develop the Algorithm and Write a C program using strings for following
a. find the length of the string
b. check whether string is palindrome or not
c. concatenate two strings
10. Design and Develop the Algorithm and Write a C Program by using the Recursion Function for
Computing the Fibonacci Series for given Number.
11. Design and Develop the Algorithm and Write a C Program by using the Recursion Function for
computing Factorial of a given Number
12. Design and Develop the Algorithm and Write a C Program by using Recursion Function to
compute the following
n!
NCR= , where n>r
n−r !∗r !
13. Design and Develop the Algorithm and Write a C Program to Store and Display the Student’s
Information by using a Union feature.
14. Design and Develop the Algorithm to define Student with members: name, roll number, marks.
Write a C program by using Structure. Read the students Information and Display the details of
three students.
15. Design and Develop the Algorithm for Book with member’s title, author, and price. Write a C
Program by using the Structure feature to Read and Display the Information for five books.