Simple Challenge-1
✅ Challenge 1: Smart Student Result Analyzer
π― Objective
Build a Python application that analyzes student marks and generates a result summary.
π Constraints
-
Accept marks for 5 subjects from user input.
-
Validate marks (0–100 only).
-
Calculate total and percentage.
-
Assign grade based on percentage:
-
≥ 90 → O
-
80–89 → A+
-
70–79 → A
-
60–69 → B
-
50–59 → C
-
< 50 → Fail
-
-
Show whether the student passed (all subjects ≥ 40).
-
Display subject with highest mark.
π£ Steps to Follow
-
Open VS Code.
-
Create file:
result_analyzer.py -
Ask AI:
"Write a Python program to accept 5 subject marks, validate them between 0-100, calculate percentage, grade and pass/fail status."
-
Copy code.
-
Test with different inputs.
-
Improve formatting (use f-strings).
π₯ Probable Output
Enter marks for 5 subjects:
Math: 85
Physics: 78
Chemistry: 92
CSE: 88
English: 74
Total Marks: 417
Percentage: 83.4%
Grade: A+
Result: PASS
Highest Mark: Chemistry (92)
✅ Challenge 2: Mini ATM Simulation System
π― Objective
Simulate basic ATM operations.
π Constraints
-
Start with initial balance = 10,000.
-
Menu-driven system:
-
Check balance
-
Deposit
-
Withdraw
-
Exit
-
-
Withdrawal should not exceed balance.
-
Track transaction history.
-
Limit maximum withdrawal per transaction to 5,000.
-
Use loop until user exits.
π£ Steps
-
Create file:
atm_simulator.py -
Ask AI:
"Create a Python menu driven ATM program with balance checking, deposit, withdrawal with limits and transaction history."
-
Understand while loop.
-
Test multiple operations.
π₯ Probable Output
1. Check Balance
2. Deposit
3. Withdraw
4. Exit
Enter choice: 2
Enter deposit amount: 2000
Deposit successful.
Enter choice: 3
Enter withdrawal amount: 6000
Error: Maximum withdrawal limit is 5000.
Enter choice: 3
Enter withdrawal amount: 3000
Withdrawal successful.
Current Balance: 9000
Transaction History:
+2000
-3000
✅ Challenge 3: Engineering Unit Converter Tool
π― Objective
Create a multi-functional unit conversion system.
π Constraints
-
Support at least 3 categories:
-
Temperature (C ↔ F)
-
Length (m ↔ km)
-
Weight (kg ↔ g)
-
-
Menu-driven.
-
Validate numeric input.
-
Allow repeated conversions.
-
Display result with 2 decimal precision.
-
Handle invalid menu choice gracefully.
π£ Steps
-
Create file:
unit_converter.py -
Ask AI:
"Create a Python menu driven unit converter with temperature, length and weight conversions with validation and loop."
-
Test all cases.
-
Try wrong input intentionally.
π₯ Probable Output
Select Conversion:
1. Temperature
2. Length
3. Weight
Choice: 1
Enter temperature in Celsius: 37
Temperature in Fahrenheit: 98.60°F
✅ Challenge 4: Password Strength Checker + Generator
π― Objective
Build a cybersecurity-based application.
π Constraints
-
Check password length (min 8).
-
Must contain:
-
At least 1 uppercase
-
At least 1 lowercase
-
At least 1 digit
-
At least 1 special character
-
-
Show strength level:
-
Weak
-
Moderate
-
Strong
-
-
If weak → generate strong password suggestion.
-
Use Python libraries like
randomandstring.
π£ Steps
-
Create
password_tool.py -
Ask AI:
"Write a Python program to check password strength and generate a strong password if weak."
-
Test multiple passwords.
π₯ Probable Output
Enter password: hello123
Password Strength: Weak
Suggestion: H@7kP9!zL2
✅ Challenge 5: Mini Library Management System
π― Objective
Simulate book issue/return system.
π Constraints
-
Preload at least 5 books.
-
Allow:
-
View books
-
Issue book
-
Return book
-
-
Cannot issue already issued book.
-
Store issued book names separately.
-
Loop until exit.
-
Display final issued list.
π£ Steps
-
Create file:
library_system.py -
Ask AI:
"Create a Python mini library management system using list and loop."
-
Modify book list.
-
Test edge cases.
π₯ Probable Output
Available Books:
1. Data Structures
2. Python Programming
3. DBMS
4. Operating Systems
5. AI Basics
Enter choice: 2
Enter book name: Python Programming
Book issued successfully.
Issued Books:
Python Programming
Comments
Post a Comment