Posts

Showing posts from June, 2025

CALCULATOR

Image
  PROGRAM: def add(x,y):     return(x+y) def subract(x,y):     return(x-y) def multiply(x,y):     return(x*y) def divide(x,y):     return(x/y) def calculator():     while True:         print("1.ADDITION")         print("2.SUBRACTION")         print("3.MULTIPLY")         print("4.DIVIDE")         choice=int(input("Enter your choice:"))         x=int(input("Enter Your Number:"))         y=int(input("Enter Your Number:"))         if(choice==1):              print("addition:",add(x,y))         if(choice==2):              print("subraction:",subract(x,y))         if(choice==3):              print("multiply:",multiply(x,y))     ...

Department Prediction System for Academic Project Titles Based on Keyword Analysis

Image
  PROGRAM: import pandas as pd import re titles = [       "A STUDY ON ADVERSITY QUOTIENT OF EMPLOYEES IN THE IT COMPANY",     "A STUDY ON THE ENTREPRENEURIAL PROPENSITY OF ENGINEERING STUDENTS OF SATHYABAMA",     "A STUDY ON CUSTOMER PERCEPTION TOWARDS DIGITAL BANKING",     "THE EFFECT OF ONLINE REVIEWS ON BRAND EQUITY FOR ELECTRONIC HOME APPLIANCES (SAMSUNG)",     "A STUDY ON EFFECTIVENESS OF ORGANISATIONAL CULTURE AMONG EMPLOYEES IN AUTOMOBILE SECTOR",     "EMPLOYEE PERCEPTION ON QUALITY OF WORK LIFE TOWARDS JOB SATISFACTION IN BANKING INDUSTRY",     "A STUDY OF CUSTOMER SATISFACTION ON RETAIL AUTOMOBILE BATTERY",     "A STUDY ON EFFECTIVENESS OF PACKAGING PRODUCT IN ONLINE SHOPPING",     "A STUDY ON WORK-LIFE BALANCE DURING COVID-19 WITH SPECIAL REFERENCE TO EMPLOYEES",     "STUDY ON IMPACTS OF CORONA VIRUS PANDEMIC ON TOURISM",     "A STUDY OF COMPREHENSIVE ATTRITI...

Loan Management System - EMI Calculator

Image
PROGRAM: import tkinter as tk from tkinter import messagebox from reportlab.lib.pagesizes import A4 from reportlab.pdfgen import canvas def calculate_loan():     try:         principal = float(entry_principal.get())         rate = float(entry_rate.get()) / 100 / 12           years = int(entry_years.get())         months = years * 12         emi = (principal * rate * (1 + rate) ** months) / ((1 + rate) ** months - 1)         total_payment = emi * months         total_interest = total_payment - principal         result.set(f"EMI: ₹{emi:.2f}\nTotal Payment: ₹{total_payment:.2f}\nInterest: ₹{total_interest:.2f}")         global statement_data         statement_data = {             "Principal": principal,            ...

Bus Booking Application using Tkinter (Python GUI)

Image
PROGRAM: import tkinter as tk from tkinter import messagebox, ttk from datetime import date bus_data = [{"bus_name": "SRS Travels", "time": "9:00 AM", "price": 500},     {"bus_name": "VRL Travels", "time": "1:00 PM", "price": 550},     {"bus_name": "KSRTC", "time": "6:00 PM", "price": 450},] def search_buses():     source = source_var.get()     dest = dest_var.get()     travel_date = date_var.get()     if source == dest or not (source and dest and travel_date):         messagebox.showwarning("Missing Info", "Please fill all fields properly.")         return     for widget in results_frame.winfo_children():         widget.destroy()     tk.Label(results_frame, text=f"Available buses from {source} to {dest} on {travel_date}",              font=('Arial', 12, 'bold')).pack(pady=5)     for bus in bu...

ATM Simulation using Python and Tkinter GUI

Image
  PROGRAM: import tkinter as tk from tkinter import messagebox class SimpleATM:     def __init__(self, window):         self.window = window         self.window.title("ATM")         self.balance = 10000.00         self.label = tk.Label(window, text="ATM", font=('Arial', 20))         self.label.pack(pady=10)         tk.Button(window, text="Check Balance", command=self.show_balance, width=20).pack(pady=5)         tk.Button(window, text="Deposit", command=self.deposit_money, width=20).pack(pady=5)         tk.Button(window, text="Withdrawal", command=self.withdraw_money, width=20).pack(pady=5)         tk.Button(window, text="Exit", command=window.quit, width=20).pack(pady=5)     def show_balance(self):         messagebox.showinfo("Your Balance", f"Balance: ${self.balanc...

Healthcare Chatbot Using Tkinter GUI in Python

Image
PROGRAM: from tkinter import * from PIL import Image, ImageTk window = Tk() window.title(" Welcome To Shrinidhi Healthcare Chatbot") window.geometry('600x600') window.resizable(False, False) bg_image = Image.open(r"C:\\Users\\shrin\\Downloads\\Lovepik_com-401764710-hospital-background.jpg") bg_image = bg_image.resize((600, 600), Image.Resampling.LANCZOS) bg_photo = ImageTk.PhotoImage(bg_image) canvas = Canvas(window, width=600, height=600) canvas.pack(fill="both", expand=True) canvas.create_image(0, 0, image=bg_photo, anchor="nw") messages = [] def get_chatbot_response(user_input):     user_input = user_input.lower()     if "hello" in user_input:         return "How can I assist you?"     elif "fever" in user_input:         return "It may be due to climate change."     elif "headache" in user_input:         return "It might be a migraine or due to mobile usage."     elif "ty...

Bus Ticket Booking System in Python

Image
PROGRAM: bus_no = "10" source = "udumalpet" destination = "chennai" total_seats = 10 available_seats = 10 bookings = [] while True:     print("\nMenu")     print("1. Bus Info")     print("2. Book Ticket")     print("3. Show Bookings")     print("4. Exit")     choice = input("Enter your choice: ")     if choice == '1':           print("Bus No:", bus_no)         print("Source:", source)         print("Destination:", destination)         print("Total Seats:", total_seats)         print("Available Seats:", available_seats)     elif choice == '2':         if available_seats > 0:             name = input("Enter your name: ")             seat_number = total_seats - available_seats + 1            ...

ATM Transaction System in Python

Image
PROGRAM:  balance = 1000 def check_balance():     print("The balance amount is ",balance) def withdrawal():     global balance     amt = int(input("Enter your withdrawal amount: "))     if amt > balance:         print("Insufficient funds")     else:         balance -= amt         print("Amount withdrawn successfully!") def deposit():     global balance     amount = int(input("Enter an amount to deposit: "))     if amount > 0:         balance += amount         print("Amount deposited successfully!")     else:         print("Enter a valid amount.") def atm():     a=input("insert your card:")     pin_code = int(input("Enter your PIN code: "))     if pin_code == 1234:             b=input("current account or savings...