PRACTICE ASSIGNMENTS
✅ 1. Banking System (Accounts → Transactions)
π― Scenario
Create a banking module where Account operations are defined in one namespace and Transaction reports in another.
π Requirements
-
Namespace:
BankCore-
Class:
Accounts -
Method:
public static void CheckBalance()
-
Class:
-
Namespace:
BankReports-
Class:
TransactionReport -
Call
CheckBalance()fromBankCore
-
Class:
-
Display:
Available Balance: 50000
✅ 2. Employee Payroll System
π― Scenario
HR system where salary calculation is in one project and report generation in another
π Requirements
-
Namespace:
HRModule-
Class:
Payroll -
Method:
public static void CalculateSalary()
-
Class:
-
Namespace:
HRReports-
Class:
SalaryReport -
Call method from
HRModule
-
Class:
-
Add another method:
-
CalculateBonus()
-
✅ 3. E-Commerce Order System
π― Scenario
Order processing and invoice generation handled separately.
π Requirements
-
Namespace:
OrderModule-
Class:
OrderService -
Method:
public static void CreateOrder()
-
Class:
-
Namespace:
InvoiceModule-
Class:
InvoiceService -
Call
CreateOrder()
-
Class:
-
Output:
Order Created Successfully
Invoice Generated
✅ 4. Student Management System
π― Scenario
Student data handled in one module, reports in another.
π Requirements
-
Namespace:
StudentCore-
Class:
Student -
Method:
public static void GetStudentDetails()
-
Class:
-
Namespace:
StudentReports-
Class:
Report -
Call method from
StudentCore
-
Class:
-
Add:
-
DisplayGrade()
-
✅ 5. Hospital Management System
π― Scenario
Patient registration and billing handled in different modules.
π Requirements
-
Namespace:
HospitalCore-
Class:
Patient -
Method:
public static void RegisterPatient()
-
Class:
-
Namespace:
BillingModule-
Class:
Billing -
Call
RegisterPatient()
-
Class:
-
Add:
-
GenerateBill()
-
Comments
Post a Comment