import java.util.ArrayList; import java.util.List;import java.util.Scanner;import java.text.DecimalFormat;/** * Rijon Healthcare Application * Handles Marketing Campaigns, SEO Data, and a demo of the Inventory System. */public class RijonHealthcareApp { // --- Marketing Data Constants --- private static final String COMPANY_NAME = "Rijon Healthcare"; private static final String CAMPAIGN_HEADER = "🔥 " + COMPANY_NAME + " — 40 Years of Trust & Care 🔥"; private static final String CAMPAIGN_OFFER = "November Mega Offer — Up To 40% OFF | 24/7 Home Delivery"; private static final String CAMPAIGN_BODY_BN = "Rijon Healthcare নিয়ে এলো আপনার পরিবারের সম্পূর্ণ স্বাস্থ্য সেবা — দ্রুত, সহজ, নিরাপদ।"; private static final String PHONE_ORDER = "+8801302165770"; private static final String PHONE_APPOINTMENT = "+8801687083600"; private static final String[] HASHTAGS = { "#RijonHealthcare", "#RijonPharma", "#HealthForAll", "#MedicalProductsBD", "#HomeDeliveryBD", "#NebulizerBD", "#BPMonitorBD", "#PulseOximeterBD", "#HealthcareServiceBD", "#PharmacyService", "#DigitalHealthBD", "#BangladeshHealthcare" }; private static final String[] SEO_KEYWORDS = { "Pharmacy home delivery Bangladesh", "Medical products Bangladesh", "Nebulizer BD price", "Pulse oximeter Bangladesh", "BP monitor online BD", "24 hour pharmacy delivery BD", "Doctor appointment Bangladesh" }; // --- Main Application Logic --- public static void main(String[] args) { Scanner scanner = new Scanner(System.in); InventorySystem inventory = new InventorySystem(); // Pre-load some items mentioned in the ad inventory.addProduct("Nebulizer", 2500.00, 10); inventory.addProduct("Pulse Oximeter", 800.00, 50); inventory.addProduct("BP Machine", 3200.00, 15); inventory.addProduct("Adult Diaper (Pack)", 1200.00, 100); while (true) { printMenu(); System.out.print("Select an option: "); String choice = scanner.nextLine(); switch (choice) { case "1": displayFacebookCampaign(); break; case "2": displaySEOStrategy(); break; case "3": inventory.runInventoryInterface(scanner); break; case "4": System.out.println("Exiting Rijon Healthcare System. Stay Healthy!"); scanner.close(); return; default: System.out.println("Invalid option. Please try again."); } System.out.println("\nPress Enter to continue..."); scanner.nextLine(); } } private static void printMenu() { System.out.println("\n=========================================="); System.out.println(" " + COMPANY_NAME + " Admin System"); System.out.println("=========================================="); System.out.println("1. Generate Facebook Campaign Text"); System.out.println("2. View SEO & Hashtag Strategy"); System.out.println("3. Open Inventory App (Demo)"); System.out.println("4. Exit"); System.out.println("=========================================="); } // --- Marketing Features --- private static void displayFacebookCampaign() { System.out.println("\n--- FACEBOOK COPY-PASTE READY ---"); System.out.println(CAMPAIGN_HEADER); System.out.println(CAMPAIGN_OFFER); System.out.println("\n" + CAMPAIGN_BODY_BN); System.out.println("\n💙 পন্য (Products):"); System.out.println("Nebulizer, Pulse Oximeter, BP Machine, Thermometer, PPE,"); System.out.println("Adult Diaper, Oxygen Items, First Aid, Wound Care, Masks & More!"); System.out.println("\n💙 সেবা (Services):"); System.out.println("Doctor Appointment, Emergency Medicine Delivery,"); System.out.println("Family Health Membership, Home Nurse Support."); System.out.println("\n📞 Call For Order: " + PHONE_ORDER); System.out.println("📞 Doctor Appointment: " + PHONE_APPOINTMENT); System.out.println("🚚 24/7 Home Delivery Available"); System.out.println("\n[Hashtags]"); for (String tag : HASHTAGS) { System.out.print(tag + " "); } System.out.println("\n---------------------------------"); } private static void displaySEOStrategy() { System.out.println("\n--- GOOGLE SEO STRATEGY ---"); System.out.println("Targeting Region: Bangladesh (BD)"); System.out.println("Primary Keywords:"); for (int i = 0; i < SEO_KEYWORDS.length; i++) { System.out.println((i + 1) + ". " + SEO_KEYWORDS[i]); } System.out.println("\nTarget Audiences:"); System.out.println("- Pharmacy Bangladesh"); System.out.println("- Asthma & COPD Support BD"); System.out.println("- Diabetes Support Bangladesh"); System.out.println("---------------------------"); } // --- Inventory System Class (Inner Class for Single File) --- static class InventorySystem { private List products; private DecimalFormat currency; public InventorySystem() { this.products = new ArrayList<>(); this.currency = new DecimalFormat("#,##0.00 BDT"); } public void addProduct(String name, double price, int stock) { products.add(new Product(name, price, stock)); } public void runInventoryInterface(Scanner scanner) { boolean back = false; while (!back) { System.out.println("\n>>> Rijon Healthcare Inventory App <<<"); System.out.println("1. View Stock"); System.out.println("2. Add New Product"); System.out.println("3. Back to Main Menu"); System.out.print("Choice: "); String choice = scanner.nextLine(); switch (choice) { case "1": viewStock(); break; case "2": System.out.print("Enter Product Name: "); String name = scanner.nextLine(); System.out.print("Enter Price (BDT): "); try { double price = Double.parseDouble(scanner.nextLine()); System.out.print("Enter Stock Quantity: "); int qty = Integer.parseInt(scanner.nextLine()); addProduct(name, price, qty); System.out.println("✅ Product added successfully!"); } catch (NumberFormatException e) { System.out.println("❌ Invalid number format."); } break; case "3": back = true; break; default: System.out.println("Invalid choice."); } } } private void viewStock() { System.out.println("\n--- CURRENT STOCK LIST ---"); System.out.printf("%-25s | %-15s | %-10s%n", "Product Name", "Price", "Stock"); System.out.println("-----------------------------------------------------"); for (Product p : products) { System.out.printf("%-25s | %-15s | %-10d%n", p.name, currency.format(p.price), p.stock); } System.out.println("-----------------------------------------------------"); } } // --- Product Model --- static class Product { String name; double price; int stock; public Product(String name, double price, int stock) { this.name = name; this.price = price; this.stock = stock; } }}

মন্তব্যসমূহ