100% found this document useful (1 vote)
52 views

CO1 CO2 CO3 CO4 CO5: Course Code: Problem Solving & Programming I Lab Course Objectives

Uploaded by

Mdv Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
52 views

CO1 CO2 CO3 CO4 CO5: Course Code: Problem Solving & Programming I Lab Course Objectives

Uploaded by

Mdv Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Course Code:ET24CS108U Problem Solving & Programming – I Lab

Course Objectives:
This course helps in gaining foundational programming skills in Python, covering algorithm design, flowcharts,
debugging, conditional and looping constructs, data structures, functions, object-oriented programming, file
handling, and apply them to develop a comprehensive project.

Course Outcomes:
CO1 Able to design and implement algorithms and flowcharts for problems.
CO2 Acquire skills to write and debug Python programs, addressing common issues such as indentation errors.
CO3 Effectively use conditional statements and loops in Python to solve problems
CO4 Manage and manipulate various data structures like strings, sets, lists, tuples, and dictionaries.
CO5 Apply advanced programming concepts and demonstrate their understanding through a comprehensive mini
project.

List of Experiments:
01 Write an algorithm and flowchart for following problems
1.1. Write algorithm and make flowchart to find whether the given natural number n is a prime number or
not.
1.2. Determine if a given number is a Palindrome or not, write algorithm and make flowchart too.
1.3. Fibonacci sequence is generated by adding the previous two terms by starting with 1 and 2, the first
10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, .. write algorithm and make flowchart too.
02 Write program for following problems using basic python
2.1 purposefully raise Indentation Error and Correct it
2.2 Write a program to compute distance between two points taking input from the user (Pythagorean
Theorem)
03 Write a program for following problem using Conditional statements
3.1 Write a program to find largest of three numbers using ‘if statement’.
3.2 Write a program to find given number ‘n’ is even or odd using ‘if else statement’.
3.3 Write a program to test whether the number input by user is positive or negative, and if number is
positive, whether it is even or odd using nested if statements.
3.4 Write a program to print name of day of week when we are given day of week as number (0 for Sunday,
1 for Monday,….., 6 for Saturday).
04 Write program for following problems using Looping statements
4.1 Write a program to find factorial of a whole number ‘n’ using ‘for loop’.
4.2 Write a program to find sum of digits of a natural number using ‘while loop’.
4.3 Write a program to print following pattern using ‘nested for loops’.
1
22
333
4444
55555
4.4 Write a program to illustrate the difference between between ‘break’ and ‘continue’
statements program uses for loop with range (1,11), i.e., list [1,2,3,4,5,6,7,8,9,10]
05 Write program for following problems using strings
5.1 Write a program that reads a word in lowercase and capitalize its alternate letters; For example, it should
print passion as PaSsIoN and radar as RaDaR.
5.2 Write a program that reads a line of text and a word, and prints the number of time given word occurs
(appears) in the line of text.
06 Write program for following problems on sets and lists
6.1 Write a program to illustrate operation on sets (Union, Intersection, difference and comparing)
6.2 Write a program to find the mean(average) of given list. Program should give output the mean rounded
to two decimal digits.
6.3 Write a program to count the frequency of each element in a given list.
07 Write program for following problems on tuples and dictionaries
7.1 Write a program that takes a number as input and prints it in word. For example, if the input number
2370, it should print “Two Three Seven Zero”.
7.2 Write a program that builds a dictionary of months of a year and prints the days in a month for the month
name given as input.
08 Write program for following problems on Functions
8.1 Write a function to find Highest Common Factor (HCF), also known as Greatest Common Divisor (GCD)
of two positive integers m and n.
8.2 Write a function, say int IsPrime(int n) that returns the value 1 if integer argument n represents a prime
number else returns value 0.Use this function in a program to print all three digit prime numbers.
09 Write program for following problems on classes and objects
9.1 Write a program to simulate banking operation with class.
9.2 An employer plans to pay a bonus to all employees as per the following policy:

Earning Bonus
Upto Rs. 1,00,000/- Nil
From Rs. 1,00,001/- to Rs.2,00,00/- Rs.1000 + 10% of the excess over Rs. 1,00,000/-

From Rs. 2,00,001/- to Rs.3,00,000/- Rs.2000 + 20% of the excess over Rs. 2,00,000/-
The input contains the name and earnings of an employee and the desired output is the name and
bonus to be paid to the employee.
Above Rs.3,00,000/- Rs.4000 + 30% of the excess over Rs. 2,00,000/-
Create a class to represent an employee. It should include the following:
Data members:
Name
Earning
Bonus
Member Functions:
To input data
To compute bonus
To output the desired information
Using this class, write a program to accomplish the intended task
10 Write a python program for File handling methods
10.1 To open a file and print its attributes.
10.2 To create a file and then read its contents and display them on the computer screen.
11 Mini Project based on the concepts covered in the syllabus

Text Book:
01 Y.Daniel Liang, “Introduction to Python Programming and Data Structures”, Third Edition, Pearson, 2024.

Reference Books:
01 Dr.R Nageswara Rao, “Core Python Programming”, Third Edition, Dreamtech Press, 2024.
02 Ashok Namdev Kamthane, Amit Ashok Kamthane, “Programming and Problem Solving with Python”, Second
Edition, TMH, 2020.
03 Paul J. Deitel, Harvey Deitel, “Python for Programmers”, 4th Impression, Pearson India Education, 2022.
04 Cay S. Horstmann, Rance D. Necaise, “Python For Everyone”, 3rd Edition, Wiley India, 2024
05 Kenneth A.Labert, “Fundamentals of Python: First Programs with MindTap, Cengage, 2024.

Web References:
01 https://www.udemy.com/course/python-programming-projects/?couponCode=IND21PM
Alternative NPTEL/SWAYAM Course:
01 Programming in Python
https://onlinecourses.swayam2.ac.in/cec24_cs11/preview

You might also like