100% found this document useful (1 vote)
194 views

Project Based Lab Report ON Voting Information System: K L University

The document describes a project on developing a Voting Information System using Java. It includes sections on project description, features of Java, source code of the system, and output/results. The system allows users to enter voter information, inquire about voter details, and exit. It stores voter ID, name, and allows searching by ID. The purpose is to automate the voting process and provide timely election information to voters.

Uploaded by

Sai Gargeya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
194 views

Project Based Lab Report ON Voting Information System: K L University

The document describes a project on developing a Voting Information System using Java. It includes sections on project description, features of Java, source code of the system, and output/results. The system allows users to enter voter information, inquire about voter details, and exit. It stores voter ID, name, and allows searching by ID. The purpose is to automate the voting process and provide timely election information to voters.

Uploaded by

Sai Gargeya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

PROJECT BASED LAB REPORT

ON

VOTING INFORMATION SYSTEM


Submitted in partial fulfilment of the
Requirements for the award of the Degree of
Bachelor of Technology
In
Electrical & Electronics Engineering
By

BH.SAI GARGEYA 160060012

G.D.V.N.S.L.KUMAR 160060032

K.CHANDRIKA 160060129

Under the guidance of

Associate Professor Mr. KANTHA RAO

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

K L University
Green Fields, Vaddeswaram,

Guntur District-522 502

2017-2018
K L UNIVERSITY
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

CERTIFICATE

This is to certify that this project based lab report entitled “VOTING
INFORMATION SYSTEM” is a bonafide work done by
BH.SAI GARGEYA (160060012) , G.D.V.N.S.L.KUMAR (160060032) ,

K.CHANDRIKA (160060129) in partial fulfilment of the requirement for the


award of degree in BACHELOR OF TECHNOLOGY in Electrical and
Electronics Engineering during the academic year 2016-2017.

Faculty in Charge Head Of Department

Professor Mr.KANTHA RAO Dr.O.Chandra Sekhar


ACKNOWLEDGEMENT

We are greatly indebted to our K L University that has provided a healthy


environment to drive us to achieve our ambitions and goals. We would like to express our
sincere thanks to our project in charge ASSISSTANT PROFESSOR Mr. KANTHA RAO
for the guidance, support and assistance they have provided in completing this project.

We are very much glad for having the support given by our principal, DR. A.
ANAND KUMAR who inspired us with his words filled with dedication and discipline
towards work.

Last but not the least, a special thanks goes to the Parents, staff and classmates who
are helpful either directly or indirectly in completion of the mini project.
1. INTRODUCTION
Java is the object-oriented programming language. It is interpreted and high level
language. In Java, program is written by creating class and object. Unlike C, in which pre-
processors and pointers are used, Java does not make use of these components. Any
programming language that uses object oriented concepts like Encapsulation, Polymorphism,
Inheritance, Abstraction is called object oriented programming language and JAVA comes
under the same category.

FEATURES OF JAVA PROGRAM

JAVA is the widely-used language. It provides a lot of features that are given below.

SIMPLE

Java language is simple because its syntax is similar to C++. Similarly, it has removed
many confusing and rarely used features like explicit pointers, operator overloading, etc. it is
not needed to remove unreferenced objects because there is Automatic Garbage Collection in
Java.

OBJECT ORIENTED

Object-oriented means we organize our software as a combination of different types


of objects that incorporates both data and behavior. The basic concepts of OOPs are: Object,
Class, Inheritance, Polymorphism, Abstraction and Encapsulation.

PLATFORM INDEPENDENT

Java code can be run on multiple platforms e.g. Windows, Linux, Sun Solaris,
Mac/OS etc. Java code is compiled by the compiler and converted into bytecode. This
bytecode is a platform-independent code because it can be run on multiple platforms i.e.
Write Once and Run Anywhere(WORA).

SECURED

Java is secured because there is no use of explicit pointer and java programs run
inside virtual machine sandbox.
ROBUST

Robust simply means strong. Java uses strong memory management. There is lack of
pointers that avoids security problem. There is automatic garbage collection in java. There is
exception handling and type checking mechanism in java. All these points make java robust.

ARCHITECTURE NEUTRAL

There are no implementation dependent features e.g. size of primitive types is fixed.
Like- In C programming, int data type occupies 2 bytes of memory for 32-bit architecture and
4 bytes of memory for 64-bit architecture. But in java, it occupies 4 bytes of memory for both
32 and 64 bit architectures.

PORTABLE

We may carry the java bytecode to any platform.

HIGH-PERFORMANCE

Java is faster than traditional interpretation but still somewhat slower than a compiled
language like C.

DISTRIBUTED

We can create distributed applications in java. RMI and EJB are used for creating
distributed applications. We may access files by calling the methods from any machine on the
internet.

MULTI-THREADED

A thread is like a separate program, executing concurrently. We can write Java


programs that deal with many tasks at once by defining multiple threads. The main advantage
of multi-threading is that it doesn't occupy memory for each thread. It shares a common
memory area.
2. PROJECT DESCRIPTION
2.1. INTRODUCTION

A VOTING INFORMATION SYSTEM or electoral system consists of the set


of rules which must be followed for a vote to be considered valid, and how votes are counted
and aggregated to yield a final result.

It is a method by which voters make a choice between candidates, often in an election.


Common voting systems are majority rule, proportional representation or plurality
voting with a number of variations and methods such as first-past-the-post or preferential
voting. The study of formally defined voting systems is called social choice theory or voting
theory, a subfield of political science, economics, or mathematics.

The main purpose of the system is to automate the voting system which maintains
Information system in order to maintain data about voters and their casting information. Also,
to provide and easy method of voting where they can cast their votes by just accessing the
System.

Automated ballot vote is an information management system that has been developed
for automating the process of election proceedings that take place between the people, and
the government. The system needs consistent flow of information at different levels within
the automated ballot vote, any interruption in the flow of major data can cause the final
verdict to get stalled or pending. These kinds of situations should be holding our automated
ballot vote system.
2.2. PUPRPOSE OF VOTING INFORMATION SYSYEM

1. Provide better services to voters far away from voting site.


2. Provide consistent, and timely data and information to voters.
3. Ensure that all the voters have a thorough knowledge on the voting system and how it is
conducted.
4. Make sure that the voters know the candidates in their cities as MLA’s, MP’s etc.
3. SOURCE CODE

import java.util.*;

class VotingInformation

int Voter_id;

String Voter_Name;

public void readVoterInformation()

Scanner sc=new Scanner(System.in);

System.out.println("Enter Voter ID, ,Name, ");

Voter_id=sc.nextInt();

Voter_Name=sc.next();

//Arr_Time=sc.next();

//Dep_Time=sc.next();

public void displayVoterInformation()

System.out.println("Voter ID = "+Voter_id);

System.out.println("Voter Name = "+Voter_Name);

class VotingInformationSystem
{

public static void main(String args[])throws Exception

VotingInformation[] ti=new VotingInformation[100]; //Ref Creation only, NOT


THE OBJECT CREATION

Scanner sc=new Scanner(System.in);

int n;

while(true)

System.out.println("\n\n\t\t ****** VOTING INFORMATION SYSTEM *******");

System.out.println("\n\n\t\t 1. Enter voter information");

System.out.println("\n\n\t\t 2. Inquire voter");

System.out.println("\n\n\t\t 3. Exit");

System.out.println("\n\n\t Enter your Choice..................................");

int ch;

ch=sc.nextInt();

switch(ch)

case 1:

System.out.println("\n\t Enter How many Voters.......?");

n=sc.nextInt();

for(int i=0;i<n;i++) // OBJECT CREATION

ti[i]=new VotingInformation();
}

for(int i=0;i<n;i++)

ti[i].readVoterInformation();

break;

case 3: System.exit(0); break;

case 2:

System.out.println("Enter voter No...to get the


Details about Voter ");

int en=sc.nextInt();

int found=0; int i;

for(i=0;i<100;i++)

if(en==ti[i].Voter_id)

ti[i].displayVoterInformation();

found=1;

//if(found==1) { break; }

if (found==0)

{
System.out.println("No Voter Found");

break;

}
4. OUTPUT
5. CONCLUSION

We have written a program in java for VOTING INFORMATION SYSTEM which


enables the user to view information about the elections taking place and vote for their
desired parties. Many features of OOP like interfaces, packages, method overriding, static
key word have been used.

You might also like