0% found this document useful (0 votes)
8 views

Lab Manual Format

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Lab Manual Format

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

LABORATORY MANUAL

Sub.Code : GE3171
Sub.Name : Problem Solving and Python Programming Laboratory
Regulation : R2021

Prepared By, Approved By,


Dr.V.Sethupathi Dr.C.Callins Christiyana
Assistant Professor/CSE HoD/CSE
INSTITUTE VISION
To become a centre of excellence in preparing engineering with excellent technical, scientific
research and entrepreneurial abilities to contribute to the society.

INSTITUTE MISSION

1 Providing comprehensive learning environment

2 Imparting state-of-the-art technology to fulfil the needs of the students and Industry

3 Establishing Industry-Institute alliance for bilateral benefits

4 Promoting Research and Development activities

Offering student lead activities to inculcate ethics, social responsibilities,


5
entrepreneurial, and leadership skills

DEPARTMENT VISION
To become a centre of excellence in technical education and scientific research in the field of
Computer Science and Engineering for the wellbeing of the society.

DEPARTMENT MISSION
Producing graduates with a strong theoretical and practical in computer technology
1
to meet the Industry expectation.
Offering holistic learning ambience for faculty and students to investigate, apply and
2
transfer knowledge.
Inculcating interpersonal traits among the students leading to employability and
3
entrepreneurship.
4 Establishing effective linkage with the Industries for the mutual benefits
Strengthening Research activities to solve the problems related to industry and
5
society.
SYLLABUS
PROBLEM SOLVING AND PYTHON PROGRAMMING
GE3171 L T P C
LABORATORY

0 0 4 2

COURSE OBJECTIVES :
● To understand the problem-solving approaches.
● To learn the basic programming constructs in Python.
● To practice various computing strategies for Python-based solutions to real world problems.
● To use Python data structures - lists, tuples, dictionaries.
● To do input/output with files in Python.

EXPERIMENTS
1. Identification and solving of simple real life or scientific or technical problems, and developing flow charts for
the same. (Electricity Billing, Retail shop billing, Sin series, weight of a motorbike, Weight of a steel bar, compute
Electrical Current in Three Phase AC Circuit, etc.)
2. Python programming using simple statements and expressions (exchange the values of two variables, circulate
the values of n variables, distance between two points).
3. Scientific problems using Conditionals and Iterative loops. (Number series, Number Patterns, pyramid pattern)
4. Implementing real-time/technical applications using Lists, Tuples. (Items present in a library/Components of a
car/ Materials required for construction of a building –operations of list & tuples)
5. Implementing real-time/technical applications using Sets, Dictionaries. (Language, components of an automobile,
Elements of a civil structure, etc.- operations of Sets & Dictionaries)
6. Implementing programs using Functions. (Factorial, largest number in a list, area of shape)
7. Implementing programs using Strings. (reverse, palindrome, character count, replacing characters)
8. Implementing programs using written modules and Python Standard Libraries (pandas, numpy. Matplotlib, scipy)
9. Implementing real-time/technical applications using File handling. (copy from one file to another, word count,
longest word)
10. Implementing real-time/technical applications using Exception handling. (divide by zero error, voter’s age
validity, student mark range validation)
11. Exploring Pygame tool.
12. Developing a game activity using Pygame like bouncing ball, car race etc.
TOTAL: 60 Periods
CONTENT BEYOND SYLLABI: Data analytics using Python
COURSE OUTCOMES:
On completion of the course, students will be able to:
CO1: Develop algorithmic solutions to simple computational problems
CO2: Develop and execute simple Python programs.
CO3: Implement programs in Python using conditionals and loops for solving problems.
CO4: Deploy functions to decompose a Python program.
CO5: Process compound data using Python data structures.
CO6: Utilize Python packages in developing software applications.

EQUIPMENT / SOFTWARE AND HARDWARE REQUIREMENT

• Processors: Intel Atom® processor or Intel® Core™ i3 processor.


• Disk space: 1 GB.
• Operating systems: Windows* 7 or later, macOS, and Linux.
• Python* versions: 2.7.X, 3.6.X.,3.8.X

LIST OF EXPERIMENTS

Sl.
List of Experiments Page No
No

1. Compute the GCD of two numbers. 5-6

2. Find the square root of a number (Newton‘s 7-8


method)
3. Exponentiation (power of a number) 8-9
4. Find the maximum of a list of numbers 10-11

5. a) Linear search 12-15


b) Binary search
6. a) Selection sort 16-18

b) Insertion sort
7. Merge sort. 19-20

8. First n prime numbers 21-22

9. Multiply matrices 23-24

10. Programs that take command line arguments (word 25-26


count)
Sl.
List of Experiments Page No
No

11. Find the most frequent words in a text read from a 27-28
file
12. Simulate elliptical orbits in pygame 29-30

13. Simulate bouncing ball using pygame 31-32

You might also like