Bachelor of Computer Applications programme offered by USICT at affiliated institutions.
Course Code: BCA 101P L T/P C
Course Name: Programming for Problem Solving Using C Lab 0 4 2
LEARNING OBJECTIVES:
This course will provide the learners the following:-
1. Understanding of the syntax and the semantics of C programming language
2. Building of their logics for solving a given problem.
PRE-REQUISITES: None
COURSE OUTCOMES (COs):
After completion of this course, the learners will be able to:
BT
CO # Detailed Statement of the CO Level Mapping to PO #
Develop programming skills by learning the fundamentals of
CO1 structured programming using C Language. BTL3 PO1, PO2, PO3
Design and develop programs using arrays, storage classes,
CO2 functions and to understand memory management through BTL4 PO1, PO2, PO3
pointers
Critically analyze real world problems using structures, unions PO1, PO2, PO3,PO4,
CO3 and develop applications for handling text and binary files. BTL5 PO5
Explore the use of command line arguments, string manipulation
CO4 and standard libraries. BTL5 PO1, PO2, PO4,
List of Practicals
Mapping to CO
S. No. Detailed Statement #
Core Practicals (Implement minimum 8 out of 10 practical)
1. Write a program to convert temperature from Celsius to Fahrenheit by taking CO1
input from the user.
2. Write a program to find the greatest number among 3 numbers given by the user. CO1
3. Write a program to check if a given number is a prime number or not. CO1
Write a program to display the following pattern upto N rows, taking the value of
N from the user:
4. 1 CO1
2 3
4 5 6
7 8 9 10
5. Write a program to input marks of 50 students using an array and display the CO2
average marks of the class.
6. Write a program to search for a number entered by the user in a given array and CO2
display the array in ascending order.
7. Write a program to check if a string is palindrome or not. CO2
8. Write a program to add, subtract, multiply and divide two numbers using CO2
pointers.
Write a program to create a structure for employees containing the following data
9. members: Employee ID, Employee Name, Age, Address, Department and Salary. CO3
Input data for 10 employees and display the details of the employee from the
employee ID given by the user.
Write a program to create two files with names EvenFile and OddFile. Input 20
10. numbers from the user and save even numbers in EvenFile and odd numbers in CO3
OddFile.
Application Based Practicals (Implement minimum 5 out of 10 practical)
11. Write a menu driven program to construct a calculator for following arithmetic CO1
operations: addition, subtraction, multiplication, division, average and
Applicable from Batch Admitted in Academic Session 2021-22
Onwards
Bachelor of Computer Applications programme offered by USICT at affiliated institutions.
percentage.
Write a menu driven program to perform the following operations:
12. (i) Print armstrong numbers upto N, (ii) Display prime numbers between 1 to N, CO1
(iii) Reverse of an integer
13. Write a program to convert a hexadecimal number into a binary number. CO1
Write a program to calculate factorial of a number and display fibonacci
14. series upto N terms using recursive functions. CO2
15. Write a program to perform matrix addition, (ii) matrix multiplication, and (iii) CO2
Matrix transpose) on 2D arrays.
Write a program to make use of arrays with structures in the following ways:
16. (i) Use array as a structure data member CO3
(ii) Create array of structure variables
17. Write a program to compare the contents of two files by taking names of the CO3, CO4
files through command line arguments.
18. WAP to perform I/O and make use of file positioning functions on Binary CO4
files. (using fseek, ftell, rewind functions)
Write a menu driven program to implement the following string operations:
(i) Calculate length of a string
19. (ii) Concatenate at the end of a given CO4
(iii) Copy one string to another
(iv) Compare contents of two strings
(v) Copy nth character string to another
20. Write a program to read time in string format and extract hours, minutes and CO4
second also check time validity
Note:
1. In total 15 practical to be implemented. 2 additional practical may be given by the course instructor.
2. This is a suggestive list of programs. However, the instructor may add programs as per
the requirement of the course.
Applicable from Batch Admitted in Academic Session 2021-22
Onwards