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

Job Resume Template

Age Calculator project in Python.

Python project   Last updated 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
2785 View
64 Downloads
 2785
 1
 64

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. This project can edit using a Python IDE. Following Python project contains all the important features which can be in use for the BE, BTech, MCA, BCA, Engineering, Bs.CS, IT, Software Engineering, Computer Science students and Devloper for their college projects. 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. To download Age Calculator project in Python with source code files, please scroll down to the bottom of this page for the Download Zip file of source code button.

About project

project Name

Age Calculator

Project Complexityadvanced
Duration15 Days
project ID3759
Developer NameSuraj Ghosh
Publish DateJune 8, 2020
project PlatformPython
Programming LanguageFor this particular Python project, Python tkinter is required
Front EndGUI for desktop apps PyQT, Tkinter, Kivy, wxPython, Bottle/ Web apps - HTML, CSS, JS, Bootstrap
Back EndPython, MySQL, Oracle, MariaDB, PostgreSQL, MongoDB, Microsoft SQL Server
IDE ToolPython
Database Integrationmysql
project Typedesktop Application
No of project Download64
project Total View2785
Today Trends315
Current Month Trends341
Last Month Trends51

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.

Premium/Paid project

Download Age Calculator source code

Click the Download Button Below to Start Downloading

Download Age Calculator source code at free of cost. Download link provide below.

Download Code
File size 0.0018 MB

Project Share and Earning Policy

Download Age Calculator document

Download Age Calculator Document PDF link below

Download PDF
File size 0.0265 MB

Click Here For Project Document PDF Format.

Telegram channel

WhatsApp channel

Subscribe us on youtube

Features of the Age Calculator project

We will implement the following feature in the Python Age Calculator Project:
This python Software is calculate age automatically. Very useful Software in Python. This is very useful and helpful project.

User modules and function of Age Calculator

We will implement the following functionalities in the Python Age Calculator Project:

Software requirement to run this project

Install latest Python for Windows / Mac / Linux. IDE for python : PyCharm, Visual Studio Code, Sublime Text, Spyder, Thonny, Atom, IDLE, Emacs, Jupyter, PyDev, Vim, Visual Studio, Eclipse, PyDev, Eric, Code editing, PyScripter DBMS : MySQL, Oracle, MariaDB, PostgreSQL, MongoDB, Microsoft SQL Server As per Project requriments.

Hardware requirement to run this project

1. laptop/desktop. 2. minimum 8GB RAM. 3. minimum 250GB SDD for high preforms.

How to install the project?

After you finish downloading the project, unzip the project file.

# 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.

Why a download Age Calculator project from kashipara?

Downloading the Age Calculator project from Kashipara is a best choice for students, beginners, and developers looking for a reliable, well documented, and ready to use project in Python.

Top benifit to Download our project over other website:

  • Our Age Calculator Source Code in Python completly working. This project easy to understand and fully customizable as per your requriments.
  • Free Download our Age Calculator projects.
  • Comprehensive Documentation:
    • We provide project Synopsis
    • Age Calculator project Abstract in PDF and PPT formats download in reports.
    • Detailed Project Report
  • UML & Technical Diagrams Included:
  • This project Ideal for Academic Projects Perfect for B.E., B.Tech, MCA, BCA, BSc CS, and IT students
  • 100% Working Project – Tested and bug free.
  • Developed for Learning & Research – A strong foundation for building advanced Age Calculator applications

How to create diagram?

Creating diagrams like Class Diagrams, Use Case Diagrams, Entity–Relationship (ER) Diagrams, Data Flow Diagrams (DFD), and Sequence Diagrams is essential for designing and understanding software systems. Here’s a proper guide to help you get started with each type:

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

Explore more Python projects