SAGE University, Indore
Institute Name: Institute of Computer Application
Recommended Programs :
Semester: II
1. Master of Computer Application (MCA)
Course
Course Name Python Code
CAPDSCPC006P
L T P N C
Credit Score Total Credit
- - 4 - 2
Prerequisites ADVIPR01P Introduction to problem solving and reasoning
Upon successfully completing this course, students will be able to “do
something useful with Python”.
Course 1. Identify/characterize/define a problem.
Objectives 2. Design a program to solve the problem.
3. Create executable code.
4. Read most Python code.
5. Write basic unit tests.
Course Content Program List
1. Personal Information
Write a program that displays the following information:
• Your name
• Your address, with city, state, and ZIP
• Your telephone numbers
• Your college major
2. Loan Qualifier
Program to determine whether a bank customer qualifies for a loan.
3. Day of the Week
Write a program that asks the user for a number in the range of 1 through 7.
The program should display the corresponding day of the week, where 1 =
Monday, 2 = Tuesday,
3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday, and 7 = Sunday.
The program should display an error message if the user enters a number that
is outside the range of 1 through 7.
4. Areas of Rectangles
The area of a rectangle is the rectangle’s length times its width. Write a
program that asksfor the length and width of two rectangles. The program
should tell the user which rectanglehas the greater area, or if the areas are the
same.
5. Age Classifier
Write a program that asks the user to enter a person’s age. The program
should display a message indicating whether the person is an infant, a child,
a teenager, or an [Link] are the guidelines:
• If the person is 1 year old or less, he or she is an infant.
• If the person is older than 1 year, but younger than 13 years, he or she is a
child.
• If the person is at least 13 years old, but less than 20 years old, he or she is
a teenager.
• If the person is at least 20 years old, he or she is an adult.
6. Program demonstrates create list, append, insert, remove, sort, copy, how to
get the index of an item in a list and then replace that item with a new item.
7. Program to demonstrate use of tuples
8. Program demonstrates create list, append, insert, remove, sort, copy element,
access elements in dictionary.
Program to demonstrate use of strings
9. Sales Commission-Program calculates sales commissions.
10. Program demonstrates how the range function can be used with a for loop.
11. Print asterisks in a pattern that looks like the triangle.
12. Program to navigate in different data structures
13. Program writes three lines of data to a file.
14. Program to create car and employee class
15. Program to create class with initializer
16. Program to create object of class and use it
17. Program to inherit one class from parent
18. program demonstrates polymorphism
19. Write a program to open a file and ask the user to input the filename. If the
file
exists, display the content of the file, else create a file and write the line “File is
opened in write mode”.
20. program for above exercise so it handles the following exceptions:
• It should handle any IOError exceptions that are raised when the file is opened
and data is read from it.
21. It should handle any ValueError exceptions that are raised when the items
that are read from the file are converted to a number.
22. Write a statement that uses a math module function to convert 45 degrees to
radians and assigns the value to a variable
23. write a program that calculates the following:
• The area of a circle • The circumference of a circle • The area of a rectangle
• The perimeter of a rectangle
24. Program demonstrates the sqrt function.
25. Program to import own packages Ten Library functions of numpy and
pandas
Text Books [Link] Out with Python, Toney Gaddis, Third Edition Pearson.
References [Link] Data Science Handbook , Jake Vanderplas
CO [Link] the basics of Python variable, basic data types, Input output
functions, selection and iteration
CO [Link] data structures and programming constructs in the Python
Course language such as lists, tuples, dictionaries, classes
Outcomes CO [Link] the object oriented programming concepts
CO [Link] the use of exceptions handling, file handling and learn to
use standard library
CO5 Apply the concept of multithreading and multiprocessing in Python
Mapping of Course outcome with Program Outcomes, PSO’s, and Knowledge Levels (As per Blooms
Taxonomy)
CO/PO PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2 PSO3 PSO4 PSO5 Knowledge Levels (K1, K2, …, K6)
CO1 3 2 1 2 2 2 3 3 K2
CO2 1 2 3 1 1 2 2 2 K3
CO3 1 2 3 2 1 1 1 2 3 K3
CO4 2 1 3 2 2 2 3 3 K3
CO5 2 1 2 3 3 1 2 2 2 3 K3
High-3 Medium-2 Low-1
K1 =>Remember K2 =>Understand K3 =>Apply K4 =>Analyze K5 =>Evaluate K6 =>Create
Designed By: Checked By: Approved By:
( Dr Vivek Uprit) (Name with Sign.) (Name with Sign.)