2024 - Guidelines For Programming Fundamentals Using Python BA-DSC2
2024 - Guidelines For Programming Fundamentals Using Python BA-DSC2
Essential Readings
1. Kamthane, A. N. & Kamthane, A. A., “Programming and Problem Solving with Python”,
2nd edition, McGraw Hill Education, 2020.
2. Balaguruswamy E., “Introduction to Computing and Problem Solving using Python”, 2nd
edition, McGraw Hill Education, 2018.
3. Taneja, S. & Kumar, N., “Python Programming- A modular Approach”, Pearson Education
India, 2018.
Practical List
1. WAP to calculate total marks, percentage and grade of a student. Marks obtained in each of
three subjects are to be input by the user. Assign grades according to the following criteria:
Grade A: if Percentage >= 80
Grade B: if Percentage >= 60 and Percentage < 80
Grade C: if Percentage >= 40 and Percentage < 60
Grade D: if Percentage < 40
2. WAP to print factors of a given number.
3. WAP to add N natural numbers and display their sum.
4. WAP to print the following conversion table (use looping constructs):
5.0 ft 60 inches
. .
. .
. .
6.0 ft 72 inches
5. WAP that takes a positive integer n and the produce n lines of output as shown:
*
**
***
****
(sample output for n = 4)
6. Write a menu driven program using user defined functions to print the area of rectangle,
square, circle and triangle by accepting suitable input from user.
7. Write a function that calculates factorial of a number n.
8. WAP to print the series and its sum: (use functions)
List of Contributors
1. Prof Hema Banati (Dyal Singh College)
2. Dr Geeta Aggarwal (PGDAV College)
3. Dr Harmeet Kaur ( Hansraj College)
4. Prof Meera Sharma (Swami Shraddhanand College)