You are on page 1of 20

K.L.E.

Society’s
K.L.E. INSTITUTE OF TECHNOLOGY, FORM
HUBBALLI ISO 9001: 2015 - KLEIT
Common To All

Document#:
Title: Laboratory Lesson Plan Rev: 1.1
FMTC0306

Academic Year: 2018-19 Semester: I/II

Laboratory Title: Computer Programming Lab Lab. Code: 18CPL17/27


Total Hours: 30 Duration of Exam: 3 Hrs
Total Exam Marks: 100 Total IA. Marks: 40
Lab. Plan Author: Karuna Gull/M.Elemmi /D.P.Mankame/ Supriya Belkar Date: 27/6/2018

Date: 23/7/2018

Checked By: Prof. Dattatreya M.

Pre-requisites:
i. Knowledge of basic mathematics at pre-university level is essential.

Course Outcomes-CO

At the end of the course students will be able to:


1. Write algorithms, flowcharts and program for simple problems.
2. Correct syntax and logical errors to execute a program.
3. Write iterative and wherever possible recursive programs.
4. Demonstrate use of functions, arrays, strings, structures and pointers in problem solving.
Course Articulation Matrix: Mapping of Course Outcomes (CO) Program outcomes

Laboratory Title: Computer Programming Lab Laboratory (Course) Code :18CPL17/27


Semester: I/II Academic Year: 2018-19

Environment and sustainability

Individual and team work


Conduct investigations of

The engineer and society

Project management and


Design/development of
Apply math, science &

Modern tool usage


complex problems

Life-long learning
Problem analysis

Communication
Course Outcomes - CO
engineering

solutions

finance
Ethics
i. Write algorithms,
flowcharts and
3 3 3 1 1 2 3 3
program for
simple problems.
ii. Correct syntax
and logical errors
3 3 3 1 2 3 3
to execute a
program.
iii. Write iterative and
wherever possible
1 3 2 1 2 3 3
recursive
programs.
iv. Demonstrate use
of functions,
arrays, strings,
structures and 3 3 3 1 2 3 3
pointers in
problem solving.

Average 3 3 3 1 1 2 3 3

Page 2 of 20
Program Specific Outcomes (PSOs)

 PSO1: Design, implement and test algorithms for the development of different computer based systems.
 PSO2: Acquire and apply Hardware and Software architectures and tools to build real world applications.
 PSO3: Adopt and incorporate the changing technologies like data engineering, computing technology and
intelligent systems.
CO-PSO Articulation Matrix

Course Outcomes-CO’s PSO-1 PSO-2 PSO-3


i. Write algorithms, flowcharts and program for simple
3 2 1
problems.
ii. Correct syntax and logical errors to execute a program. 3 2 1
iii. Write iterative and wherever possible recursive programs. 3 2 1
iv. Demonstrate use of functions, arrays, strings, structures
3 2 1
and pointers in problem solving.
Average 3 2 1
Degree of compliance 1: Slight 2: Moderate 3: Substantial.

Page 3 of 20
Course Code: 18CPL17/27 Course Title: Computer Programming Lab

L-T-P: 3-0-0 Teaching Hrs:30 USE Duration:

IA Marks: 40 Total Marks: 100


Course
Content 01 SEE Marks:60
Credits

Content

Experiment Title Hrs


No

Familiarization with computer hardware and programming


1 environment, concept of naming the program files, storing,
compilation, execution and debugging. Taking any simple C- code.
PART-A

Develop a program to solve simple computational problems using


2 arithmetic expressions and use of each operator leading to
simulation of a commercial calculator. (No built-in math function)
Develop a program to compute the roots of a quadratic equation by
3
accepting the coefficients. Print appropriate messages.
Develop a program to find the reverse of a positive integer and
4 check for palindrome or not. Display appropriate messages.

An electricity board charges the following rates for the use of


electricity: for the first 200 units 80 paise per unit: for the next 100
units 90 paise per unit: beyond 300 units Rs 1 per unit. All users are
5 charged a minimum of Rs. 100 as meter charge. If the total amount is
more than Rs 400, then an additional surcharge of 15% of total amount
is charged. Write a program to read the name of the user, number of
units consumed and print out the charges.
6 Introduce 1D Array manipulation and implement Binary search.

Implement using functions to check whether the given number is prime


7
and display appropriate messages. (No built-in math function)
PART-B

Develop a program to introduce 2D Array manipulation and implement


8 Matrix multiplication and ensure the rules of multiplication are
checked.
Develop a Program to compute Sin(x) using Taylor series
9 approximation .Compare your result with the built- in Library function.
Print both the results with appropriate messages.
10 Write functions to implement string operations such as compare,
concatenate, string length. Convince the parameter passing techniques.
11 Develop a program to sort the given set of N numbers using Bubble
sort.
Develop a program to find the square root of a given number N and
12 execute for all possible inputs with appropriate messages. Note: Don’t
use library function sqrt(n).
Implement structures to read, write, compute average- marks and the
13 students scoring above and below the average marks for a class of N
students.
14 Develop a program using pointers to compute the sum, mean and
standard deviation of all elements stored in an array of n real numbers.
15 Implement Recursive functions for Binary to Decimal Conversion.

Conduct of Practical Examination:

 All laboratory experiments, excluding the first, are to be included for practical
examination.
 Experiment distribution Page 4 of 20
o For questions having only one part: Students are allowed to pick one
experiment from the lot and are given equal opportunity.
o For questions having part A and B: Students are allowed to pick one
Experiment wise Plan

Course Code and Title: 18CPL17/27 and Computer Programming Lab


Exp Number and Titlxe:01 - Familiarization with computer Planned Hours:03 Hrs/Batch
hardware and programming environment

Learning Outcomes:
At the end of the topic student should be able to:

Sr.No TLO’s CO BL
1 Explain Computer hardware and programming environment i L2

Lab Schedule
Class No. Portion covered per batch
1. Familiarization with computer hardware and programming environment.
2. Concept of naming the program files.
3. Storing, Compilation, Execution and Debugging.

Review Questions
Sr.no Viva voce Questions TLO BL
1 What is Compiler? 1 L1
2 How to save the programs? 1 L3
3 How to debug and execute the program? 1 L3

Page 5 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 and Computer Programming Lab
Exp Number and Title:02 – Simulation of Calculator Planned Hours:03 Hrs/Batch

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
1 Explain switch statement i,ii L1
2 Explain different types of airthmetic operators i,ii L1
3 Implement simple calculation of arithmetic operators i,ii L3

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.

Review Questions
Sr.no Viva voce Questions TLO BL
1 What is Switch Statement? 1 L1
2 What are arithmetic operators? 2 L1
3 How do you perform simple calculation of arithmetic operators? 3 L3

Page 6 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 Computer Programming Lab
Exp Number and Title :03 – Quadratic Equation Planned Hours:03 Hrs/Batch

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL

1 Design an algorithmic solution to find the roots of a quadratic i L2


equation.
2 Draw the flowchart to find the roots of a quadratic equation. i,ii L1

3 Implement quadratic equation using C-programming language i,ii L3

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.no Viva voce Questions TLO BL
1 Define algorithm. 1 L1
2 Define flowchart. 2 L1
3 List the symbols of flowchart. 2 L1
4 Explain conditional statements. 3 L1
5 Explain the syntax and working of else if ladder statement 3 L1
6 What is the formula to find the roots of a quadratic equation. 3 L1

Page 7 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 Computer Programming Lab
Exp Number and Title:04 -Palindrome Planned Hours:03 Hrs/Batch

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
1 Explain looping statements. iii L1
2 Explain the syntax and working of while loop. iii L2
3 Develop a C program to check palindrome or not iii L3

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.no Viva voce Questions TLO BL
1 What is looping? 1 L1
2 List and explain different looping statements. 2 L1
3 What is the difference between while and do while. 1 L1

Page 8 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 Computer Programming Lab
Exp Number and Title:05 - Electricity Charges Planned Hours:03 Hrs/Batch

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
1 Implement a program to read the name of the user, number of i,ii L3
units consumed and print out the electricity charges.

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.no Viva voce Questions TLO BL
1 Write a program to read the name of the user, number of units
1 L3
consumed and print out the electricity charges.

Page 9 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 Computer Programming Lab
Exp Number and Title:06 - Binary Search Planned Hours:03 Hrs/Batch

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
1 What is Binary Search i L2
2 Implement a program to search a name in an array of integers. iii L3

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.no Viva voce Questions TLO BL
1 What is 1D Array? 1 L1
2 What is Binary Search? 1 L1
3 Explain the tracing of binary search. 1 L3

Page 10 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 Computer Programming Lab
Exp Number and Title:07 - Check Prime number Planned Hours:03 Hrs/Batch

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
Develop a C program using functions to print the prime numbers
1 iv L2
between the given range.

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.no Viva voce Questions TLO BL
1 What are functions? 1 L1
2 Explain the elements of a function 1 L2
3 Advantages of functions 1 L1
4 What is prime? 1 L1
5 Explain the logic of prime. 1 L2

Page 11 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 Computer Programming Lab
Exp Number and Title:08 - Matrix Multiplication Planned Hours:03 Hrs/Batch

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
1 Explain 2D array. iii L1

2 Implement matrix multiplication using C iii L2

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.no Viva voce Questions TLO BL
1 Explain the syntax to declare 2D array. 1 L1
2 How to store the elements in 2D array 1 L2
3 Explain the logic to multiply two matrices. 2 L2
4 When matrix multiplication is possible 2 L1

Page 12 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 Computer Programming Lab
Exp Number and Title:09 – compute sin(x) using Planned Hours:03 Hrs/Batch
Taylor series

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
1 Explain Taylor series. i,iii L1
2 Develop C program to compute sin(x) using Taylors series. iii L2

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.No Viva voce Questions TLO BL
1 Explain for loop. 1 L1
2 Explain increment and decrement operator. 1 L1
3 Explain the Taylor series equation 2 L2

Page 13 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 Computer Programming Lab
Exp Number and Title:10 - String Operations: compare, Planned Hours:03 Hrs/Batch
concatenate, string length

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
1 Explain string i,iv L2

2 Implement String compare, concatenate and string length functions. iv L3

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.no Viva voce Questions TLO BL
1 What is String? 1 L1
2 What are String Handling Functions? 2 L3

Page 14 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 Computer Programming Lab

Exp Number and Title:11 – Bubble Sort Planned Hours:03 Hrs/Batch

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
1 Design and develop a program to sort the elements using bubble iii L3
sort technique

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.no Viva voce Questions TLO BL
1 What is Bubble Sort? 1 L1
2 Explain the logic of Bubble Sort. 1 L3

Page 15 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 Computer Programming Lab
Exp Number and Title:13 - Square Root Planned Hours:03 Hrs/Batch

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
1 What are preprocessor directives. iv L1

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.no Viva voce Questions TLO BL
1 What are built in functions. 1 L1
2 What are header files. 1 L1

Page 16 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 Computer Programming Lab
Exp Number and Title:14 - Structures Planned Hours:03 Hrs/Batch

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
1 Explain the basic concept of structures i,iv L1
2 What are the advantages of structures iv L1

3 Implement a C program to display the marks of a student given iv L3


the name using structures

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.no Viva voce Questions TLO BL
1 Explain the syntax to declare structures 1 L1
2 How to access the members of structures 1 L2
3 Explain array of structures 1 L2

Page 17 of 20
Experiment wise Plan
Course Code and Title: 17CPL17/27 Computer Programming Lab
Exp Number and Title:15 - Pointers Planned Hours:03 Hrs/Batch

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
1 Explain the concepts of pointer iv L1

2 Implement a program to calculate mean, standard deviation and iv L2


variance using pointers.

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.no Viva voce Questions TLO BL
1 What is pointer? How to declare the pointer 1 L1
2 List advantages and disadvantages of pointers 1 L1
3 What are dangling pointers 1 L1
4 What are the steps to be followed to use pointers 1 L1

Page 18 of 20
Experiment wise Plan
Course Code and Title: 18CPL17/27 Computer Programming Lab
Exp Number and Title:15 - Recursive functions for Binary to Planned Hours:03 Hrs/Batch
Decimal Conversion.

Learning Outcomes:
At the end of the topic student should be able to:
Sr.No TLO’s CO BL
1 Design and develop a C program to Convert Binary to Decimal iii,iv L2
using recursive function

Lab Schedule
Class No. Portion covered per batch
1. Explain the program logic.
2. Execute the program
3. Check the result.
Review Questions
Sr.no Viva voce Questions TLO BL
1 What is Recursive Function? 1 L1
2 Explain Logic of Converting Binary to Decimal 1 L2

Page 19 of 20
Evaluation:
Students Assessment (IA + USE)
Internal Assessments. AVG TEST FINAL Weightage in Marks
GRADE MARKS MARKS
A B (A+B)

30 10 40 40

Semester End Examination 60


Total Marks 100

Date: 23/07/2018

Faculty In-charge. Head of Department

Page 20 of 20

You might also like