Skip to content

Implementation of a voting system, divided into two parts, that of registering information, and voting itself. It has the functions of Register, List, Search, Update and Delete in the information registration part.

License

Notifications You must be signed in to change notification settings

larasous/Electoral-System

Repository files navigation

GitHub license

Electoral-System

Project developed with the intention of carrying out a local vote, using files in C.

Members:

👉 Prerequisites

Before starting, you will need to have the following tools installed on your machine: Git, GCC ou MinGW.

Also, it's nice to have an editor to work with code like the VSCode, or it could be the IDE CLion.

Configuring VSCode to compile in C/C++:

  • So that the editor can compile in C/C++ follow this tutorial link.

Configuring MinGW - Windows:

  • After running the downloaded download, click install:

  • Proceed until you reach a screen to choose which features to install, select mingw32-base and mingw32-gcc-g++:

  • After that, click on Install > Apply Changes.

  • Now, you will need to add the MinGW binary directory to the Windows PATH, for that, click on Start, then right click on Computer, and then on Properties.

  • Click Advanced System Settings:

  • Click Environment Variables:

  • Find the PATH variable, select it, and click edit, at the end of it add a “;” (semicolon), and put the directory of the binaries that were installed with MinGW (usually in C:MinGWbin).

  • To verify the installation was successful, open Command Prompt and type gcc.

Configuring GCC - Linux:

  • Some distributions already have gcc installed by default, however, some you need to install the part as a tool, below are the commands to install on Fedora, OpenSUSE and Ubuntu:
Fedora

> sudo yum install gcc

OpenSUSE

> sudo zypper in gcc

Ubuntu

> sudo apt-get update
> sudo apt-get install gcc-4.4 

  • To verify the installation, run in the terminal:
> gcc --help
  • It will show the following screen:

Compiling and running the file (Linux / Windows)

> gcc programa.c -o executavel
ou
> gcc -o executavel programa.c
  • If there is any compilation error, it will show on the screen.
  • To run the compiled file
> ./executavel

🎲 Cloning the repository via terminal

# Clone this repository
$ git clone <https://github.com/larasous/Electoral-System>

👉 Functionalities

  • file main.c

  • Register of States, Municipalities, Zones, Sections, Voters, Year of Election, Candidates and Parties

  • Listing of States, Municipalities, Zones, Sections, Voters, Year of Election, Candidates and Parties

  • Search by States, Municipalities, Zones, Sections, Voters, Year of Election, Candidates and Parties

  • Updating of States, Municipalities, Zones, Sections, Voters, Year of Election, Candidates and Parties

  • Removal of States, Municipalities, Zones, Sections, Voters, Year of Election, Candidates and Parties

  • file main_votacao.c

  • Confirmation of electoral title

  • Vote operation

  • Candidate Verification

  • Election result

Observation!!!

  • The code is not fully complete to be a voting system, it was developed only as a university grade project.
  • Missing to connect the information with each other, and blank voting operation.

Linkedin Badge Gmail Badge

About

Implementation of a voting system, divided into two parts, that of registering information, and voting itself. It has the functions of Register, List, Search, Update and Delete in the information registration part.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published