Simple Challenge-1

 

✅ Challenge 1: Smart Student Result Analyzer

🎯 Objective

Build a Python application that analyzes student marks and generates a result summary.

πŸ“Œ Constraints

  1. Accept marks for 5 subjects from user input.

  2. Validate marks (0–100 only).

  3. Calculate total and percentage.

  4. Assign grade based on percentage:

    • ≥ 90 → O

    • 80–89 → A+

    • 70–79 → A

    • 60–69 → B

    • 50–59 → C

    • < 50 → Fail

  5. Show whether the student passed (all subjects ≥ 40).

  6. Display subject with highest mark.


πŸ‘£ Steps to Follow

  1. Open VS Code.

  2. Create file: result_analyzer.py

  3. Ask AI:

    "Write a Python program to accept 5 subject marks, validate them between 0-100, calculate percentage, grade and pass/fail status."

  4. Copy code.

  5. Test with different inputs.

  6. 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

  1. Start with initial balance = 10,000.

  2. Menu-driven system:

    • Check balance

    • Deposit

    • Withdraw

    • Exit

  3. Withdrawal should not exceed balance.

  4. Track transaction history.

  5. Limit maximum withdrawal per transaction to 5,000.

  6. Use loop until user exits.


πŸ‘£ Steps

  1. Create file: atm_simulator.py

  2. Ask AI:

    "Create a Python menu driven ATM program with balance checking, deposit, withdrawal with limits and transaction history."

  3. Understand while loop.

  4. 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

  1. Support at least 3 categories:

    • Temperature (C ↔ F)

    • Length (m ↔ km)

    • Weight (kg ↔ g)

  2. Menu-driven.

  3. Validate numeric input.

  4. Allow repeated conversions.

  5. Display result with 2 decimal precision.

  6. Handle invalid menu choice gracefully.


πŸ‘£ Steps

  1. Create file: unit_converter.py

  2. Ask AI:

    "Create a Python menu driven unit converter with temperature, length and weight conversions with validation and loop."

  3. Test all cases.

  4. 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

  1. Check password length (min 8).

  2. Must contain:

    • At least 1 uppercase

    • At least 1 lowercase

    • At least 1 digit

    • At least 1 special character

  3. Show strength level:

    • Weak

    • Moderate

    • Strong

  4. If weak → generate strong password suggestion.

  5. Use Python libraries like random and string.


πŸ‘£ Steps

  1. Create password_tool.py

  2. Ask AI:

    "Write a Python program to check password strength and generate a strong password if weak."

  3. 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

  1. Preload at least 5 books.

  2. Allow:

    • View books

    • Issue book

    • Return book

  3. Cannot issue already issued book.

  4. Store issued book names separately.

  5. Loop until exit.

  6. Display final issued list.


πŸ‘£ Steps

  1. Create file: library_system.py

  2. Ask AI:

    "Create a Python mini library management system using list and loop."

  3. Modify book list.

  4. 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

Popular posts from this blog