Project
Project
Abstract : The project "Voting Software" aims at making the voting process easy in
cooperative societies. Presently voting is performed using ballot paper and the counting is
done manually, hence it consumes a lot of time. There can be possibility of invalid votes.
All these makes election a tedious task. In our proposed system voting and counting is
done with the help of computer. It saves time, avoid error in counting and there will be no
invalid votes. It makes the election process easy
Functional Requirements : •To count the total number of votes. •To calculate the
percentage of total votes. •To calculate votes for each candidate. •To calculate percentage
of votes for each candidate. •To check for duplication. •To Find the winning persons in
each section. •All the process above mentioned should be done fast
Details : Modules We have devised the following modules according to the requirements
of the organization. •Administrator Module •User Module Administrator has the whole
authority of the organization .He is the one who maintains all the aspects of voters and
candidates. His functionalities include insertion, updation ,deletion of both the voter and
the candidate. He is responsible for allowing persons to vote. User's have the provision to
view the list of voters candidates and results and to vote for their desired candidate.
2. SYSTEM STUDY
proposal is put forth with a very general plan for the project and some cost
estimates. During system analysis the feasibility study of the proposed system is
to be carried out. This is to ensure that the proposed system is not a burden to
the company. For feasibility analysis, some understanding of the major
ECONOMICAL FEASIBILITY
TECHNICAL FEASIBILITY
SOCIAL FEASIBILITY
ECONOMICAL FEASIBILITY
This study is carried out to check the economic impact that the system will
have on the organization. The amount of fund that the company can pour into the
justified. Thus the developed system as well within the budget and this was
achieved because most of the technologies used are freely available. Only the
TECHNICAL FEASIBILITY
This study is carried out to check the technical feasibility, that is, the
technical requirements of the system. Any system developed must not have a high
demand on the available technical resources. This will lead to high demands on the
available technical resources. This will lead to high demands being placed on the
client. The developed system must have a modest requirement, as only minimal or
SOCIAL FEASIBILITY
The aspect of study is to check the level of acceptance of the system by the
user. This includes the process of training the user to use the system efficiently. The
user must not feel threatened by the system, instead must accept it as a necessity.
The level of acceptance by the users solely depends on the methods that are
employed to educate the user about the system and to make him familiar with it.
His level of confidence must be raised so that he is also able to make some
System Specification
System Requirements:
Hardware Requirements:
SYSTEM DESIGN
Data Flow Diagram / Use Case Diagram / Flow Diagram
The DFD is also called as bubble chart. It is a simple graphical
formalism that can be used to represent a system in terms of the input data to
the system, various processing carried out on these data, and the output data is
generated by the system.
1-Level DFD
Person 1.0.0 Login
Polling
Process
UserLogin
User Login
2-Level DFD
Registration TotalCandidateofVote
User
Details
Admin 1.0.0 Home TotalCandidateofVote
Login Process
Result of
Candidat
Admin User e votes
Details
Collaboration diagram
Admin database
_______________
2. Submit login info ()
7. View Candidate votes() 4. Submit Reg info ()
8.View Candidate votes 6. Submit Candidate Info ()
In Percentage()
Admin database
Sequencial diagram
ADMINSTRATOR
Registration Total Number Votes Percentage of All Votes Result of Cadidate Percentage candidate
Vote
Vote
Admin
View no. of
votes
View votes in
percentage
Login
Pooling
Candidate System
ADMINSTRATOR
Registration
Total Number
Votes
Percentage of All
Votes
Persentage candidate
ADMINSTRATOR Vote System
Result of Cadidate
Vote
Software Environment
4.1 Features OF. Net
The CLR is described as the “execution engine” of .NET. It provides the environment
within which programs run. The most important features are
The code that targets .NET, and which contains certain extra
Managed Data
The CLR uses something called the Common Type System (CTS) to strictly
enforce type-safety. This ensures that all classes are compatible with each other,
by describing types in a common way. CTS define how types work within the
runtime, which enables types in one language to interoperate with types in another
language, including cross-language exception handling. As well as ensuring that
types are only used in appropriate ways, the runtime also ensures that code doesn’t
attempt to access memory that hasn’t been allocated to it.
Visual Basic .NET is also CLS compliant, which means that any CLS-
compliant language can use the classes, objects, and components you create in
Visual Basic .NET.
• FORTRAN
• COBOL
• Eiffel
Operating System
GARBAGE COLLECTION
In C#.NET, the garbage collector checks for the objects that are not currently in
use by applications. When the garbage collector comes across an object that is
marked for garbage collection, it releases the memory occupied by the object.
OVERLOADING
MULTITHREADING:
C#.NET also supports multithreading. An application that supports
multithreading can handle multiple tasks simultaneously, we can use
multithreading to decrease the time taken by an application to respond to user
interaction.
Microsoft Visual Studio. Net used as front end tool. The reason for selecting Visual Studio
dot Net as front end tool as follows:
➢ Visual Studio .Net has flexibility , allowing one or more language to interoperate to provide
the solution. This Cross Language Compatibility allows to do project at faster rate.
➢ Visual Studio. Net has Common Language Runtime , that allows all the component to
converge into one intermediate format and then can interact.
➢ Visual Studio. Net has provide excellent security when your application is executed in the
system
➢ Visual Studio.Net has flexibility, allowing us to configure the working environment to best
suit our individual style. We can choose between a single and multiple document
interfaces, and we can adjust the size and positioning of the various IDE elements.
➢ Visual Studio. Net has Intelligence feature that make the coding easy and also Dynamic
help provides very less coding time.
➢ The working environment in Visual Studio.Net is often referred to as Integrated
Development Environment because it integrates many different functions such as design,
editing, compiling and debugging within a common environment. In most traditional
development tools, each of separate program, each with its own interface.
➢ The Visual Studio.Net language is quite powerful – if we can imagine a programming task
and accomplished using Visual Basic .Net.
➢ After creating a Visual Studio. Net application, if we want to distribute it to others we can
freely distribute any application to anyone who uses Microsoft windows. We can distribute
our applications on disk, on CDs, across networks, or over an intranet or the internet.
➢ Toolbars provide quick access to commonly used commands in the programming
environment. We click a button on the toolbar once to carry out the action represented by
that button. By default, the standard toolbar is displayed when we start Visual Basic.
Additional toolbars for editing, form design, and debugging can be toggled on or off from
the toolbars command on the view menu.
➢ Many parts of Visual Studio are context sensitive. Context sensitive means we can get help
on these parts directly without having to go through the help menu. For example, to get
help on any keyword in the Visual Basic language, place the insertion point on that keyword
in the code window and press F1.
➢ Visual Studio interprets our code as we enter it, catching and highlighting most syntax or
spelling errors on the fly. It’s almost like having an expert watching over our shoulder as
we enter our code.
What is .NET?
When .NET was announced in late 1999, Microsoft positioned the technology as a platform
for building and consuming Extensible Markup Language (XML) Web services. XML Web
services allow any type of application, be it a Windows- or browser-based application running on
any type of computer system, to consume data from any type of server over the Internet. The reason
this idea is so great is the way in which the XML messages are transferred: over established
standard protocols that exist today. Using protocols such as SOAP, HTTP, and SMTP, XML Web
services make it possible to expose data over the wire with little or no modifications to your
existing code.
Since the initial announcement of the .NET Framework, it's taken on many new and
different meanings to different people. To a developer, .NET means a great environment for
creating robust distributed applications. To an IT manager, .NET means simpler deployment of
applications to end users, tighter security, and simpler management. To a CTO or CIO, .NET
means happier developers using state-of-the-art development technologies and a smaller bottom
line. To understand why all these statements are true, you need to get a grip on what the .NET
Framework consists of, and how it's truly a revolutionary step forward for application architecture,
development, and deployment.
.NET Framework
Now that you are familiar with the major goals of the .NET Framework, let's briefly
examine its architecture. The .NET Framework sits on top of the operating system, which can be
a few different flavors of Windows and consists of a number of components .NET is essentially a
system application that runs on Windows.
Conceptually, the CLR and the JVM are similar in that they are both runtime infrastructures
that abstract the underlying platform differences. However, while the JVM officially supports only the
Java language, the CLR supports any language that can be represented in its Common Intermediate
Language (CIL). The JVM executes bytecode, so it can, in principle, support many languages, too. Unlike
Java's bytecode, though, CIL is never interpreted. Another conceptual difference between the two
infrastructures is that Java code runs on any platform with a JVM, whereas .NET code runs only on
platforms that support the CLR. In April 2003, the International Organization for Standardization and the
International Electrotechnical Committee (ISO/IEC) recognized a functional subset of the CLR, known as
the Common Language Interface (CLI), as an international standard.
The layer on top of the CLR is a set of framework base classes. This set of classes is similar
to the set of classes found in STL, MFC, ATL, or Java. These classes support rudimentary input
and output functionality, string manipulation, security management, network communications,
thread management, text management, reflection functionality, collections functionality, as well
as other functions.
On top of the framework base classes is a set of classes that extend the base classes to
support data management and XML manipulation. These classes, called ADO.NET, support
persistent data management—data that is stored on backend databases. Alongside the data classes,
the .NET Framework supports a number of classes to let you manipulate XML data and perform
XML searching and XML translations.
Classes in three different technologies (including web services, Web Forms, and Windows
Forms) extend the framework base classes and the data and XML classes. Web services include a
number of classes that support the development of lightweight distributed components, which
work even in the face of firewalls and NAT software. These components support plug-and-play
across the Internet, because web services employ standard HTTP and SOAP.
Web Forms, the key technology behind ASP.NET, include a number of classes that allow
you to rapidly develop web Graphical User Interface (GUI) applications. If you're currently
developing web applications with Visual Interdev, you can think of Web Forms as a facility that
allows you to develop web GUIs using the same drag-and-drop approach as if you were developing
the GUIs in Visual Basic. Simply drag-and-drop controls onto your Web Form, double-click on a
control, and write the code to respond to the associated event.
Windows Forms support a set of classes that allow you to develop native Windows GUI
applications. You can think of these classes collectively as a much better version of the MFC in
C++ because they support easier and more powerful GUI development and provide a common,
consistent interface that can be used in all languages.
Code written using a .NET language is known as managed code. Code that uses anything but the
common language runtime is known as unmanaged code. The common language runtime provides a
managed execution environment for .NET code, whereas the individual runtimes of non-.NET languages
provide an unmanaged execution environment.
When you compiled Visual Basic 6 forms applications, you had the ability to compile down to
native node or p-code. Visual Basic 6 compiler options dialog should refresh your memory of what the
Visual Basic 6 options dialog looked like.
Understanding the process of compilation in .NET is very important because it makes clear how
features such as cross-language debugging and exception handling are possible. You're not
actually compiling to any machine-specific code—you're simply compiling down to an
intermediate language that's the same for all .NET languages. The IL produced by J# .NET and C#
looks just like the IL created by the Visual Basic .NET compiler. These instructions are the same,
only how you type them in Visual Studio .NET is different, and the power of the common language
runtime is apparent.
When the IL code is JITted into machine-specific language, it does so on an as-needed basis. If
your assembly is 10MB and the user is only using a fraction of that 10MB, only the required IL
and its dependencies are compiled to machine language. This makes for a very efficient execution
process. But during this execution, how does the common language runtime make sure that the IL
is correct? Because the compiler for each language creates its own IL, there must be a process that
makes sure what's compiling won't corrupt the system. The process that validates the IL is known
as verification. Figure 1.5 demonstrates the process the IL goes through before the code actually
executes.
The second most important piece of the .NET Framework is the .NET Framework class
library (FCL). As you've seen, the common language runtime handles the dirty work of actually
running the code you write. But to write the code, you need a foundation of available classes to
access the resources of the operating system, database server, or file server. The FCL is made up
of a hierarchy of namespaces that expose classes, structures, interfaces, enumerations, and
delegates that give you access to these resources.
The namespaces are logically defined by functionality. For example, the System.Data
namespace contains all the functionality available to accessing databases. This namespace is
further broken down into System.Data.SqlClient, which exposes functionality specific to
SQL Server, and System.Data.OleDb, which exposes specific functionality for accessing
OLEDB data sources.
Specific assemblies within the FCL don’t necessarily define the bounds of a namespace;
rather, they're focused on functionality and logical grouping. In total, there are more than 20,000
classes in the FCL, all logically grouped in a hierarchical manner. Figure 1.8 shows where the FCL
fits into the .NET Framework and the logical grouping of namespaces.
To use an FCL class in your application, you use the Imports statement in Visual Basic .NET
or the using statement in C#. When you reference a namespace in Visual Basic .NET or C#, you
also get the convenience of auto-complete and auto-list members when you access the objects'
types using Visual Studio .NET. This makes it very easy to determine what types are available for
each class in the namespace you're using. As you'll see over the next several weeks, it's very easy
to start coding in Visual Studio .NET.
Each assembly has one and only one assembly manifest, and it contains all the description
information for the assembly. However, the assembly manifest can be contained in its own file or
within one of the assembly’s modules.
An assembly contains one or more modules. A module contains the code that makes up your
application or library, and it contains metadata that describes that code. When you compile a
project into an assembly, your code is converted from high-level code to IL.
Because all managed code is first converted to IL code, applications written in different
languages can easily interact. For example, one developer might write an application in Visual C#
that accesses a DLL in Visual Basic .NET. Both resources will be converted to IL modules before
being executed, thus avoiding any language-incompatibility issues.
Each module also contains a number of types. Types are templates that describe a set of
data encapsulation and functionality. There are two kinds of types: reference types (classes) and
value types (structures). These types are discussed in greater detail in Lesson 2 of this chapter.
Each type is described to the common language runtime in the assembly manifest. A type can
contain fields, properties, and methods, each of which should be related to a common functionality.
For example, you might have a class that represents a bank account. It contains fields, properties,
and methods related to the functions needed to implement a bank account.
A field represents storage of a particular type of data. One field might store the name of an
account holder, for example. Properties are similar to fields, but properties usually provide some
kind of validation when data is set or retrieved. You might have a property that represents an
account balance. When an attempt is made to change the value, the property can check to see if
the attempted change is greater than a predetermined limit. If the value is greater than the limit,
the property does not allow the change.
Methods represent behavior, such as actions taken on data stored within the class or
changes to the user interface. Continuing with the bank account example, you might have a
Transfer method that transfers a balance from a checking account to a savings account, or an Alert
method that warns users when their balances fall below a predetermined level.
When you compile a .NET application, it is not compiled to binary machine code; rather,
it is converted to IL. This is the form that your deployed application takes—one or more assemblies
consisting of executable files and DLL files in IL form. At least one of these assemblies will
contain an executable file that has been designated as the entry point for the application.
When execution of your program begins, the first assembly is loaded into memory. At this
point, the common language runtime examines the assembly manifest and determines the
requirements to run the program. It examines security permissions requested by the assembly and
compares them with the system’s security policy. If the system’s security policy does not allow
the requested permissions, the application will not run.
If the application passes the system’s security policy, the common language runtime
executes the code. It creates a process for the application to run in and begins application execution.
When execution starts, the first bit of code that needs to be executed is loaded into memory and
compiled into native binary code from IL by the common language runtime’s Just-In-Time (JIT)
compiler.
Once compiled, the code is executed and stored in memory as native code. Thus, each
portion of code is compiled only once when an application executes. Whenever program execution
branches to code that has not yet run, the JIT compiler compiles it ahead of execution and stores
it in memory as binary code. This way, application performance is maximized because only the
parts of a program that are executed are compiled.
The .NET Framework base class library contains the base classes that provide many of the
services and objects you need when writing your applications. The class library is organized into
namespaces. A namespace is a logical grouping of types that perform related functions. For
example, the System.Windows.Forms namespace contains all the types that make up Windows
forms and the controls used in those forms.
Namespaces are logical groupings of related classes. The namespaces in the .NET base class
library are organized hierarchically. The root of the .NET Framework is the System namespace.
Other namespaces can be accessed with the period operator. A typical namespace construction
appears as follows:
System
System.Data
System.Data.SQLClient
The first example refers to the System namespace. The second refers to the System.Data
namespace. The third example refers to the System.Data.SQLClient namespace. Table 1.1 introduces
some of the more commonly used .NET base class namespaces.
This namespace is the root for many of the low-level types required
System
by the .NET Framework. It is the root for primitive data types as
well, and it is the root for all the other namespaces in the .NET
base class library.
System.ComponentModel This namespace contains classes involved in component creation
and containment, such as attributes, type converters, and license
providers.
System. Data This namespace contains classes required for database access and
manipulations, as well as additional namespaces used for data
access.
System.Data.Common This namespace contains a set of classes that are shared by the
.NET managed data providers.
System.Data.OleDb This namespace contains classes that make up the managed data
provider for OLE DB data access.
System.Data.SQLClient This namespace contains classes that are optimized for interacting
with Microsoft SQL Server.
System. Drawing This namespace exposes GDI+ functionality and provides classes
that facilitate graphics rendering.
System.IO In this namespace, you will find types for handling file system I/O.
System. Math This namespace is home to common mathematics functions such
as extracting roots and trigonometry.
System. Reflection This namespace provides support for obtaining information and
dynamic creation of types at runtime.
System. Security This namespace is home to types dealing with permissions,
cryptography, and code access security.
System. Threading This namespace contains classes that facilitate the implementation
of multithreaded applications.
System.Windows.Forms This namespace contains types involved in creating standard
Windows applications. Classes that represent forms and controls
reside here as well.
4.3 Features of SQL-SERVER
The OLAP Services feature available in SQL Server version 7.0 is now
called SQL Server 2000 Analysis Services. The term OLAP Services has been replaced
with the term Analysis Services. Analysis Services also includes a new data mining
component. The Repository component available in SQL Server version 7.0 is now
called Microsoft SQL Server 2000 Meta Data Services. References to the
component now use the term Meta Data Services. The term repository is used only
in reference to the repository engine within Meta Data Services
They are,
1. TABLE
2. QUERY
3. FORM
4. REPORT
5. MACRO
TABLE:
VIEWS OF TABLE:
1. Design View
2. Datasheet View
Design View
To build or modify the structure of a table we work in the table
design view. We can specify what kind of data will be hold.
Datasheet View
QUERY:
A query is a question that has to be asked the data. Access gathers data that
answers the question from one or more table. The data that make up the answer
is either dynaset (if you edit it) or a snapshot (it cannot be edited).Each time we run
query, we get latest information in the dynaset. Access either displays the dynaset
or snapshot for us to view or perform an action on it, such as deleting or updating.
Coding
6. SYSTEM TESTING
Software system meets its requirements and user expectations and does not fail in
an unacceptable manner. There are various types of test. Each test type addresses
a specific testing requirement.
TYPES OF TESTS
Unit testing
Unit testing involves the design of test cases that validate that the internal
program logic is functioning properly, and that program inputs produce valid
outputs. All decision branches and internal code flow should be validated. It is the
testing of individual software units of the application .it is done after the
completion of an individual unit before integration. This is a structural testing, that
relies on knowledge of its construction and is invasive. Unit tests perform basic
tests at component level and test a specific business process, application, and/or
system configuration. Unit tests ensure that each unique path of a business process
performs accurately to the documented specifications and contains clearly defined
inputs and expected results.
Integration testing
Functional test
System Test
System testing ensures that the entire integrated software system meets
requirements. It tests a configuration to ensure known and predictable results. An
example of system testing is the configuration oriented system integration test.
System testing is based on process descriptions and flows, emphasizing pre-driven
process links and integration points.
Unit testing is usually conducted as part of a combined code and unit test
phase of the software lifecycle, although it is not uncommon for coding and unit
testing to be conducted as two distinct phases.
Features to be tested
• Verify that the entries are of the correct format
• No duplicate entries should be allowed
• All links should take the user to the correct page.
6.2 Integration Testing
Test Results: All the test cases mentioned above passed successfully. No defects
encountered.