AlvaroDavi5 / Brazilian_Electoral_System

Primeiro trabalho de Programação III. Turma de Eng. da Computação, 4º período. Programação Orientada a Objetos aplicada ao sistema eleitoral brasileiro.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ABOUT

by Álvaro Davi S. Alves - 2020101874
and Elder Storck - 2020101826

First assignment for the discipline Programação III (Object-Oriented Programming).

Computer Engineering Class 💻

Universidade Federal do Espirito Santo (UFES)

ufes logo


How to run

To run this project, you need to have the JDK version 11 or higher installed.

After installing the JDK, you can run the project by typing the following command in the terminal:

#to compile the project
javac -d ./build ./src/Main.java;

# to run the project
cd ./build;
java src.Main ../input/data/candidatos.csv ../input/data/partidos.csv 15/11/2020;
cd ..;


# to create a jar file
cd ./build;
jar cfm vereadores.jar MANIFEST.mf src/classes src/Election.class src/Main.class;
cd ..;

# to run the jar file
java -jar ./build/vereadores.jar ./input/data/candidatos.csv ./input/data/partidos.csv 15/11/2020;

TODO

  • Implement constructor for the Candidate and Party classes
  • Implement getters and setters for the Candidate and Party classes
  • Implement methods to display/save reports about the candidates and parties lists in ElectionInfo class
  • Create a JAR file called vereadores.jar with the compiled classes and a MANIFEST.mf file

    The MANIFEST file will define the main class
    The main method of the Main class must receive the following parameters:
    - candidates_file: the path to the candidates file
    - parties_file: the path to the parties file
    - election_date: the election date
    The execution command is:
    java -jar vereadores.jar <candidates_file> <parties_file> <election_date>

  • Create a Ant build.xml file
  • Create a documentation for the project in PDF format

About

Primeiro trabalho de Programação III. Turma de Eng. da Computação, 4º período. Programação Orientada a Objetos aplicada ao sistema eleitoral brasileiro.


Languages

Language:Java 88.1%Language:Shell 11.9%