PSGR KRISHNAMMAL COLLEGE FOR WOMEN
DEPARTMENT OF BCOM CA
PROGRAMMING WITH PYTHON PRACTICAL-BP24CP4
1. Program to convert the given temperature from Fahrenheit to Celsius and vice versa
depending upon user’s choice.
2. Program to calculate total marks, percentage and grade of a student. Marks obtained in each
of the five subjects are to be input by user. Assign grades according to the following criteria:
Grade A: Percentage >=80 Grade B: Percentage >=70 and 80
Grade C: Percentage >=60 and <70 Grade D: Percentage >=40 and <60.
Grade E: Percentage < 40.
3. Develop a program to input the quantity and price of 5 products and calculate the total bill
with GST using arithmetic and logical operators.
4. Write a Python program to maintain a list of sales amounts for 7 days and compute the
average, maximum, and minimum sales.
5. Create a program using dictionaries to store employee details (ID, name, salary) and display
the details of employees whose salary is greater than a given threshold.
6. Define a function to calculate income tax payable based on slabs (use default arguments for
tax-free limit).
7. Write a recursive function to calculate the total sales of n days where each day’s sales value
is entered by the user.
8. Create a class BankAccount with methods for deposit, withdrawal, and balance enquiry.
Implement inheritance for a SavingsAccount and CurrentAccount.
9. Write a program using classes and objects to represent products in a store. Include methods
to calculate discount price and demonstrate polymorphism for different product categories.
10. Implement an abstract class Employee with subclasses Manager and Salesperson. Override a
method to compute their monthly incentives differently.
11. Write a Python program to read customer data from a text file, process it, and display only
those customers who purchased goods worth more than ₹10,000.
12. Develop a program to maintain a sales record using pickle: store sales data in binary format
and retrieve it later.
13. Write a program to handle exceptions in a bill calculation system, raising a custom exception
if the quantity entered is negative.
14. Create a Tkinter-based billing system for a small shop where the user enters item name,
quantity, and price, and the total bill is displayed with GST.
15. Write a Python program to perform web scraping to extract and display the current stock
prices of at least three companies from a financial website.
Signature of Internal Examiner Signature of External Examiner