PDF Mad Report DL
PDF Mad Report DL
ACKNOWLEDGEMENT
The mini project report on “University Management System” is the outcome of guidance, moral
support and devotion bestowed on us throughout our work. For this we acknowledge and express our
profound sense of gratitude and thanks
thanks to everybody who hav
havee been a source of inspiration during the
project work.
First and foremost, we offer our sincere phrases of thanks with innate humility to our Principal Dr. B.
S. Anami who has been a constant source of support and encouragement. We would like to thank our
Dean Academic Dr. S. G. Joshi. for his constant support and guidance.
We feel deeply indebted to our H.O.D. Mr. Mahantesh Sajjan for the right help provided from the time
of inception till date. I would take this opportunity to acknowledge our Guide and coordinator Mrs.
Puneeth N T who not only stood by us as a source of inspiration, but also dedicated his time to enable
us to present the project on time.
Radhika M Irkal
Vijayalaxmi M
Veena S Wali
Shweta Dalabanjan.
TABLE OF CONTENT
7 REFERENCES 31
ABSTRACT
This is an integrated application for calculating income tax and EMI. It will assist to assess, how much, we
should pay as our income tax or EMI. It can quickly calculate taxes and EMI rates. It has two modules
namely, (i)Income tax calculation module, (ii) EMI calculation module. The tax calculation module is used
to perform tax related calculations required by a salaried person in government and non-organization the tax
rules and rates are based on government regulations. This module calculates income tax to be paid on their
income. An EMI Calculator is a utility tool, which helps you to calculate the amount you repay each month
towards your loan. You can use the EMI calculator and calculate the EMI amount on a car loan, home loan,
bike loan, or a personal loan. You get an idea of the monthly repayments you makemake towards these loans. The
application is user friendly, interactive and provides easy to use options for the aforementioned financial
computations.
CHAPTER 1
Department of ISE 3 KLEIT, Hubli
INTRODUCTION
Android Studio is the official integrated development environment (IDE) for Google
Google's
's Android
operating syst
operating sy stem
em,, built on JetBrains' IntelliJ IDEA software and designed specifically for Android
development.. It is available for download on Windows
development Windows,, macOS and Linux
Linux based
based operating systems or as
a subscription-based service in 2020. It is a replacement for the Eclipse Android Development Tools (E-
ADT) as the primary IDE for native Android application development
Android Studio was announced on May 16, 2013 at the Google I/O conference. It was in early access
preview stage starting from version 0.1 in May 2013,
2013, then entered beta stage starting from version 0.8
which was released in June 2014.The first stable build was released in December 2014, starting from
version 1.0.
On May 7, 2019, Kotlin replaced Java as Google's preferred language for Android app development. Java
is still supported, as is C++
C++..
A specific feature of the Android Studio is an absence of the possibility to switch autosave feature
off. The following features are provided in the current stable version:
Grad
Gr adle
le-based
-based build support
Android-specific ref
refact
actori
oring
ng and quick fixes
Lint tools to catch performance, usability, version compatibility and other problems
ProGua
Pro Guard
rd integration and app-signing capabilities
A rich lay
layout
out edit
editor
or that allows users to drag-and-drop UI components, option to preview
to preview
layo
la yout
utss on multiple screen configurations
Built-in support for Google Cloud Platform, enabling integration with Firebase Cloud
Messaging (Earlier 'Google Cloud Messaging') and Google App Engine
Android Virtual Device (Emulator) to run and debug apps in the Android studio.
development
The Android software development kit (SDK) includes a comprehensive
comprehensive set of development tools. These
include a debugger, libraries, a handset emulator based on QEMU, documentation, sample code, and
tutorials. Currently supported development platforms include computers running Linux (any modern
desktop Linux distribution), Mac OS X 10.5.8 or later, and Windows 7 or later. As of March 2015, the
SDK is not available on Android itself, but software development is possible by using specialized Android
applications.
Until around the end of 2014, the officially-supported integrated development environment (IDE) was
Eclipse using the Android Development Tools (ADT) Plugin, though IntelliJ IDEA IDE (all editions) fully
supports Android development out of the box, and NetBeans IDE also supports Android development via a
plugin. As of 2015, Android Studio made by Google and powered by IntelliJ,
IntelliJ, is the official IDE; however,
developers are free to use others, but Google made it clear that ADT was officially deprecated since the end
of 2015 to focus on Android Studio as the official Android IDE. Additionally, developers may use any text
editor to edit Java and XML files, then use command line tools (Java Development Kit and Apache ANT
are required) to create, build and debug Android applications as well as control attached Android devices
(e.g., triggering a reboot, installing software package(s) remotely).
Linux kernel
Department of ISE 5 KLEIT, Hubli
It is the heart of android architecture that exists at the root of android architecture. Linux kernel is
responsible for device drivers, power management, memory management, device management and
resource access.
Native libraries
On the top of Linux kernel, there are Native libraries such as Web Kit, OpenGL, Free Type,
SQLite, Media, C runtime library (lib c) etc.
The Web Kit library is responsible for browser support, SQLite is for database, Free Type for font
support, Media for playing and recording audio and video formats.
Android Runtime
In android runtime, there are core libraries and DVM (Dalvik Virtual Machine) which is
responsible to run android application. DVM is like JVM but it is optimized for mobile devices. It
consumes less memory and provides fast performance.
Native libraries
On the top of Native libraries and android runtime, there is android framework. Android framework
includes Android API's such as UI (User Interface), telephony, resources, locations, Content
Providers (data) and package managers. It provides a lot of classes and interfaces for android
application development.
Applications
On the top of android framework, there are applications. All applications such as home, contact,
settings, games, browsers are using android framework that uses android runtime and libraries.
Android runtime and native libraries are using Linux kernel.
It is a textual data format with strong support via Unicode for different human languages.
languages. Although the
design of XML focuses on documents, the language is widely used for the representation of arbitrary data
structures such as those used in web ser
service
vices.
s.
Several schema systems exist to aid in the definition of XML-based languages, while programmers have
developed many app
applic
licati
ation
on prog
program
ramming
ming inte
interfa
rfaces
ces (APIs) to aid the processing of XML data.
The design goals of XML include, "It shall be easy to write programs which process XML documents."
Despite this, the XML specification contains almost no information about how programmers might go
about doing such processing. The XML Info set specification provides a vocabulary to refer to the
constructs within an XML document, but does not provide any guidance on how to access this
information. A variety of APIs for accessing XML have been developed and used, and some
s ome have been
standardized.
Existing APIs for XML processing tend to fall into these categories:
Stream-oriented APIs accessible from a programming language, for example SAX and Tax
Tax..
XML
XM L da
data
ta bi
bind
ndin
ingg, which provides an automated translation between an XML document
and programming-language objects.
Syntax extensions to general-purpose programming languages, for example LINQ and Scala
Scala..
Java is a high-level
high-level,, cla
class-
ss-bas
based
ed,, object-oriented
object-oriented programming
programming language that is designed to have as few
Department of ISE 7 KLEIT, Hubli
implementation depe
dependenc
ndencies
ies as possible.
possible. It is a gener
general-p
al-purpos
urposee programming language intended
to let application developers write once, run anywhere (WORA), meaning that compiled Java code can
run on all platforms that support Java without the need for recompilation. Java applications are typically
compiled to bytecode
to bytecode that can run on any Ja
Java
va vi
virt
rtua
uall ma
machi
chine
ne (JVM) regardless of the underlying
computer architecture.
architecture. The syntax of Java is similar to C and C++ , but has fewer low-level facilities than
either of them. The Java runtime provides dynamic capabilities (such as reflection and runtime code
modification) that are typically not available in traditional compiled languages. As of 2019, Java was
one of the most popular
most popular programming languages in use according to GitHub
GitHub,, particularly for client-
server web app
appli
lica
cati
tions
ons , with a reported 9 million developers.
Java was originally developed by James Gosling at Sun Microsystems (which has since been acquired by
by
Oracle) and released in 1995 as a core component of Sun Microsystems' Ja
Oracle) Java
va pl
plat
atfo
form
rm.. The original
and reference implementation Java compilers
compilers,, virtual machines, and class libraries were originally
released by Sun under proprietary
under proprietary licenses.
licenses. As of May 2007, in compliance with the specifications of the
Java Commun
Java Com munit
ityy Pr
Proc
oces
esss, Sun had relicensed most of its Java technologies under the GPL-2.0-only
license. Oracle offers its own Hotspot Java Virtual Machine, however the official re
refe
fere
renc
ncee
implementation is the OpenJDK JVM which is free open source software and used by most developers
and is the default JVM for almost
a lmost all Linux distributions.
Chapter 2
REQUIREMENT SPECIFICATION
2.
2.2
2 HAR
HARDWA
DWARE
RE R
REQU
EQUIRE
IREMEN
MENTS
TS
Outp
Output
ut Devi
Device
ce : Con
Conne
nect
cted
ed Andr
Androi
oid
d Mobi
Mobile
le / And
Andro
roid
id Emul
Emulat
ator
or-P
-Pix
ixel
el 3a API
API 27
CHAPTER 3
Income Tax and EMI Calculator is an android based application, and enables the user to check their income
tax rates and EMI rates. It
rates. It will assist to assess, how much, we should pay as our income tax or EMI. The
app is user friendly, and the user shall find it extremely easy to calculate the income tax that the user has to
pay based of their income and government
government rules and also to calculate the EMI rates on their loan. The
loan. The
application is user friendly, interactive and provides easy to use options for the aforementioned financial
computations.
CHAPTER 4
IMPLEMENTATION
4.1 XML CODE
a) activity_emi.xml
<android.support.design.widget.CoordinatorLayout
xmlns:android
xmlns: android="http://schemas.android.com/apk/res/android"
="http://schemas.android.com/apk/res/android"
android:layout_width
android :layout_width="match_parent"
="match_parent"
xmlns:tools
xmlns: tools="http://schemas.android.com/tools"
="http://schemas.android.com/tools"
tools:context
tools:context="com.cmt.taxcalculator.EMIActivity"
="com.cmt.taxcalculator.EMIActivity"
xmlns:app
xmlns: app="http://schemas.android.com/apk/res-auto"
="http://schemas.android.com/apk/res-auto"
android:layout_height
android :layout_height="match_parent"
="match_parent">
>
<android.support.v4.widget.NestedScrollView
android:layout_height
android :layout_height="match_parent"
="match_parent"
android:layout_width
android :layout_width="match_parent"
="match_parent">>
<LinearLayout
android:layout_width
android:layout_width="match_parent"
="match_parent"
android:layout_height
android:layout_height="match_parent"
="match_parent"
android:layout_marginTop
android:layout_marginTop="?attr/actionBarSize"
="?attr/actionBarSize"
android:orientation="vertical"
android:orientation ="vertical"
android:paddingLeft
android:paddingLeft="20dp"
="20dp"
android:paddingTop
android:paddingTop="10dp"
="10dp"
android:paddingRight
android:paddingRight="20dp"
="20dp">
>
<android.support.design.widget.TextInputLayout
android:id
android:id="@+id/input_layout_principal"
="@+id/input_layout_principal"
android:layout_width
android:layout_width="match_parent"
="match_parent"
android:layout_height
android:layout_height="wrap_content"
="wrap_content">
>
<EditText
android:id
android:id="@+id/principal"
="@+id/principal"
android:layout_width
android:layout_width="match_parent"
="match_parent"
android:layout_height
android:layout_height="wrap_content"
="wrap_content"
android:digits
android:digits="0123456789."
="0123456789."
android:hint
android:hint="@string/hint_principal"
="@string/hint_principal"
android:inputType
android
android:inputType="number"
android:singleLine="number"
:singleLine="true"
="true"
tools:ignore
tools:ignore="Autofill"
="Autofill" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id
android:id="@+id/input_layout_interest"
="@+id/input_layout_interest"
android:layout_width
android:layout_width="match_parent"
="match_parent"
android:layout_height
android:layout_height="wrap_content"
="wrap_content">
>
<EditText
android:id
android:id="@+id/interest"
="@+id/interest"
android:layout_width
android:layout_width="match_parent"
="match_parent"
android:layout_height
android:layout_height="wrap_content"
="wrap_content"
android:digits
android:digits="0123456789."
="0123456789."
android:hint
android:hint="@string/hint_interest"
="@string/hint_interest"
android:inputType
android:inputType="number"
="number"
android:singleLine="true"
android:singleLine="true"
tools:ignore
tools:ignore="Autofill"
="Autofill" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/input_layout_tenure"
android:id="@+id/input_layout_tenure"
android:layout_width
android:layout_width="match_parent"
="match_parent"
android:layout_height
android:layout_height="wrap_content"
="wrap_content">
>
<EditText
android:id
android:id="@+id/years"
="@+id/years"
android:layout_width
android:layout_width="match_parent"
="match_parent"
android:layout_height
android:layout_height="wrap_content"
="wrap_content"
android:digits
android:digits="0123456789."
="0123456789."
android:hint
android:hint="@string/hint_years"
="@string/hint_years"
android:inputType
android:inputType="number"
="number"
tools:ignore
tools:ignore="Autofill"
="Autofill" />
</android.support.design.widget.TextInputLayout>
<Button
android:id
android:id="@+id/btn_calculate2"
="@+id/btn_calculate2"
android:layout_width
android:layout_width="fill_parent"
="fill_parent"
android:layout_height
android:layout_height="wrap_content"
="wrap_content"
android:layout_marginTop
android:layout_marginTop="40dp"
="40dp"
android:background
android:background="@color/colorPrimary"
="@color/colorPrimary"
android:text
android:text="Calculate"
="Calculate"
android:textColor
android:textColor="@android:color/white"
="@android:color/white"
tools:ignore
tools:ignore="HardcodedText"
="HardcodedText" />
<android.support.design.widget.TextInputLayout
android:id="@+id/input_layout_emi"
android:id="@+id/input_layout_emi"
android:layout_width
android:layout_width="match_parent"
="match_parent"
android:layout_height
android:layout_height="wrap_content"
="wrap_content"
android:layout_marginTop
android:layout_marginTop="40dp"
="40dp">
>
<EditText
android:id="@+id/emi"
android:id="@+id/emi"
android:layout_width
android:layout_width="match_parent"
="match_parent"
android:layout_height
android:layout_height="wrap_content"
="wrap_content"
android:hint
android:hint="@string/hint_emi"
="@string/hint_emi"
android:inputType
android:inputType="number"
="number"
android:maxEms
android:maxEms="0"
="0"
tools:ignore
tools:ignore="Autofill"
="Autofill" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/input_layout_total_Interest"
android:id="@+id/input_layout_total_Interest"
android:layout_width
android:layout_width="match_parent"
="match_parent"
android:layout_height
android:layout_height="wrap_content"
="wrap_content"
android:layout_marginTop
android:layout_marginTop="10dp"
="10dp">
>
<EditText
android:id
android:id="@+id/interest_total"
="@+id/interest_total"
android:layout_width="match_parent"
android:layout_width ="match_parent"
android:layout_height
android:layout_height="wrap_content"
="wrap_content"
android:hint
android:hint="@string/hint_interest_total"
="@string/hint_interest_total"
android:inputType
android:inputType="number"
="number"
tools:ignore
tools:ignore="Autofill"
="Autofill" />
</android.support.design.widget.TextInputLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
b) activity_main.xml
<?
<?xml
xml version="1.0"
version="1.0" encoding
encoding="utf-8"
="utf-8"?>
?>
<android.support.constraint.ConstraintLayout
xmlns:android
xmlns: android="http://schemas.android.com/apk/res/android"
="http://schemas.android.com/apk/res/android"
xmlns:app
xmlns: app="http://schemas.android.com/apk/res-auto"
="http://schemas.android.com/apk/res-auto"
xmlns:tools
xmlns: tools="http://schemas.android.com/tools"
="http://schemas.android.com/tools"
android:layout_width
android :layout_width="match_parent"
="match_parent"
android:layout_height
android :layout_height="match_parent"
="match_parent"
tools:context
tools :context="com.cmt.taxcalculator.MainActivity"
="com.cmt.taxcalculator.MainActivity" >
<Button
android:id
android :id="@+id/button1"
="@+id/button1"
android
android:layout_width
:layout_width="280dp"
android:layout_height
android ="280dp"
:layout_height="53dp"
="53dp"
android:background
android :background="@android:color/holo_orange_light"
="@android:color/holo_orange_light"
android:text
android :text="Income
="Income Tax Calculator"
app:layout_constraintBottom_toTopOf
app:layout_constraintBottom_toTopOf ="@+id/button2"
app:layout_constraintEnd_toEndOf
app:layout_constraintEnd_toEndOf ="parent"
app:layout_constraintLeft_toLeftOf
app:layout_constraintLeft_toLeftOf ="parent"
app:layout_constraintRight_toRightOf
app:layout_constraintRight_toRightOf ="parent"
app:layout_constraintStart_toStartOf
app:layout_constraintStart_toStartOf ="parent"
app:layout_constraintTop_toTopOf
app:layout_constraintTop_toTopOf ="parent"
app:layout_constraintVertical_bias
app:layout_constraintVertical_bias ="0.42"
tools:ignore
tools :ignore="HardcodedText"
="HardcodedText" />
<Button
android:id
android :id="@+id/button2"
="@+id/button2"
android:layout_width
android :layout_width="284dp"
="284dp"
android:layout_height
android :layout_height="51dp"
="51dp"
android:layout_marginBottom
android :layout_marginBottom ="16dp"
android:background
android :background="@android:color/holo_orange_light"
="@android:color/holo_orange_light"
android:text
android :text="EMI
="EMI Calculator"
app:layout_constraintBottom_toBottomOf
app:layout_constraintBottom_toBottomOf ="parent"
app:layout_constraintHorizontal_bias
app:layout_constraintHorizontal_bias ="0.504"
app:layout_constraintLeft_toLeftOf
app:layout_constraintLeft_toLeftOf ="parent"
app:layout_constraintRight_toRightOf
app:layout_constraintRight_toRightOf ="parent"
app:layout_constraintTop_toBottomOf
app:layout_constraintTop_toBottomOf ="@+id/button1"
tools:ignore
tools :ignore="HardcodedText"
="HardcodedText" />
</android.support.constraint.ConstraintLayout>
c)activity_income.xml
<?xml
<?xml version="1.0"
version="1.0" encoding
encoding="utf-8"
="utf-8"?>
?>
<android.support.constraint.ConstraintLayout
xmlns:android
xmlns: android="http://schemas.android.com/apk/res/android"
="http://schemas.android.com/apk/res/android"
xmlns:app
xmlns: app="http://schemas.android.com/apk/res-auto"
="http://schemas.android.com/apk/res-auto"
Department of ISE 13 KLEIT, Hubli
xmlns:tools="http://schemas.android.com/tools"
xmlns:tools ="http://schemas.android.com/tools"
android:layout_width
android:layout_width="match_parent"
="match_parent"
android:layout_height
android:layout_height="match_parent"
="match_parent"
tools:context
tools:context="com.cmt.taxcalculator.IncomeActivity"
="com.cmt.taxcalculator.IncomeActivity" >
<EditText
android:id
android :id="@+id/edit1"
="@+id/edit1"
android:layout_width
android :layout_width="143dp"
="143dp"
android:layout_height
android :layout_height="wrap_content"
="wrap_content"
android:layout_marginTop="18dp"
android:layout_marginTop ="18dp"
android:layout_marginEnd
android :layout_marginEnd="16dp"
="16dp"
android:ems
android :ems="10"
="10"
android:inputType
android :inputType="number|numberDecimal"
="number|numberDecimal"
android:labelFor
android :labelFor="@id/edit1"
="@id/edit1"
app:layout_constraintBottom_toBottomOf
app:layout_constraintBottom_toBottomOf ="parent"
app:layout_constraintEnd_toEndOf
app:layout_constraintEnd_toEndOf ="parent"
app:layout_constraintTop_toTopOf
app:layout_constraintTop_toTopOf ="parent"
app:layout_constraintVertical_bias
app:layout_constraintVertical_bias ="0.143"
tools:ignore
tools :ignore="Autofill"
="Autofill" />
<TextView
android:id
android :id="@+id/text1"
="@+id/text1"
android:layout_width
android :layout_width="wrap_content"
="wrap_content"
android:layout_height
android :layout_height="wrap_content"
="wrap_content"
android:layout_marginTop
android :layout_marginTop="8dp"
="8dp"
android:text
android :text="Enter
="Enter your Income:"
android:textAlignment
android :textAlignment="center"
="center"
android:textColor
android :textColor="@android:color/background_dark"
="@android:color/background_dark"
android:textSize
android :textSize="16sp"
="16sp"
app:layout_constraintBottom_toBottomOf
app:layout_constraintBottom_toBottomOf ="parent"
app:layout_constraintEnd_toStartOf
app:layout_constraintEnd_toStartOf ="@+id/edit1"
app:layout_constraintHorizontal_bias
app:layout_constraintHorizontal_bias ="0.652"
app:layout_constraintStart_toStartOf
app:layout_constraintStart_toStartOf ="parent"
app:layout_constraintTop_toTopOf
app:layout_constraintTop_toTopOf ="parent"
app:layout_constraintVertical_bias
app:layout_constraintVertical_bias ="0.177" />
<Button
android:id
android :id="@+id/button3"
="@+id/button3"
android:layout_width
android :layout_width="173dp"
="173dp"
android:layout_height
android :layout_height="wrap_content"
="wrap_content"
android:layout_marginStart
android :layout_marginStart="8dp"
="8dp"
android:layout_marginTop
android :layout_marginTop="8dp"
="8dp"
android:layout_marginEnd="8dp"
android:layout_marginEnd ="8dp"
android:layout_marginBottom
android :layout_marginBottom ="8dp"
android:text
android :text="Amount"
="Amount"
app:layout_constraintBottom_toBottomOf
app:layout_constraintBottom_toBottomOf ="parent"
app:layout_constraintEnd_toEndOf
app:layout_constraintEnd_toEndOf ="parent"
app:layout_constraintHorizontal_bias
app:layout_constraintHorizontal_bias ="0.502"
app:layout_constraintStart_toStartOf
app:layout_constraintStart_toStartOf ="parent"
app:layout_constraintTop_toTopOf
app:layout_constraintTop_toTopOf ="parent"
app:layout_constraintVertical_bias
app:layout_constraintVertical_bias ="0.834" />
<TextView
android:id
android :id="@+id/text2"
="@+id/text2"
android:layout_width
android :layout_width="346dp"
="346dp"
android:layout_height
android :layout_height="163dp"
="163dp"
android:layout_marginStart
android :layout_marginStart="8dp"
="8dp"
android:layout_marginTop
android :layout_marginTop="180dp"
="180dp"
android
android:layout_marginEnd
:layout_marginEnd="8dp"
="8dp"
android:layout_marginBottom
android :layout_marginBottom ="8dp"
android:fontFamily
android :fontFamily="monospace"
="monospace"
android:textAlignment="viewStart"
android:textAlignment ="viewStart"
android:textColor
android :textColor="@android:color/black"
="@android:color/black"
android:textSize
android :textSize="18sp"
="18sp"
app:layout_constraintBottom_toTopOf
app:layout_constraintBottom_toTopOf ="@+id/button3"
app:layout_constraintEnd_toEndOf
app:layout_constraintEnd_toEndOf ="parent"
app:layout_constraintHorizontal_bias
app:layout_constraintHorizontal_bias ="1.0"
app:layout_constraintStart_toStartOf
app:layout_constraintStart_toStartOf ="parent"
app:layout_constraintTop_toTopOf
app:layout_constraintTop_toTopOf ="parent"
app:layout_constraintVertical_bias
app:layout_constraintVertical_bias ="0.687" />
</android.support.constraint.ConstraintLayout>
d)activity_splash_screen.xml
<?
<?xml
xml version="1.0"
version="1.0" encoding
encoding="utf-8"
="utf-8"?>
?>
<android.support.constraint.ConstraintLayout
xmlns:android
xmlns: android="http://schemas.android.com/apk/res/android"
="http://schemas.android.com/apk/res/android"
xmlns:app
xmlns: app="http://schemas.android.com/apk/res-auto"
="http://schemas.android.com/apk/res-auto"
xmlns:tools
xmlns: tools="http://schemas.android.com/tools"
="http://schemas.android.com/tools"
android:layout_width
android :layout_width="match_parent"
="match_parent"
android:layout_height
android :layout_height="match_parent"
="match_parent"
android:background
android :background="@drawable/bg3"
="@drawable/bg3"
tools:context
tools :context="com.cmt.taxcalculator.SplashScreen"
="com.cmt.taxcalculator.SplashScreen" >
<TextView
android:id
android :id="@+id/textview1"
="@+id/textview1"
android:layout_width
android :layout_width="331dp"
="331dp"
android:layout_height
android :layout_height="56dp"
="56dp"
android:layout_marginStart
android :layout_marginStart="68dp"
="68dp"
android:layout_marginTop
android :layout_marginTop="397dp"
="397dp"
android:layout_marginEnd
android :layout_marginEnd="55dp"
="55dp"
android:layout_marginBottom
android :layout_marginBottom ="127dp"
android:fontFamily
android :fontFamily="serif-monospace"
="serif-monospace"
android:text
android :text="Tax
="Tax Calculator"
android:textAlignment
android :textAlignment="center"
="center"
android:textColor
android :textColor="@android:color/background_light"
="@android:color/background_light"
android:textSize
android :textSize="36sp"
="36sp"
app:layout_constraintBottom_toBottomOf
app:layout_constraintBottom_toBottomOf ="parent"
app:layout_constraintEnd_toEndOf
app:layout_constraintEnd_toEndOf ="parent"
app:layout_constraintHorizontal_bias
app:layout_constraintHorizontal_bias ="0.585"
app:layout_constraintStart_toStartOf
app:layout_constraintStart_toStartOf ="parent"
app:layout_constraintTop_toTopOf
app:layout_constraintTop_toTopOf ="parent"
app:layout_constraintVertical_bias
app:layout_constraintVertical_bias ="0.0" />
</android.support.constraint.ConstraintLayout>
a) mainActivity.java
package com.cmt.taxcalculator ;
import android.app.Application ;
import android.content.Intent ;
import android.support.v7.app.AppCompatActivity ;
import android.os.Bundle;
android.os.Bundle ;
import android.view.View;
android.view.View ;
import android.widget.Button ;
Button b1
b1;
;
Button b2
b2;
;
@Override
protected void onCreate
onCreate(Bundle
(Bundle savedInstanceState) {
super.onCreate(savedInstanceState)
super .onCreate(savedInstanceState) ;
setContentView(R.layout. activity_main );
b1 = findViewById(R.id.button1);
b2 = findViewById(R.id.button2);
b1.setOnClickListener(
b1.setOnClickListener( new View.OnClick
View.OnClickListener()
Listener() {
@Override
public void onClick
onClick(View
(View view) {
Intent intent= new Intent(MainActivity. this,
com.cmt.taxcalculator.IncomeActivity. class
class)
);
startActivity(intent) ;
}
});
});
b2.setOnClickListener(
b2.setOnClickListener( new View.OnClick
View.OnClickListener()
Listener() {
@Override
public void onClick
onClick(View
(View view) {
Intent intent=
intent=new
new Intent(MainActivity. this,
com.cmt.taxcalculator.EMIActivity. class
class)
);
startActivity(intent) ;
}
});
});
}
}
b) EMIActivity.java
package com.cmt.taxcalculator ;
import android.support.v7.app.AppCompatActivity ;
import android.os.Bundle
android.os.Bundle;;
import android.text.TextUtils ;
import android.view.View
android.view.View;;
import android.widget.Button ;
import android.widget.EditText ;
Department of ISE 16 KLEIT, Hubli
Button emiCalcBtn
emiCalcBtn;;
@Override
protected void onCreate
onCreate(Bundle
(Bundle savedInstanceState) {
super.onCreate(savedInstanceState)
super .onCreate(savedInstanceState) ;
setContentView(R.layout. activity_emi );
final EditText P = findViewById(R.id. principal);
final EditText I = findViewById(R.id.interest );
final EditText Y = findViewById(R.id.years);
final EditText TI = findViewById(R.id.interest_total );
final EditText result = findViewById(R.id.emi) ;
emiCalcBtn = findViewById(R.id.btn_calculate2 );
if (TextUtils. isEmpty (st1))
(st1)) {
P.setError(
.setError("Enter
"Enter Principal Amount")
Amount");
P.requestFocus()
.requestFocus();;
return;
}
if (TextUtils. isEmpty (st2))
(st2)) {
I.setError(
.setError("Enter
"Enter Interest Rate")
Rate");
I.requestFocus()
.requestFocus();;
return;
}
if (TextUtils. isEmpty (st3))
(st3)) {
Y.setError(
.setError("Enter
"Enter Years")
Years");
Y.requestFocus()
.requestFocus();;
return;
}
float p = Float. parseFloat(st1)
(st1);
;
float i = Float. parseFloat(st2)
(st2);
;
float y = Float. parseFloat(st3)
(st3);
;
float ti = calTotalInt
calTotalInt(TA
(TA,
, Principal)
Principal);;
result.setText(String.
result.setText(String. valueOf (emi));
(emi));
.setText(String. valueOf (ti));
TI.setText(String.
TI (ti));
}
});
});
}
return (p)
(p);
;
}
return (i/
(i/12
12/
/100
100)
);
}
return (y * 12
12)
);
}
return (float
float)
) (Math. pow (1+Rate
+Rate,
, Months))
Months));;
}
}
return (Dvdnt-
(Dvdnt-1
1);
}
return (FD/D)
(FD/D);;
}
return (emi*Months)
(emi*Months);;
}
}
}
c)GSTActivity.java
package com.cmt.taxcalculator ;
import android.support.v7.app.AppCompatActivity ;
import android.os.Bundle
android.os.Bundle;;
@Override
protected void onCreate
onCreate(Bundle
(Bundle savedInstanceState) {
super.onCreate(savedInstanceState)
super .onCreate(savedInstanceState) ;
setContentView(R.layout. activity_emi );
}
}
d)IncomeActivity.java
package com.cmt.taxcalculator ;
EditText et
et;
;
TextView tx
tx;
;
TextView tx1
tx1;
;
Button b1
b1;
;
@Override
protected void onCreate
onCreate(Bundle
(Bundle savedInstanceState) {
super.onCreate(savedInstanceState)
super .onCreate(savedInstanceState) ;
setContentView(R.layout. activity_income );
et=findViewById(R.id. edit1);
et=findViewById(R.id.
tx=findViewById(R.id.
tx=findViewById(R.id. text1);
tx1=findViewById(R.id.
tx1=findViewById(R.id. text2);
=findViewById(R.id. button3);
b1=findViewById(R.id.
b1
b1.setOnClickListener(
b1.setOnClickListener( new View.OnClick
View.OnClickListener()
Listener() {
Department of ISE 19 KLEIT, Hubli
@Override
public void onClick
onClick(View
(View view) {
try {
Integer. parseInt(String.valueOf (et
et.getText()))
.getText()));;
calculate();
calculate() ;
}
catch (Exception e) {
Toast.makeText (getApplicationContext() , "You have exceeded the
Limit!", Toast.LENGTH_LONG ).show();
Input Limit!", ).show();
tx1.setText(
tx1.setText(""
"")
);
}
}
});
});
}
@SuppressLint ("SetTextI18n"
@SuppressLint( "SetTextI18n"))
public void calculate
calculate()
()
{
long Total = 0;
long Tax=
Tax=00;
long in= Integer. parseInt(et
et.getText().toString())
.getText().toString()) ;
if (in >= 200000 && in < 1000000
1000000)
)
{
Tax= (in * 5)/
)/100
100;
;
Total = in + Tax;
Tax;
}
else if(in
if(in >= 1000000 && in < 2000000
2000000)
)
{
Tax = (in * 10
10)/
)/100
100;;
Total = in + Tax;
Tax;
}
else if(in
if(in >= 2000000 && in < 3000000
3000000)
)
{
Tax= (in * 15
15)/
)/100
100;;
Total = in + Tax;
Tax;
}
else if (in >= 3000000 && in < 4000000
4000000)
)
{
Tax = (in * 20
20)/
)/100
100;;
Total = in + Tax;
Tax;
}
else if
if(in
(in >= 4000000 && in < 5000000
5000000)
)
{
Tax = (in * 25
25)/
)/100
100;
;
Total = in + Tax;
Tax;
}
else if (in >= 5000000 && in < 7000000
7000000)
)
{
Tax = (in * 30
30)/
)/100
100;
;
Total = in + Tax;
Tax;
}
else if (in >= 7000000 && in < 10000000
10000000)
)
{
Tax = (in * 35
35)/
)/100
100;
;
Total = in + Tax;
Tax;
}
else
{ if (in >= 10000000
10000000)
)
Tax = (in * 40
40)/
)/100
100;
;
Total = in + Tax;
Tax;
}
tx1.setText(
tx1.setText("Tax
"Tax on your income "+
"+et
et.getText()+
.getText()+"=
"= \t
\t"
"+Tax+
+Tax+"
"\n \n"
\n"+
"Total Income (Inclusion of Tax) "+
"+"= \t
\t"
"+Total)
+Total);;
}
}
e) SplashScreen.java
package com.cmt.taxcalculator ;
import android.content.Intent ;
import android.os.Handler;
android.os.Handler ;
import android.support.v7.app.AppCompatActivity ;
import android.os.Bundle;
android.os.Bundle ;
@Override
protected void onCreate
onCreate(Bundle
(Bundle savedInstanceState) {
super.onCreate(savedInstanceState)
super .onCreate(savedInstanceState) ;
setContentView(R.layout. activity_splash_screen );
new Handler().postDelayed( new Runnable() {
@Override
public void run
run()
() {
Intent intent= new Intent(SplashScreen. this, MainActivity.
MainActivity.class
class)
);
startActivity(intent) ;
finish();
finish() ;
}
},SPLASH_TIMEOUT );
}
}
CHAPTER 5
RESULTS AND SNAPSHOTS
5.1 Result
5.2 Snapshots
5.2.1 Opening of Android
Department of ISE 25 KLEIT, Hubli
Fig. 5.2.5 Result of TAX
5.2.6 Details to Calculate EMI
Fig. 5.2.6 Details to Calculate EMI
Fig. 5.2.7 Calculation of EMI
Fig. 5.2.8 Result of EMI
CHAPTER 6
CONCLUSION
6.1 Conclusion
This application makes it very easy for the user to calculate the income tax, with these simple steps, you can
perform the income tax calculation. As we all know It’s important to pay your
your taxes and file your IT returns
on time.
Even before you apply for a loan, you must know if you are eligible for the loan. This can be done with the
help of an EMI calculator. Calculating your EMIs will help you prepare to make the EMI payments on time.
The other benefits of the EMI calculator include:
Accessibility: You can use the EMI calculator anytime, anywhere, and make your budget calculations.
Financial Planning: EMI calculations must be done even before you start applying for your loan. An EMI
calculator can help you with this.
CHAPTER 7
REFERENCES