From b4da63f76b5bc97ace4b24145abed67cd8859e72 Mon Sep 17 00:00:00 2001 From: MADDHURI VENU <149947159+QUIET-DEVELOPER@users.noreply.github.com> Date: Sat, 4 May 2024 22:14:51 +0530 Subject: [PATCH 1/2] Hard - Level Tasks added --- .../HospitalManagementSystem.java | 454 ++++++++++++++++++ .../OnlineBankingSystem.java | 273 +++++++++++ 2 files changed, 727 insertions(+) create mode 100644 MaddhuriVenu/HospitalManagementSystem/HospitalManagementSystem.java create mode 100644 MaddhuriVenu/OnlineBankingSystem/OnlineBankingSystem.java diff --git a/MaddhuriVenu/HospitalManagementSystem/HospitalManagementSystem.java b/MaddhuriVenu/HospitalManagementSystem/HospitalManagementSystem.java new file mode 100644 index 0000000..654d3f2 --- /dev/null +++ b/MaddhuriVenu/HospitalManagementSystem/HospitalManagementSystem.java @@ -0,0 +1,454 @@ +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.*; + +// Patient class to represent a patient +class Patient { + private int patientId; + private String name; + private int age; + private String gender; + private String address; + private String phoneNumber; + + public Patient(int patientId, String name, int age, String gender, String address, String phoneNumber) { + this.patientId = patientId; + this.name = name; + this.age = age; + this.gender = gender; + this.address = address; + this.phoneNumber = phoneNumber; + } + + public int getPatientId() { + return patientId; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getGender() { + return gender; + } + + public String getAddress() { + return address; + } + + public String getPhoneNumber() { + return phoneNumber; + } +} + +// Doctor class to represent a doctor +class Doctor { + private int doctorId; + private String name; + private String specialization; + + public Doctor(int doctorId, String name, String specialization) { + this.doctorId = doctorId; + this.name = name; + this.specialization = specialization; + } + + public int getDoctorId() { + return doctorId; + } + + public String getName() { + return name; + } + + public String getSpecialization() { + return specialization; + } +} + +// Appointment class to represent an appointment +class Appointment { + private int appointmentId; + private int patientId; + private int doctorId; + private Date date; + + public Appointment(int appointmentId, int patientId, int doctorId, Date date) { + this.appointmentId = appointmentId; + this.patientId = patientId; + this.doctorId = doctorId; + this.date = date; + } + + public int getAppointmentId() { + return appointmentId; + } + + public int getPatientId() { + return patientId; + } + + public int getDoctorId() { + return doctorId; + } + + public Date getDate() { + return date; + } +} + +// Prescription class to represent a prescription +class Prescription { + private int prescriptionId; + private int patientId; + private int doctorId; + private String medication; + private String dosage; + + public Prescription(int prescriptionId, int patientId, int doctorId, String medication, String dosage) { + this.prescriptionId = prescriptionId; + this.patientId = patientId; + this.doctorId = doctorId; + this.medication = medication; + this.dosage = dosage; + } + + public int getPrescriptionId() { + return prescriptionId; + } + + public int getPatientId() { + return patientId; + } + + public int getDoctorId() { + return doctorId; + } + + public String getMedication() { + return medication; + } + + public String getDosage() { + return dosage; + } +} + +// Billing class to represent billing information +class Billing { + private int billId; + private int patientId; + private double amount; + private Date date; + + public Billing(int billId, int patientId, double amount, Date date) { + this.billId = billId; + this.patientId = patientId; + this.amount = amount; + this.date = date; + } + + public int getBillId() { + return billId; + } + + public int getPatientId() { + return patientId; + } + + public double getAmount() { + return amount; + } + + public Date getDate() { + return date; + } +} + +// InventoryItem class to represent an item in inventory +class InventoryItem { + private int itemId; + private String itemName; + private int quantity; + private double price; + + public InventoryItem(int itemId, String itemName, int quantity, double price) { + this.itemId = itemId; + this.itemName = itemName; + this.quantity = quantity; + this.price = price; + } + + public int getItemId() { + return itemId; + } + + public String getItemName() { + return itemName; + } + + public int getQuantity() { + return quantity; + } + + public double getPrice() { + return price; + } +} + +// HospitalManagementSystem class to manage hospital operations +public class HospitalManagementSystem { + private List patients; + private List doctors; + private List appointments; + private List prescriptions; + private List bills; + private List inventory; + + private int patientIdCounter; + private int doctorIdCounter; + private int appointmentIdCounter; + private int prescriptionIdCounter; + private int billIdCounter; + private int itemIdCounter; + + public HospitalManagementSystem() { + this.patients = new ArrayList<>(); + this.doctors = new ArrayList<>(); + this.appointments = new ArrayList<>(); + this.prescriptions = new ArrayList<>(); + this.bills = new ArrayList<>(); + this.inventory = new ArrayList<>(); + + this.patientIdCounter = 1000; + this.doctorIdCounter = 2000; + this.appointmentIdCounter = 3000; + this.prescriptionIdCounter = 4000; + this.billIdCounter = 5000; + this.itemIdCounter = 6000; + } + + // Method to add a patient + public void addPatient(String name, int age, String gender, String address, String phoneNumber) { + Patient patient = new Patient(patientIdCounter++, name, age, gender, address, phoneNumber); + patients.add(patient); + } + + // Method to add a doctor + public void addDoctor(String name, String specialization) { + Doctor doctor = new Doctor(doctorIdCounter++, name, specialization); + doctors.add(doctor); + } + + // Method to schedule an appointment + public void scheduleAppointment(int patientId, int doctorId, Date date) { + Appointment appointment = new Appointment(appointmentIdCounter++, patientId, doctorId, date); + appointments.add(appointment); + } + + // Method to prescribe medication + public void prescribeMedication(int patientId, int doctorId, String medication, String dosage) { + Prescription prescription = new Prescription(prescriptionIdCounter++, patientId, doctorId, medication, dosage); + prescriptions.add(prescription); + } + + // Method to generate a bill + public void generateBill(int patientId, double amount, Date date) { + Billing bill = new Billing(billIdCounter++, patientId, amount, date); + bills.add(bill); + } + + // Method to add an item to inventory + public void addItemToInventory(String itemName, int quantity, double price) { + InventoryItem item = new InventoryItem(itemIdCounter++, itemName, quantity, price); + inventory.add(item); + } + + // Method to display patient information + public void displayPatientInfo() { + System.out.println("Patient Information:"); + for (Patient patient : patients) { + System.out.println("ID: " + patient.getPatientId() + ", Name: " + patient.getName() + ", Age: " + patient.getAge() + + ", Gender: " + patient.getGender() + ", Address: " + patient.getAddress() + ", Phone: " + patient.getPhoneNumber()); + } + } + + // Method to display doctor information + public void displayDoctorInfo() { + System.out.println("Doctor Information:"); + for (Doctor doctor : doctors) { + System.out.println("ID: " + doctor.getDoctorId() + ", Name: " + doctor.getName() + ", Specialization: " + doctor.getSpecialization()); + } + } + + // Method to display appointment information + public void displayAppointmentInfo() { + System.out.println("Appointment Information:"); + for (Appointment appointment : appointments) { + System.out.println("ID: " + appointment.getAppointmentId() + ", Patient ID: " + appointment.getPatientId() + + ", Doctor ID: " + appointment.getDoctorId() + ", Date: " + appointment.getDate()); + } + } + + // Method to display prescription information + public void displayPrescriptionInfo() { + System.out.println("Prescription Information:"); + for (Prescription prescription : prescriptions) { + System.out.println("ID: " + prescription.getPrescriptionId() + ", Patient ID: " + prescription.getPatientId() + + ", Doctor ID: " + prescription.getDoctorId() + ", Medication: " + prescription.getMedication() + + ", Dosage: " + prescription.getDosage()); + } + } + + // Method to display billing information + public void displayBillingInfo() { + System.out.println("Billing Information:"); + for (Billing bill : bills) { + System.out.println("ID: " + bill.getBillId() + ", Patient ID: " + bill.getPatientId() + + ", Amount: " + bill.getAmount() + ", Date: " + bill.getDate()); + } + } + + // Method to display inventory information + public void displayInventory() { + System.out.println("Inventory Information:"); + for (InventoryItem item : inventory) { + System.out.println("ID: " + item.getItemId() + ", Name: " + item.getItemName() + + ", Quantity: " + item.getQuantity() + ", Price: " + item.getPrice()); + } + } + + // Main method to demonstrate functionality + public static void main(String[] args) { + HospitalManagementSystem hospitalSystem = new HospitalManagementSystem(); + Scanner scanner = new Scanner(System.in); + + while (true) { + System.out.println("\nHospital Management System Menu:"); + System.out.println("1. Add Patient"); + System.out.println("2. Add Doctor"); + System.out.println("3. Schedule Appointment"); + System.out.println("4. Prescribe Medication"); + System.out.println("5. Generate Bill"); + System.out.println("6. Add Item to Inventory"); + System.out.println("7. Display Patient Information"); + System.out.println("8. Display Doctor Information"); + System.out.println("9. Display Appointment Information"); + System.out.println("10. Display Prescription Information"); + System.out.println("11. Display Billing Information"); + System.out.println("12. Display Inventory Information"); + System.out.println("13. Exit"); + System.out.print("Enter your choice: "); + + int choice = scanner.nextInt(); + scanner.nextLine(); + + switch (choice) { + case 1: + System.out.print("Enter patient name: "); + String patientName = scanner.nextLine(); + System.out.print("Enter patient age: "); + int patientAge = scanner.nextInt(); + scanner.nextLine(); + System.out.print("Enter patient gender: "); + String patientGender = scanner.nextLine(); + System.out.print("Enter patient address: "); + String patientAddress = scanner.nextLine(); + System.out.print("Enter patient phone number: "); + String patientPhoneNumber = scanner.nextLine(); + hospitalSystem.addPatient(patientName, patientAge, patientGender, patientAddress, patientPhoneNumber); + break; + case 2: + System.out.print("Enter doctor name: "); + String doctorName = scanner.nextLine(); + System.out.print("Enter doctor specialization: "); + String doctorSpecialization = scanner.nextLine(); + hospitalSystem.addDoctor(doctorName, doctorSpecialization); + break; + case 3: + System.out.print("Enter patient ID: "); + int patientId = scanner.nextInt(); + System.out.print("Enter doctor ID: "); + int doctorId = scanner.nextInt(); + System.out.print("Enter appointment date (YYYY-MM-DD): "); + String dateString = scanner.next(); + Date appointmentDate = null; + try { + appointmentDate = new SimpleDateFormat("yyyy-MM-dd").parse(dateString); + } catch (ParseException e) { + System.out.println("Invalid date format. Please enter date in YYYY-MM-DD format."); + continue; + } + hospitalSystem.scheduleAppointment(patientId, doctorId, appointmentDate); + break; + case 4: + System.out.print("Enter patient ID: "); + int patientIdPrescription = scanner.nextInt(); + System.out.print("Enter doctor ID: "); + int doctorIdPrescription = scanner.nextInt(); + scanner.nextLine(); + System.out.print("Enter medication: "); + String medication = scanner.nextLine(); + System.out.print("Enter dosage: "); + String dosage = scanner.nextLine(); + hospitalSystem.prescribeMedication(patientIdPrescription, doctorIdPrescription, medication, dosage); + break; + case 5: + System.out.print("Enter patient ID: "); + int patientIdBill = scanner.nextInt(); + System.out.print("Enter bill amount: "); + double billAmount = scanner.nextDouble(); + scanner.nextLine(); + System.out.print("Enter bill date (YYYY-MM-DD): "); + String billDateString = scanner.next(); + Date billDate = null; + try { + billDate = new SimpleDateFormat("yyyy-MM-dd").parse(billDateString); + } catch (ParseException e) { + System.out.println("Invalid date format. Please enter date in YYYY-MM-DD format."); + continue; // Skip to next iteration of the loop + } + hospitalSystem.generateBill(patientIdBill, billAmount, billDate); + break; + case 6: + System.out.print("Enter item name: "); + String itemName = scanner.nextLine(); + System.out.print("Enter item quantity: "); + int itemQuantity = scanner.nextInt(); + System.out.print("Enter item price: "); + double itemPrice = scanner.nextDouble(); + hospitalSystem.addItemToInventory(itemName, itemQuantity, itemPrice); + break; + case 7: + hospitalSystem.displayPatientInfo(); + break; + case 8: + hospitalSystem.displayDoctorInfo(); + break; + case 9: + hospitalSystem.displayAppointmentInfo(); + break; + case 10: + hospitalSystem.displayPrescriptionInfo(); + break; + case 11: + hospitalSystem.displayBillingInfo(); + break; + case 12: + hospitalSystem.displayInventory(); + break; + case 13: + System.out.println("Exiting..."); + scanner.close(); + System.exit(0); + break; + default: + System.out.println("Invalid choice! Please enter a number between 1 and 13."); + } + } + } +} diff --git a/MaddhuriVenu/OnlineBankingSystem/OnlineBankingSystem.java b/MaddhuriVenu/OnlineBankingSystem/OnlineBankingSystem.java new file mode 100644 index 0000000..bd1e1d7 --- /dev/null +++ b/MaddhuriVenu/OnlineBankingSystem/OnlineBankingSystem.java @@ -0,0 +1,273 @@ +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Scanner; + +// BankAccount class to represent a bank account +class BankAccount { + private int accountNumber; + private double balance; + private String accountHolderName; + private String accountType; + + public BankAccount(int accountNumber, String accountHolderName, String accountType) { + this.accountNumber = accountNumber; + this.accountHolderName = accountHolderName; + this.accountType = accountType; + this.balance = 0.0; + } + + public int getAccountNumber() { + return accountNumber; + } + + public double getBalance() { + return balance; + } + + public String getAccountHolderName() { + return accountHolderName; + } + + public String getAccountType() { + return accountType; + } + + public void deposit(double amount) { + balance += amount; + } + + public boolean withdraw(double amount) { + if (amount > balance) { + System.out.println("Insufficient balance."); + return false; + } + balance -= amount; + return true; + } +} + +// Transaction class to represent a bank transaction +class Transaction { + private int transactionId; + private int accountNumber; + private String transactionType; + private double amount; + + public Transaction(int transactionId, int accountNumber, String transactionType, double amount) { + this.transactionId = transactionId; + this.accountNumber = accountNumber; + this.transactionType = transactionType; + this.amount = amount; + } + + public int getTransactionId() { + return transactionId; + } + + public int getAccountNumber() { + return accountNumber; + } + + public String getTransactionType() { + return transactionType; + } + + public double getAmount() { + return amount; + } +} + +// OnlineBankingSystem class to manage the online banking operations +public class OnlineBankingSystem { + private List accounts; + private Map> transactionHistory; + private int accountNumberCounter; + private int transactionIdCounter; + + public OnlineBankingSystem() { + this.accounts = new ArrayList<>(); + this.transactionHistory = new HashMap<>(); + this.accountNumberCounter = 1000; + this.transactionIdCounter = 1; + } + + // Method to create a new bank account + public void createAccount(String accountHolderName, String accountType) { + BankAccount account = new BankAccount(accountNumberCounter++, accountHolderName, accountType); + accounts.add(account); + transactionHistory.put(account.getAccountNumber(), new ArrayList<>()); + System.out.println("Account created successfully with Account Number: " + account.getAccountNumber()); + } + + // Method to deposit funds into a bank account + public void deposit(int accountNumber, double amount) { + BankAccount account = findAccountByNumber(accountNumber); + if (account != null) { + account.deposit(amount); + Transaction transaction = new Transaction(transactionIdCounter++, accountNumber, "Deposit", amount); + transactionHistory.get(accountNumber).add(transaction); + System.out.println("Deposit of ₹" + amount + " successful."); + } else { + System.out.println("Account with Account Number " + accountNumber + " not found."); + } + } + + // Method to withdraw funds from a bank account + public void withdraw(int accountNumber, double amount) { + BankAccount account = findAccountByNumber(accountNumber); + if (account != null) { + if (account.withdraw(amount)) { + Transaction transaction = new Transaction(transactionIdCounter++, accountNumber, "Withdrawal", amount); + transactionHistory.get(accountNumber).add(transaction); + System.out.println("Withdrawal of ₹" + amount + " successful."); + } + } else { + System.out.println("Account with Account Number " + accountNumber + " not found."); + } + } + + // Method to transfer funds between bank accounts + public void transfer(int fromAccountNumber, int toAccountNumber, double amount) { + BankAccount fromAccount = findAccountByNumber(fromAccountNumber); + BankAccount toAccount = findAccountByNumber(toAccountNumber); + if (fromAccount != null && toAccount != null) { + if (fromAccount.withdraw(amount)) { + toAccount.deposit(amount); + Transaction transaction1 = new Transaction(transactionIdCounter++, fromAccountNumber, "Transfer to " + toAccountNumber, amount); + Transaction transaction2 = new Transaction(transactionIdCounter++, toAccountNumber, "Transfer from " + fromAccountNumber, amount); + transactionHistory.get(fromAccountNumber).add(transaction1); + transactionHistory.get(toAccountNumber).add(transaction2); + System.out.println("Transfer of ₹" + amount + " from Account " + fromAccountNumber + " to Account " + toAccountNumber + " successful."); + } + } else { + System.out.println("One or both of the accounts are not found."); + } + } + + // Method to display transaction history for a bank account + public void displayTransactionHistory(int accountNumber) { + List transactions = transactionHistory.get(accountNumber); + if (transactions != null && !transactions.isEmpty()) { + System.out.println("Transaction History for Account Number " + accountNumber + ":"); + for (Transaction transaction : transactions) { + System.out.println("Transaction ID: " + transaction.getTransactionId() + ", Type: " + transaction.getTransactionType() + ", Amount: ₹" + transaction.getAmount()); + } + } else { + System.out.println("No transaction history found for Account Number " + accountNumber); + } + } + + // Utility method to find a bank account by account number + private BankAccount findAccountByNumber(int accountNumber) { + for (BankAccount account : accounts) { + if (account.getAccountNumber() == accountNumber) { + return account; + } + } + return null; + } + + // Method to check balance with account number + public double checkBalance(int accountNumber) { + BankAccount account = findAccountByNumber(accountNumber); + if (account != null) { + System.out.println("Balance for Account Number " + accountNumber + ": ₹" + account.getBalance()); + return account.getBalance(); + } else { + System.out.println("Account with Account Number " + accountNumber + " not found."); + return -1; + } + } + + // Method to delete account with account number + public void deleteAccount(int accountNumber) { + BankAccount account = findAccountByNumber(accountNumber); + if (account != null) { + accounts.remove(account); + transactionHistory.remove(accountNumber); + System.out.println("Account with Account Number " + accountNumber + " deleted successfully."); + } else { + System.out.println("Account with Account Number " + accountNumber + " not found."); + } + } + + // Main method to demonstrate functionality + public static void main(String[] args) { + OnlineBankingSystem bankingSystem = new OnlineBankingSystem(); + Scanner scanner = new Scanner(System.in); + + while (true) { + System.out.println("\nOnline Banking System Menu:"); + System.out.println("1. Create Account"); + System.out.println("2. Deposit"); + System.out.println("3. Withdraw"); + System.out.println("4. Transfer"); + System.out.println("5. Check Balance"); + System.out.println("6. View Transaction History"); + System.out.println("7. Delete Account"); + System.out.println("8. Exit"); + System.out.print("Enter your choice: "); + + int choice = scanner.nextInt(); + scanner.nextLine(); + + switch (choice) { + case 1: + System.out.print("Enter account holder name: "); + String accountHolderName = scanner.nextLine(); + System.out.print("Enter account type (Checking/Savings): "); + String accountType = scanner.nextLine(); + bankingSystem.createAccount(accountHolderName, accountType); + break; + case 2: + System.out.print("Enter account number: "); + int depositAccountNumber = scanner.nextInt(); + System.out.print("Enter deposit amount: "); + double depositAmount = scanner.nextDouble(); + bankingSystem.deposit(depositAccountNumber, depositAmount); + break; + case 3: + System.out.print("Enter account number: "); + int withdrawAccountNumber = scanner.nextInt(); + System.out.print("Enter withdrawal amount: "); + double withdrawAmount = scanner.nextDouble(); + bankingSystem.withdraw(withdrawAccountNumber, withdrawAmount); + break; + case 4: + System.out.print("Enter account number to transfer from: "); + int fromAccountNumber = scanner.nextInt(); + System.out.print("Enter account number to transfer to: "); + int toAccountNumber = scanner.nextInt(); + System.out.print("Enter transfer amount: "); + double transferAmount = scanner.nextDouble(); + bankingSystem.transfer(fromAccountNumber, toAccountNumber, transferAmount); + break; + case 5: + System.out.print("Enter account number to check balance: "); + int checkBalanceAccountNumber = scanner.nextInt(); + bankingSystem.checkBalance(checkBalanceAccountNumber); + break; + case 6: + System.out.print("Enter account number to view transaction history: "); + int viewHistoryAccountNumber = scanner.nextInt(); + bankingSystem.displayTransactionHistory(viewHistoryAccountNumber); + break; + case 7: + System.out.print("Enter account number to delete: "); + int deleteAccountNumber = scanner.nextInt(); + bankingSystem.deleteAccount(deleteAccountNumber); + break; + case 8: + System.out.println("Exiting..."); + scanner.close(); + System.exit(0); + break; + default: + System.out.println("Invalid choice! Please enter a number between 1 and 8."); + } + } + } + +} From 691c3e854dac58d677e2cfd0e9466360d54f4414 Mon Sep 17 00:00:00 2001 From: MADDHURI VENU <149947159+QUIET-DEVELOPER@users.noreply.github.com> Date: Mon, 6 May 2024 20:52:55 +0530 Subject: [PATCH 2/2] Add files via upload --- MaddhuriVenu/README.md | 143 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 MaddhuriVenu/README.md diff --git a/MaddhuriVenu/README.md b/MaddhuriVenu/README.md new file mode 100644 index 0000000..49e49ed --- /dev/null +++ b/MaddhuriVenu/README.md @@ -0,0 +1,143 @@ +### 🌟 EASY - LEVEL TASKS 🌟 + + + + +# Task 1: Simple Calculator + +**Description:** This task involves developing a basic calculator application capable of performing addition, subtraction, multiplication, and division operations. + +**Instructions:** +1. Ensure Java is installed on your system. +2. Run the `SimpleCalculator.java` file using the command `java SimpleCalculator`. +3. Follow the prompts to choose the operation you want to perform and enter the numbers accordingly. +4. The result of the operation will be displayed. + +Feel free to reach out if you have any questions or encounter any issues while running the code. Happy computing! + + + + + +# Task 2: ToDo List + +**Description:** This task involves creating a console-based or GUI application for managing a list of tasks. The application allows users to add tasks, delete tasks, mark tasks as completed, and display the list of tasks. + +**Instructions:** +1. Ensure Java is installed on your system. +2. Run the `TodoList.java` file using the command `java TodoList`. +3. Follow the menu prompts to perform various actions: + - Press `1` to add a new task. Enter the task description when prompted. + - Press `2` to delete a task. Enter the index of the task to delete when prompted. + - Press `3` to mark a task as completed. Enter the index of the task to mark as completed when prompted. + - Press `4` to display all tasks along with their completion status. + - Press `5` to exit the application. + +Feel free to reach out if you have any questions or encounter any issues while running the application. Happy task managing! + + + + + +# Task 3: Number Guessing Game + +**Description:** This task involves implementing a simple number guessing game where the computer generates a random number, and the player tries to guess it within a certain number of attempts. + +**Instructions:** +1. Ensure Java is installed on your system. +2. Run the `NumberGuessingGame.java` file using the command `java NumberGuessingGame`. +3. The computer will generate a random number between 1 and 100. +4. You have a maximum of 5 attempts to guess the correct number. +5. Enter your guess when prompted. +6. If your guess is correct, you win! The game will display the number of attempts it took. +7. If your guess is too low or too high, the game will provide feedback, and you can try again. +8. If you exhaust all 5 attempts without guessing the correct number, the game will end, revealing the correct number. + +Feel free to reach out if you have any questions or encounter any issues while playing the game. Have fun guessing! + + + + + +# Task 4: Temperature Converter + +**Description:** This task involves building an application that converts temperatures between Celsius, Fahrenheit, and Kelvin scales. + +**Instructions:** +1. Ensure Java is installed on your system. +2. Run the `TemperatureConverter.java` file using the command `java TemperatureConverter`. +3. Choose the conversion type by entering the corresponding number: + - Enter `1` to convert Celsius to Fahrenheit. + - Enter `2` to convert Fahrenheit to Celsius. + - Enter `3` to convert Celsius to Kelvin. + - Enter `4` to convert Kelvin to Celsius. + - Enter `5` to convert Fahrenheit to Kelvin. + - Enter `6` to convert Kelvin to Fahrenheit. +4. Follow the prompts to enter the temperature value. +5. The converted temperature will be displayed based on your chosen conversion type. + +Feel free to reach out if you have any questions or encounter any issues while using the temperature converter. Enjoy converting temperatures! + + + + + + + + +### 💡 HARD - LEVEL TASKS 💡 + + + + + +# Task 5: Online Banking System + +**Description:** This task involves designing and implementing a comprehensive online banking system with features like account management, transaction history, fund transfers, bill payments, and security measures. + +**Instructions:** +1. Ensure Java is installed on your system. +2. Run the `OnlineBankingSystem.java` file using the command `java OnlineBankingSystem`. +3. Follow the menu prompts to perform various banking operations: + - Press `1` to create a new account. Enter the account holder's name and account type when prompted. + - Press `2` to deposit funds into an account. Enter the account number and deposit amount when prompted. + - Press `3` to withdraw funds from an account. Enter the account number and withdrawal amount when prompted. + - Press `4` to transfer funds between accounts. Enter the account numbers to transfer from and to, along with the transfer amount when prompted. + - Press `5` to check the balance of an account. Enter the account number when prompted. + - Press `6` to view the transaction history of an account. Enter the account number when prompted. + - Press `7` to delete an account. Enter the account number when prompted. + - Press `8` to exit the application. +4. Follow the instructions on the screen for each operation. +5. Ensure to handle all inputs carefully and securely to maintain the integrity of the banking system. + +Feel free to reach out if you have any questions or encounter any issues while using the online banking system. Happy banking! + + + + + +# Task 6: Hospital Management System + +**Description:** This task involves developing a system for managing hospital operations, including patient records, appointment scheduling, prescription management, billing, and inventory management. + +**Instructions:** +1. Ensure Java is installed on your system. +2. Run the `HospitalManagementSystem.java` file using the command `java HospitalManagementSystem`. +3. Follow the menu prompts to perform various hospital management operations: + - Press `1` to add a new patient. Enter patient details when prompted. + - Press `2` to add a new doctor. Enter doctor details when prompted. + - Press `3` to schedule an appointment. Enter patient ID, doctor ID, and appointment date when prompted. + - Press `4` to prescribe medication. Enter patient ID, doctor ID, medication, and dosage when prompted. + - Press `5` to generate a bill. Enter patient ID, bill amount, and bill date when prompted. + - Press `6` to add an item to inventory. Enter item details when prompted. + - Press `7` to display patient information. + - Press `8` to display doctor information. + - Press `9` to display appointment information. + - Press `10` to display prescription information. + - Press `11` to display billing information. + - Press `12` to display inventory information. + - Press `13` to exit the application. +4. Follow the instructions on the screen for each operation. +5. Ensure to handle all inputs carefully and securely to maintain the integrity of the hospital management system. + +Feel free to reach out if you have any questions or encounter any issues while using the hospital management system. \ No newline at end of file