Problem solving using python programming
Assignment I
1. ATM Cash Withdrawal System
Scenario: A user goes to an ATM to withdraw money. The ATM should check if the
user’s account balance is sufficient.
Task: Write an algorithm, pseudocode, flowchart, and Python program to simulate an
ATM withdrawal (input: balance and withdrawal amount, output: success or
insufficient balance).
2. Student Grade Calculator
Scenario: A university assigns grades based on marks:
o 90–100 → A
o 75–89 → B
o 50–74 → C
o Below 50 → Fail
Task: Write algorithm, pseudocode, flowchart, and Python program to calculate the
grade based on student marks.
3. Online Shopping Discount
Scenario: An online store gives discounts:
o 20% discount if the purchase is above RS.500
o 10% discount if purchase is between RS.200 and RS.500
o No discount if below RS.200
Task: Design algorithm, pseudocode, flowchart, and Python program to calculate the
final bill amount after discount.
4. Temperature Conversion (Celsius ↔ Fahrenheit)
Scenario: A weather app allows users to convert temperature between Celsius and
Fahrenheit.
Task: Write algorithm, pseudocode, flowchart, and Python code that takes
temperature and unit as input and outputs the converted value.
5. Library Late Fee Calculator
Scenario: A library charges late fees:
o First 5 days → RS.2 per day
o Next 5 days → RS.5 per day
o More than 10 days → RS.10 per day + membership suspension
Task: Develop algorithm, pseudocode, flowchart, and Python program to calculate
the fine based on the number of late days.
SUBMISSION DATE:
19.09.2025