This Course Enables The Students To:: Page 188 of 255
This Course Enables The Students To:: Page 188 of 255
Name of Teacher:
Course Objectives
This course enables the students to:
2. Explore basic data types, control structures and standrard library functions.
3. Explore the basic data structures: List, Tuple, Sets, Dictionaries available in python
Course Outcomes
After the completion of this course, students will be able:
CO2 Use basic data types control structures and utility functions from standard library for
faster programming.
CO3 Use the basic and user defined data structures as per the need of problem.
CO4 Design and implement the problem using OOP concept of python.
SYLLABUS
3. Write a program to read the marks of three subjects and find the average of them.
4. Surface area of a prism can be calculated if the lengths of the three sides are known. Write a program
that takes the sides as input (read it as integer) and prints the surface area of the prism (Surface Area =
2ab + 2bc + 2ca)
5. A plane travels 395,000 meters in 9000 seconds. Write a program to find the speed of the plane (Speed
= Distance / Time).
6. You need to empty out the rectangular swimming pool which is 12 meters long, 7 meters wide and 2
meter depth. You have a pump which can move 17 cubic meters of water in an hour. Write a program to
find how long it will take to empty your pool? (Volume = l * w * h, and flow = volume/time).
7. Write a program to convert temperature from centigrade (read it as float value) to Fahrenheit.
8. A car starts from a stoplight and is traveling with a velocity of 10 m/sec east in 20 seconds. Write a
program to find the acceleration of the car. [acc = (Vfinal−Vinitial)/
Time].
9. Write a Program to Prompt for a Score between 0.0 and 1.0. If the Score Is Out of Range, Print an Error.
If the Score Is between 0.0 and 1.0, Print a Grade Using the Following Table
11. Suppose you want to develop a program to play a lottery. The program randomly generates a two-digit
number, prompts the user to enter a two-digit number, and determines whether the user wins according
to the following rules:
a) If the user’s input matches the lottery in the exact order, the award is $10,000.
b) If all the digits in the user’s input match all the digits in the lottery number, the award is $3,000.
c) If one digit in the user’s input matches a digit in the lottery number, the award is $1,000.
17. Write a Program to Display the Fibonacci Sequences up to nth Term Where n is Provided by the User.
18. Write a Program to Find the Sum of All Odd and Even Numbers up to a Number Specified by the User.
21. Write a Program to Demonstrate the Return of Multiple Values from a Function Definition.
24. Program to Print the Characters Which Are Common in Two Strings.
26. Write Python Program to Count the Number of Times an Item appears in the List.
27. Write a program to create a list of integer numbers. Sort the elements using any sorting method.
28. Write a program to create a lists of integer numbers and perform the linear and binary search.
29. Write a program to create a lists of cities names and perform the sort the cities name in alphabetical
order.
33. Write a program to create a dictionary for countries name as key and currency as value. Traversve the
dictionary with key:value Pairs in using for Loop.
34. Write a program to create tuples, and perform the following operations: Merging of tuples, Spliting of a
tuple, comparison of two tuples.
Page 190 of 255
35. Write a program to create an intersection, union, set difference, and symmetric difference of sets.
36. Write a program with “MyRectangle” class aving the dimensions as data members and area() as a
method member. Calculate the area of each rectangle object created by user.
37. Design a class with name “MyComplex” to represent the complex number including the constructor
overloading, methods to perform the arithmetic operation over the two complex numbers. Write the
complete python program for the above design.
38. Design a class with name “Distance” to represent the distance in feet and inch. Include the method to
calculate the addition of two distances. Write the complete python program for the above design.
39. Write a complete program to implement the Employee and its subclasses (Salarayed Employee,
DailyWaged Employee, Commission based employee) given in Hierarchical and multilevel manner.
The program should exhibit the use of super key word to invoke the super class constructor.
40. Write a program to open a file and perform the reading and writing operation with the file.
42. Write a program to count the frequencies of each word from a file.
44. Write a program to append a file with the content of another file.
46. Write a program to delete and insert a sentence at specified position in a file.
47. Write a program to delete a sentence from a file if the file contains a specific word.
50. Write a program to handle an exception using exception handling mechanism of the python.
Text Books:
1. Y. Daniel Liang, “Introduction to programming using python”, Pearson Education; First edition (2017).
Reference Books :
1. Martin C. Brown, “Python: The Complete Reference”, McGraw Hill Education; Forth edition (2018)
Direct Assessment
Assessment Tool % Contribution during CO Assessment
First Quiz 10
Second Quiz 10
Viva voce 20
Day to day performance 30
Exam Evaluation performance 30
Indirect Assessment
Program
Specific
Course Program Outcomes (POs)
Outcomes
Outcome
(PSOs)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
CO1 3 3 3 2 1 1 2 2 1 1 1 1 1 2 2
CO2 3 1 1 1 1 3 1 1 2 1 1 2 3 2 3
CO3 2 3 3 1 2 1 2 2 1 1 1 2 2 2 3
CO4 1 1 3 3 1 1 1 1 1 1 1 1 2 3 3
CO5 3 3 3 1 2 1 1 2 1 1 2 1 1 2 3