Project Based Lab Report ON Voting Information System: K L University
Project Based Lab Report ON Voting Information System: K L University
ON
G.D.V.N.S.L.KUMAR 160060032
K.CHANDRIKA 160060129
K L University
Green Fields, Vaddeswaram,
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) ,
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.
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
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
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
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
import java.util.*;
class VotingInformation
int Voter_id;
String Voter_Name;
Voter_id=sc.nextInt();
Voter_Name=sc.next();
//Arr_Time=sc.next();
//Dep_Time=sc.next();
System.out.println("Voter ID = "+Voter_id);
class VotingInformationSystem
{
int n;
while(true)
System.out.println("\n\n\t\t 3. Exit");
int ch;
ch=sc.nextInt();
switch(ch)
case 1:
n=sc.nextInt();
ti[i]=new VotingInformation();
}
for(int i=0;i<n;i++)
ti[i].readVoterInformation();
break;
case 2:
int en=sc.nextInt();
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