The Complete Project Source Code Platform

Kashipara.com is a community of ONE million programmers and students, Just like you, Helping each other.Join them. It only takes a minute: Sign Up

Buy a laptop for coding and programming Buy a programming books

Age Calculator Project in Python with source code and document free download.

Python project   Publish on -  June 8, 2020
python python-project age-calculator-in-python tkinter-prroject age-calculator
Suraj Ghosh
Suraj Ghosh
Html CSS JavaScript PHP Python Arduino C Swift Android 
1 Reviews 5
2013 View
63 Downloads
 2013
 1
 63

In this page Age Calculator project is a desktop application which is developed in Python platform. This Python project with tutorial and guide for developing a code. Age Calculator is a open source you can Download zip and edit as per you need. If you want more latest Python projects here. This is simple and basic level small project for learning purpose. Also you can modified this system as per your requriments and develop a perfect advance level project. Zip file containing the source code that can be extracted and then imported into Python. Here Project Source code for BE, BTech, MCA, BCA, Engineering, Bs.CS, IT, Software Engineering, Computer Science students and Devloper. Student can submit in college for final year project. This script developed by Suraj Ghosh. This desktop application 100% working smooth without any bug. It is developed using Python tkinter and Database mysql. This software code helpful in academic projects and research paper for final year computer science. You can explore great collection of other Python projects.

Document and Reports information of Age Calculator

This doucment file contains project Synopsis, Reports, and various diagrams. Also Abstract in PDF, PPT file inside zip so that document link below the page. Class Diagrams, Use Case Diagrams, Entity–relationship(ER) Diagrams, Data flow diagram(DFD), Sequence diagram and software requirements specification (SRS) in report file. Complete ready made open source code free of cost download. You can find Top Downloaded Python projects here.

About Project

project NameAge Calculator
project ID3759
Developer NameSuraj Ghosh
Publish DateJune 8, 2020
project PlatformPython
Programming LanguagePython tkinter
Front End
Back End
IDE ToolPython
Databasemysql
project Typedesktop Application
No of project Download63
project Total View2013
Today Trends2
Current Month Trends156
Last Month Trends39

You have any error or you don't understand project follow or any other problem.You can ask question. you know any answer or solution then give a answer and help other student.Complete they project perfectly.

Recent Download BY - shaakir16, ramvilas2001, malli5285, vigneswari31, syed_ali800

You can't find any project with your requirement just tell us. We provide project as soon as possibles. Click to Share Here

Features of the Age Calculator Project

This python Software is calculate age automatically. Very useful Software in Python. This is very useful and helpful project.

Software Requirement to run this project

Details not available

Tools and Technologies to be used in this project

Details not available

How To Import And Run The Project?

# import all functions from the tkinter

from tkinter import *

#import Message Box module

from tkinter import messagebox

#import the Themed tk module

from tkinter import ttk

#import the time date module

from datetime import date

# Function for clearing the

# contents of all text entry boxes

def clearAll() :

# deleting the content from the entry box

dayField.delete(0, END)

monthField.delete(0, END)

yearField.delete(0, END)

givenDayField.delete(0, END)

givenMonthField.delete(0, END)

givenYearField.delete(0, END)

rsltDayField.delete(0, END)

rsltMonthField.delete(0, END)

rsltYearField.delete(0, END)

# function for checking error

def checkError() :

# if any of the entry field is empty

# then show an error message and clear

# all the entries

if (dayField.get() == "" or monthField.get() == ""

or yearField.get() == "" or givenDayField.get() == ""

or givenMonthField.get() == "" or givenYearField.get() == "") :

# show the error message

messagebox.showerror("Input Error")

# clearAll function calling

clearAll()

return -1

#Function to Calculate the age

def calculateAge():

#check for error

value = checkError()

#if there is a error then value will be - 1

if value==-1:

return

else:

# take a value from the respective entry boxes

# get method returns current text as string

birth_day = int(dayField.get())

birth_month = int(monthField.get())

birth_year = int(yearField.get())

given_day = int(givenDayField.get())

given_month = int(givenMonthField.get())

given_year = int(givenYearField.get())

# if birth date is greater then given birth_month

# then donot count this month and add 30 to the date so

# as to subtract the date and get the remaining days

month =[31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

if (birth_day > given_day):

given_month = given_month - 1

given_day = given_day + month[birth_month-1]

# if birth month exceeds given month, then

# donot count this year and add 12 to the

# month so that we can subtract and find out

# the difference

if (birth_month > given_month):

given_year = given_year - 1

given_month = given_month + 12

# calculate day, month, year

calculated_day = given_day - birth_day;

calculated_month = given_month - birth_month;

calculated_year = given_year - birth_year;

# calculated day, month, year write back

# to the respective entry boxes

# insert method inserting the

# value in the text entry box.

rsltDayField.insert(10, str(calculated_day))

rsltMonthField.insert(10, str(calculated_month))

rsltYearField.insert(10, str(calculated_year))

#The Driver Code

if __name__ == '__main__':

#Creating the GUI window

root = Tk()

#Setting the background color

root.config(background='light green')

#Setting the name of the GUI applications

root.title('Age Calculator')

#Setting the geometry of the GUI application

root.geometry('525x260')

#Create the Date of birth : Label

dob = Label(root, bg = 'blue')

#Create the Given Date : Label

givenDate = Label(root, text='CURRENT DATE', bg = 'lightblue')

#Create the Given Date : Label

birthDate = Label(root, text='BIRTH DATE', bg = 'lightblue')

# Create a Day : label

day = Label(root, text = 'Day = ', bg = 'light green')

# Create a Month : label

month = Label(root, text = 'Month = ', bg = 'light green')

# Create a Year : label

year = Label(root, text = 'Year = ', bg = 'light green')

# Create a Given Day : label

givenDay = Label(root, text = "Current Day = ", bg = "light green")

# Create a Given Month : label

givenMonth = Label(root, text = "Current Month = ", bg = "light green")

# Create a Given Year : label

givenYear = Label(root, text = "Current Year = ", bg = "light green")

# Create a Years : label

rsltYear = Label(root, text = "Years", bg = "light green")

# Create a Month : label

rsltMonth = Label(root, text = "Month", bg = "light green")

# Create a Days : label

rsltDay = Label(root, text = "Days", bg = "light green")

# Create a text entry box for filling or typing the information.

dayField = Entry(root)

monthField = Entry(root)

yearField = Entry(root)

givenDayField = Entry(root)

givenMonthField = Entry(root)

givenYearField = Entry(root)

rsltYearField = Entry(root)

rsltMonthField = Entry(root)

rsltDayField = Entry(root)

# rsltYearField = Entry(root)

# rsltMonthField = Entry(root)

# rsltDayField = Entry(root)

# Create a Resultant Age Button and attached to calculateAge function

resultantAge = Button(root, text = "CALCULATE AGE", fg = "Black", bg = "Red", command = calculateAge)

# Create a Clear All Button and attached to clearAll function

clearAllEntry = Button(root, text = "Clear All Output", fg = 'Black', bg = 'Red', command = clearAll)

# grid method is used for placing

# the widgets at respective positions

# in table like structure .

dob.grid(row = 0, column = 1)

day.grid(row = 1, column = 0)

dayField.grid(row = 1, column = 1)

month.grid(row = 2, column = 0)

monthField.grid(row = 2, column = 1)

year.grid(row = 3, column = 0)

yearField.grid(row = 3, column = 1)

givenDate.grid(row = 0, column = 4)

birthDate.grid(row = 0, column = 1)

givenDay.grid(row = 1, column = 3)

givenDayField.grid(row = 1, column = 4)

givenMonth.grid(row = 2, column = 3)

givenMonthField.grid(row = 2, column = 4)

givenYear.grid(row = 3, column = 3)

givenYearField.grid(row = 3, column = 4)

resultantAge.grid(row = 4, column = 2)

rsltYear.grid(row = 5, column = 2)

rsltYearField.grid(row = 6, column = 2)

rsltMonth.grid(row = 7, column = 2)

rsltMonthField.grid(row = 8, column = 2)

rsltDay.grid(row = 9, column = 2)

rsltDayField.grid(row = 10, column = 2)

clearAllEntry.grid(row = 12, column = 2)

# Start the GUI

root.mainloop()

How To Import Database?

No Database is used.

How To Create Diagram?

Age Calculator project output screen

output screen
output screen
output screen
output screen

Rate and Review

5
5
 1 Total Reviews

programmer reviews

What our programmer says about project

Latest Python project


Python project

Kind Heart Charity Donation project in Python

0
Features:

In this application we believe in the power of collective kindness to transform lives and communities. Every donation, no matter how big or small, has the potential to make a significant impact. By joining hands with us, you become a part of a movement dedicated to creating positive change and spreading hope to those in need. ... [ Download Source Code ]

Software Requirement:

Visual Studio Code

Avatar
robin_siva_2020
February 29, 2024
Like  0  |  Views  1105  |  Download  90
Python project

Audio Book Master project in Python

0
Features:

The Audio Book Master Project is a comprehensive web application designed to manage and play audio books. The increasing popularity of audiobooks has led to the development of the Audiobook Master Project. The project aims to provide a seamless and enjoyable experience for users to discover, play, and manage their favorite audiobooks. Leveraging mo ... [ Download Source Code ]

Software Requirement:

Visual Studio Code

Avatar
robin_siva_2020
February 29, 2024
Like  0  |  Views  1146  |  Download  113
Python project

Review-rating-aggregator project in Python

0
Features:

The Review and Rating Aggregator project is a web-based platform designed to gather and present public reviews from various sources. It offers users a centralized location to access and analyze feedback for various products and services, including food delivery apps, e-commerce platforms, and social media channels. The platform features an intuit ... [ Download Source Code ]

Software Requirement:

Visual Studio Code

Avatar
robin_siva_2020
February 29, 2024
Like  0  |  Views  807  |  Download  39
Python project

Student Management System project in Python

5
Features:

Our project student Management System includes registration of students , storing their details into the system, I,e, computerized the whole process. Our software has the facility to give a unique id for every student and stores the details of every student. It includes a search facility . it also search by name , contact and roll number. The data ... [ Download Source Code ]

Software Requirement:

• OS-Windows 8/9/10/11 • Python Interpreter • VS Code • XAMPP( For Mysql ) or Mysql Workbench

Avatar
lopalopa
February 24, 2024
Like  0  |  Views  4352  |  Download  535
Python project

Spam Detection project in Python

0
Features:

Machine Learning for Robust Spam Detection In the ever-evolving realm of email communication, the persistent issue of spam remains a significant concern. Thankfully, machine learning offers powerful tools to combat this problem by effectively classifying emails as spam or legitimate. Here's a detailed exploration of how machine learning can be l ... [ Download Source Code ]

Software Requirement:

Pycharm

Avatar
shashank26
February 16, 2024
Like  0  |  Views  2869  |  Download  336
Python project

Face Recognition Using Yolov7 Python Project project in Python

0
Features:

1. THIS PROJECTS CONSITS OF 1. FACE DETECTION USING YOLOV7 MODEL. 2. IT CAN DETECTION FACE IN JPGS. 3. IT CAN RUN IN VSCODE AND PYCHARM. ... [ Download Source Code ]

Software Requirement:

1. PYTHON >=3.9 2. PYCHARM OR VSCODE. 3. MUST INSTALL ALL REQUIRED PACKAGES.

Avatar
rockstararun
January 11, 2024
Like  0  |  Views  2405  |  Download  263