by Álvaro Davi S. Alves - 2020101874
and Elder Storck - 2020101826
First assignment for the discipline Programação III (Object-Oriented Programming)
.
Universidade Federal do Espirito Santo (UFES)
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;
- 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 aMANIFEST.mf
fileThe 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