Search This Blog

Tuesday, September 9, 2025

Computer Programming Lab (23CS51) / A.Y : 2025-2026 /IT / I Sem / A

 

PRE-REQUISITE: Mathematics, Basic Computer Terminology


COURSE EDUCATIONAL OBJECTIVE (CEO): The course aims to give students hands–on experience and train them on the concepts of the C-Programming language.


COURSE OUTCOMES (COs): At the end of the course, the student will be able to:

CO1:

Read, understand, and trace the execution of programs written in C language

(Understand-L2)

CO2:

Apply the right control structure for solving the problem

(Apply-L3)

CO3:

Develop, Debug and Execute programs to demonstrate the applications of arrays, functions, pointers and files in C

(Apply-L3)

CO4:

Improve individual / teamwork skills, communication and report writing skills with ethical values.

 


WEEK 1

Objective: Getting familiar with the programming environment on the computer and writing the first program.

Lab1: Familiarization with programming environment

i) Basic Linux environment and its editors like Vi, Vim & Emacs etc.

ii) Exposure to Turbo C, gcc

iii) Writing simple programs using printf(), scanf()


WEEK 2

Objective: Getting familiar with how to formally describe a solution to a problem in a series of finite steps both using textual notation and graphic notation.

Lab 2: Converting algorithms/flow charts into C Source code.

Developing the algorithms/flowcharts for the following sample programs

i) Sum and average of 3 numbers

ii) Conversion of Fahrenheit to Celsius and vice versa

iii) Simple interest calculation


crop rotation problem


WEEK 3

Objective: Learn how to define variables with the desired data-type, initialize them with appropriate values and how arithmetic operators can be used with variables and constants. Suggested Experiments/Activities:

Lab 3: Simple computational problems using arithmetic expressions.

i) Finding the square root of a given number

ii) Finding compound interest

iii) Area of a triangle using heron’s formulae

iv) Distance travelled by an object



Practice:

1. Write a C program to find the sum and average of 5 different subject marks


2. Write a C program to find the total money in a piggy bank that contains 50/-,10/- notes,5/-and 2/- rupee coins.


3. Write a C program to find the kinetic Energy.


4. Write a sample C Program on basic arithmetic operators.


5. Write a sample C Program on basic relational operators.


6. Write a sample C Program to find the maximum number between the given two numbers using the ternary operator.


7. Write a sample C Program to find the minimum number between the given two numbers using the ternary operator.


8. Write a sample C Program to find the maximum number between the given three numbers using the ternary operator.


9. Write a sample C Program to find the minimum number between the given three numbers using the ternary operator.


10. Write a C program to work on the increment and decrement operators.



No comments:

 https://meet.google.com/sxd-wafk-kjh