commit 9c06b5c2062e814b0390362d749e1226f43cab07
Author: Segcolt <9hmbzr275@mozmail.com>
Date: Tue Sep 9 17:25:20 2025 -0300
Finalmente terminei
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..52796df
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.class
+create
+paste
+run
diff --git a/atividade-1/.classpath b/atividade-1/.classpath
new file mode 100644
index 0000000..df66b20
--- /dev/null
+++ b/atividade-1/.classpath
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/atividade-1/.mvn/jvm.config b/atividade-1/.mvn/jvm.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-1/.mvn/maven.config b/atividade-1/.mvn/maven.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-1/.project b/atividade-1/.project
new file mode 100644
index 0000000..51dff33
--- /dev/null
+++ b/atividade-1/.project
@@ -0,0 +1,34 @@
+
+
+ atividade-1
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
+
+ 1757439158400
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
+
diff --git a/atividade-1/.settings/org.eclipse.core.resources.prefs b/atividade-1/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..f9fe345
--- /dev/null
+++ b/atividade-1/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/atividade-1/.settings/org.eclipse.jdt.apt.core.prefs b/atividade-1/.settings/org.eclipse.jdt.apt.core.prefs
new file mode 100644
index 0000000..d4313d4
--- /dev/null
+++ b/atividade-1/.settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
diff --git a/atividade-1/.settings/org.eclipse.jdt.core.prefs b/atividade-1/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..a4e59d9
--- /dev/null
+++ b/atividade-1/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,9 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/atividade-1/.settings/org.eclipse.m2e.core.prefs b/atividade-1/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/atividade-1/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/atividade-1/pom.xml b/atividade-1/pom.xml
new file mode 100644
index 0000000..16409fe
--- /dev/null
+++ b/atividade-1/pom.xml
@@ -0,0 +1,90 @@
+
+
+ 4.0.0
+
+ com.aula.livro
+ atividade-1
+ 1.0-SNAPSHOT
+
+ atividade-1
+
+ http://www.example.com
+
+
+ UTF-8
+ 17
+
+
+
+
+
+ org.junit
+ junit-bom
+ 5.11.0
+ pom
+ import
+
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+ test
+
+
+
+
+
+
+
+
+ maven-clean-plugin
+ 3.4.0
+
+
+
+ maven-resources-plugin
+ 3.3.1
+
+
+ maven-compiler-plugin
+ 3.13.0
+
+
+ maven-surefire-plugin
+ 3.3.0
+
+
+ maven-jar-plugin
+ 3.4.2
+
+
+ maven-install-plugin
+ 3.1.2
+
+
+ maven-deploy-plugin
+ 3.1.2
+
+
+
+ maven-site-plugin
+ 3.12.1
+
+
+ maven-project-info-reports-plugin
+ 3.6.1
+
+
+
+
+
diff --git a/atividade-1/src/main/java/com/aula/livro/Livro.java b/atividade-1/src/main/java/com/aula/livro/Livro.java
new file mode 100644
index 0000000..e223c93
--- /dev/null
+++ b/atividade-1/src/main/java/com/aula/livro/Livro.java
@@ -0,0 +1,42 @@
+package com.aula.livro;
+
+import java.util.Date;
+
+public class Livro {
+ private String titulo;
+ private String autor;
+ private Date anoPlublicacao;
+ private Double preco;
+
+ public String getTitulo() {
+ return titulo;
+ }
+
+ public void setTitulo(String titulo) {
+ this.titulo = titulo;
+ }
+
+ public String getAutor() {
+ return autor;
+ }
+
+ public void setAutor(String autor) {
+ this.autor = autor;
+ }
+
+ public Date getAnoPlublicacao() {
+ return anoPlublicacao;
+ }
+
+ public void setAnoPlublicacao(Date anoPlublicacao) {
+ this.anoPlublicacao = anoPlublicacao;
+ }
+
+ public Double getPreco() {
+ return preco;
+ }
+
+ public void setPreco(Double preco) {
+ this.preco = preco;
+ }
+}
diff --git a/atividade-1/src/main/livro.png b/atividade-1/src/main/livro.png
new file mode 100644
index 0000000..10c655e
Binary files /dev/null and b/atividade-1/src/main/livro.png differ
diff --git a/atividade-1/src/test/java/com/aula/livro/AppTest.java b/atividade-1/src/test/java/com/aula/livro/AppTest.java
new file mode 100644
index 0000000..ef5bd49
--- /dev/null
+++ b/atividade-1/src/test/java/com/aula/livro/AppTest.java
@@ -0,0 +1,19 @@
+package com.aula.livro;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest {
+
+ /**
+ * Rigorous Test :-)
+ */
+ @Test
+ public void shouldAnswerWithTrue() {
+ assertTrue(true);
+ }
+}
diff --git a/atividade-10/.classpath b/atividade-10/.classpath
new file mode 100644
index 0000000..df66b20
--- /dev/null
+++ b/atividade-10/.classpath
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/atividade-10/.mvn/jvm.config b/atividade-10/.mvn/jvm.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-10/.mvn/maven.config b/atividade-10/.mvn/maven.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-10/.project b/atividade-10/.project
new file mode 100644
index 0000000..cd70d3a
--- /dev/null
+++ b/atividade-10/.project
@@ -0,0 +1,34 @@
+
+
+ atividade-10
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
+
+ 1757448938496
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
+
diff --git a/atividade-10/.settings/org.eclipse.core.resources.prefs b/atividade-10/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..f9fe345
--- /dev/null
+++ b/atividade-10/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/atividade-10/.settings/org.eclipse.jdt.apt.core.prefs b/atividade-10/.settings/org.eclipse.jdt.apt.core.prefs
new file mode 100644
index 0000000..d4313d4
--- /dev/null
+++ b/atividade-10/.settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
diff --git a/atividade-10/.settings/org.eclipse.jdt.core.prefs b/atividade-10/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..a4e59d9
--- /dev/null
+++ b/atividade-10/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,9 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/atividade-10/.settings/org.eclipse.m2e.core.prefs b/atividade-10/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/atividade-10/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/atividade-10/pom.xml b/atividade-10/pom.xml
new file mode 100644
index 0000000..e3291bb
--- /dev/null
+++ b/atividade-10/pom.xml
@@ -0,0 +1,90 @@
+
+
+ 4.0.0
+
+ com.aula.pedido
+ atividade-10
+ 1.0-SNAPSHOT
+
+ atividade-10
+
+ http://www.example.com
+
+
+ UTF-8
+ 17
+
+
+
+
+
+ org.junit
+ junit-bom
+ 5.11.0
+ pom
+ import
+
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+ test
+
+
+
+
+
+
+
+
+ maven-clean-plugin
+ 3.4.0
+
+
+
+ maven-resources-plugin
+ 3.3.1
+
+
+ maven-compiler-plugin
+ 3.13.0
+
+
+ maven-surefire-plugin
+ 3.3.0
+
+
+ maven-jar-plugin
+ 3.4.2
+
+
+ maven-install-plugin
+ 3.1.2
+
+
+ maven-deploy-plugin
+ 3.1.2
+
+
+
+ maven-site-plugin
+ 3.12.1
+
+
+ maven-project-info-reports-plugin
+ 3.6.1
+
+
+
+
+
diff --git a/atividade-10/src/main/Produtos.png b/atividade-10/src/main/Produtos.png
new file mode 100644
index 0000000..1b3b52b
Binary files /dev/null and b/atividade-10/src/main/Produtos.png differ
diff --git a/atividade-10/src/main/java/Main.java b/atividade-10/src/main/java/Main.java
new file mode 100644
index 0000000..81c7a58
--- /dev/null
+++ b/atividade-10/src/main/java/Main.java
@@ -0,0 +1,17 @@
+import com.aula.pedido.*;
+
+public class Main {
+ public static void main(String[] args) {
+ Pedido pedido = new Pedido(10);
+
+ Produto arroz = new Produto(100, "Arroz", 8.00);
+ Produto feijao = new Produto(101, "Feijão", 5.50);
+ Produto acerola = new Produto(102, "Acerola", 16.30);
+
+ pedido.adicionarProduto(arroz, 10);
+ pedido.adicionarProduto(feijao, 2);
+ pedido.adicionarProduto(acerola, 5);
+
+ System.out.printf("Preço do pedido: R$ %.2f\n", pedido.getValorTotal());
+ }
+}
diff --git a/atividade-10/src/main/java/com/aula/pedido/Pedido.java b/atividade-10/src/main/java/com/aula/pedido/Pedido.java
new file mode 100644
index 0000000..fc836a0
--- /dev/null
+++ b/atividade-10/src/main/java/com/aula/pedido/Pedido.java
@@ -0,0 +1,43 @@
+package com.aula.pedido;
+
+import java.time.LocalDate;
+
+public class Pedido {
+ private int numero;
+ private LocalDate data;
+ private double valorTotal;
+
+ public Pedido(int numero) {
+ this.numero = numero;
+ this.data = LocalDate.now();
+ this.valorTotal = 0;
+ }
+
+ public int getNumero() {
+ return numero;
+ }
+
+ public void setNumero(int numero) {
+ this.numero = numero;
+ }
+
+ public LocalDate getData() {
+ return data;
+ }
+
+ public void setData(LocalDate data) {
+ this.data = data;
+ }
+
+ public double getValorTotal() {
+ return valorTotal;
+ }
+
+ public void setValorTotal(double valorTotal) {
+ this.valorTotal = valorTotal;
+ }
+
+ public void adicionarProduto(Produto p, int quantidade) {
+ valorTotal += p.getPrecoUnitario() * quantidade;
+ }
+}
diff --git a/atividade-10/src/main/java/com/aula/pedido/Produto.java b/atividade-10/src/main/java/com/aula/pedido/Produto.java
new file mode 100644
index 0000000..e15637c
--- /dev/null
+++ b/atividade-10/src/main/java/com/aula/pedido/Produto.java
@@ -0,0 +1,37 @@
+package com.aula.pedido;
+
+public class Produto {
+ private int codigo;
+ private String nome;
+ private double precoUnitario;
+
+ public Produto(int codigo, String nome, double precoUnitario) {
+ this.codigo = codigo;
+ this.nome = nome;
+ this.precoUnitario = precoUnitario;
+ }
+
+ public int getCodigo() {
+ return codigo;
+ }
+
+ public void setCodigo(int codigo) {
+ this.codigo = codigo;
+ }
+
+ public String getNome() {
+ return nome;
+ }
+
+ public void setNome(String nome) {
+ this.nome = nome;
+ }
+
+ public double getPrecoUnitario() {
+ return precoUnitario;
+ }
+
+ public void setPrecoUnitario(double precoUnitario) {
+ this.precoUnitario = precoUnitario;
+ }
+}
diff --git a/atividade-10/src/test/java/com/aula/pedido/AppTest.java b/atividade-10/src/test/java/com/aula/pedido/AppTest.java
new file mode 100644
index 0000000..68e32e7
--- /dev/null
+++ b/atividade-10/src/test/java/com/aula/pedido/AppTest.java
@@ -0,0 +1,19 @@
+package com.aula.pedido;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest {
+
+ /**
+ * Rigorous Test :-)
+ */
+ @Test
+ public void shouldAnswerWithTrue() {
+ assertTrue(true);
+ }
+}
diff --git a/atividade-2/.classpath b/atividade-2/.classpath
new file mode 100644
index 0000000..df66b20
--- /dev/null
+++ b/atividade-2/.classpath
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/atividade-2/.mvn/jvm.config b/atividade-2/.mvn/jvm.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-2/.mvn/maven.config b/atividade-2/.mvn/maven.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-2/.project b/atividade-2/.project
new file mode 100644
index 0000000..dc910ab
--- /dev/null
+++ b/atividade-2/.project
@@ -0,0 +1,34 @@
+
+
+ atividade-2
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
+
+ 1757439638435
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
+
diff --git a/atividade-2/.settings/org.eclipse.core.resources.prefs b/atividade-2/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..f9fe345
--- /dev/null
+++ b/atividade-2/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/atividade-2/.settings/org.eclipse.jdt.apt.core.prefs b/atividade-2/.settings/org.eclipse.jdt.apt.core.prefs
new file mode 100644
index 0000000..d4313d4
--- /dev/null
+++ b/atividade-2/.settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
diff --git a/atividade-2/.settings/org.eclipse.jdt.core.prefs b/atividade-2/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..a4e59d9
--- /dev/null
+++ b/atividade-2/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,9 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/atividade-2/.settings/org.eclipse.m2e.core.prefs b/atividade-2/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/atividade-2/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/atividade-2/pom.xml b/atividade-2/pom.xml
new file mode 100644
index 0000000..8df6eed
--- /dev/null
+++ b/atividade-2/pom.xml
@@ -0,0 +1,90 @@
+
+
+ 4.0.0
+
+ com.aula.carro
+ atividade-2
+ 1.0-SNAPSHOT
+
+ atividade-2
+
+ http://www.example.com
+
+
+ UTF-8
+ 17
+
+
+
+
+
+ org.junit
+ junit-bom
+ 5.11.0
+ pom
+ import
+
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+ test
+
+
+
+
+
+
+
+
+ maven-clean-plugin
+ 3.4.0
+
+
+
+ maven-resources-plugin
+ 3.3.1
+
+
+ maven-compiler-plugin
+ 3.13.0
+
+
+ maven-surefire-plugin
+ 3.3.0
+
+
+ maven-jar-plugin
+ 3.4.2
+
+
+ maven-install-plugin
+ 3.1.2
+
+
+ maven-deploy-plugin
+ 3.1.2
+
+
+
+ maven-site-plugin
+ 3.12.1
+
+
+ maven-project-info-reports-plugin
+ 3.6.1
+
+
+
+
+
diff --git a/atividade-2/src/main/carro.png b/atividade-2/src/main/carro.png
new file mode 100644
index 0000000..024dd65
Binary files /dev/null and b/atividade-2/src/main/carro.png differ
diff --git a/atividade-2/src/main/java/Main.java b/atividade-2/src/main/java/Main.java
new file mode 100644
index 0000000..794e127
--- /dev/null
+++ b/atividade-2/src/main/java/Main.java
@@ -0,0 +1,20 @@
+import com.aula.carro.Carro;
+
+public class Main {
+ public static void main(String[] argv) {
+ Carro montana = new Carro("Chevrolet", "Montana", 2025, 0);
+
+ montana.imprimirInfo();
+
+ montana.acelerar(100);
+ montana.frear(30);
+ montana.imprimirInfo();
+
+ montana.acelerar(-1000);
+ montana.frear(-1000000);
+ montana.imprimirInfo();
+
+ Carro nada = new Carro();
+ nada.imprimirInfo();
+ }
+}
diff --git a/atividade-2/src/main/java/com/aula/carro/Carro.java b/atividade-2/src/main/java/com/aula/carro/Carro.java
new file mode 100644
index 0000000..78971bc
--- /dev/null
+++ b/atividade-2/src/main/java/com/aula/carro/Carro.java
@@ -0,0 +1,46 @@
+package com.aula.carro;
+
+public class Carro {
+ private String marca;
+ private String modelo;
+ private int ano;
+ private int velocidadeAtual;
+
+ public Carro(String marca, String modelo, int ano, int velocidadeAtual) {
+ this.marca = marca;
+ this.modelo = modelo;
+ this.ano = ano;
+ this.velocidadeAtual = velocidadeAtual;
+ }
+
+ public Carro() {
+ this("Sem marca", "Sem modelo", 0, 0);
+ }
+
+ public void acelerar(int valor) {
+ if (valor < 0) {
+ System.out.println("Não é possível acelerar com um valor negativo.");
+ return;
+ }
+
+ velocidadeAtual += valor;
+ }
+
+ public void frear(int valor) {
+ if (valor < 0) {
+ System.out.println("Não é possível frear com um valor negativo.");
+ return;
+ }
+
+ velocidadeAtual -= valor;
+ }
+
+ public void imprimirInfo() {
+ System.out.println("---------------------------------");
+ System.out.println("Marca do carro: " + marca);
+ System.out.println("Modelo do carro: " + modelo);
+ System.out.println("Ano de criação: " + ano);
+ System.out.println("Velocidade atual: " + velocidadeAtual);
+ System.out.println("---------------------------------");
+ }
+}
diff --git a/atividade-2/src/test/java/com/aula/carro/AppTest.java b/atividade-2/src/test/java/com/aula/carro/AppTest.java
new file mode 100644
index 0000000..20afe7c
--- /dev/null
+++ b/atividade-2/src/test/java/com/aula/carro/AppTest.java
@@ -0,0 +1,19 @@
+package com.aula.carro;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest {
+
+ /**
+ * Rigorous Test :-)
+ */
+ @Test
+ public void shouldAnswerWithTrue() {
+ assertTrue(true);
+ }
+}
diff --git a/atividade-3/.classpath b/atividade-3/.classpath
new file mode 100644
index 0000000..df66b20
--- /dev/null
+++ b/atividade-3/.classpath
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/atividade-3/.mvn/jvm.config b/atividade-3/.mvn/jvm.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-3/.mvn/maven.config b/atividade-3/.mvn/maven.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-3/.project b/atividade-3/.project
new file mode 100644
index 0000000..107ecb1
--- /dev/null
+++ b/atividade-3/.project
@@ -0,0 +1,34 @@
+
+
+ atividade-3
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
+
+ 1757440751723
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
+
diff --git a/atividade-3/.settings/org.eclipse.core.resources.prefs b/atividade-3/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..f9fe345
--- /dev/null
+++ b/atividade-3/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/atividade-3/.settings/org.eclipse.jdt.apt.core.prefs b/atividade-3/.settings/org.eclipse.jdt.apt.core.prefs
new file mode 100644
index 0000000..d4313d4
--- /dev/null
+++ b/atividade-3/.settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
diff --git a/atividade-3/.settings/org.eclipse.jdt.core.prefs b/atividade-3/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..a4e59d9
--- /dev/null
+++ b/atividade-3/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,9 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/atividade-3/.settings/org.eclipse.m2e.core.prefs b/atividade-3/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/atividade-3/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/atividade-3/pom.xml b/atividade-3/pom.xml
new file mode 100644
index 0000000..ba79c15
--- /dev/null
+++ b/atividade-3/pom.xml
@@ -0,0 +1,90 @@
+
+
+ 4.0.0
+
+ com.aula.conta
+ atividade-3
+ 1.0-SNAPSHOT
+
+ atividade-3
+
+ http://www.example.com
+
+
+ UTF-8
+ 17
+
+
+
+
+
+ org.junit
+ junit-bom
+ 5.11.0
+ pom
+ import
+
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+ test
+
+
+
+
+
+
+
+
+ maven-clean-plugin
+ 3.4.0
+
+
+
+ maven-resources-plugin
+ 3.3.1
+
+
+ maven-compiler-plugin
+ 3.13.0
+
+
+ maven-surefire-plugin
+ 3.3.0
+
+
+ maven-jar-plugin
+ 3.4.2
+
+
+ maven-install-plugin
+ 3.1.2
+
+
+ maven-deploy-plugin
+ 3.1.2
+
+
+
+ maven-site-plugin
+ 3.12.1
+
+
+ maven-project-info-reports-plugin
+ 3.6.1
+
+
+
+
+
diff --git a/atividade-3/src/main/ContaBancaria.png b/atividade-3/src/main/ContaBancaria.png
new file mode 100644
index 0000000..b543d0e
Binary files /dev/null and b/atividade-3/src/main/ContaBancaria.png differ
diff --git a/atividade-3/src/main/java/Main.java b/atividade-3/src/main/java/Main.java
new file mode 100644
index 0000000..165581f
--- /dev/null
+++ b/atividade-3/src/main/java/Main.java
@@ -0,0 +1,15 @@
+import com.aula.conta.ContaBancaria;
+
+public class Main {
+ public static void main(String[] args) {
+ ContaBancaria conta = new ContaBancaria(100, "Fabrício");
+
+ conta.imprimirInfo();
+ conta.depositar(200);
+ conta.imprimirInfo();
+ conta.saque(50);
+ conta.imprimirInfo();
+ conta.saque(200);
+ conta.imprimirInfo();
+ }
+}
diff --git a/atividade-3/src/main/java/com/aula/conta/ContaBancaria.java b/atividade-3/src/main/java/com/aula/conta/ContaBancaria.java
new file mode 100644
index 0000000..30eccca
--- /dev/null
+++ b/atividade-3/src/main/java/com/aula/conta/ContaBancaria.java
@@ -0,0 +1,55 @@
+package com.aula.conta;
+
+public class ContaBancaria {
+ private int numero;
+ private String titular;
+ private double saldo;
+
+ public ContaBancaria(int numero, String titular) {
+ this.numero = numero;
+ this.titular = titular;
+ this.saldo = 0;
+ }
+
+ public int getNumero() {
+ return numero;
+ }
+
+ public void setNumero(int numero) {
+ this.numero = numero;
+ }
+
+ public String getTitular() {
+ return titular;
+ }
+
+ public void setTitular(String titular) {
+ this.titular = titular;
+ }
+
+ public void depositar(double valor) {
+ if (valor < 0) {
+ System.out.println("Não é possível depositar um valor negativo.");
+ return;
+ }
+
+ saldo += valor;
+ }
+
+ public boolean saque(double valor) {
+ if (valor > saldo) {
+ return false;
+ }
+
+ saldo -= valor;
+ return true;
+ }
+
+ public void imprimirInfo() {
+ System.out.println("----------------------");
+ System.out.println("Numero: " + numero);
+ System.out.println("Titular: " + titular);
+ System.out.printf("Saldo: R$ %.2f\n", saldo);
+ System.out.println("----------------------");
+ }
+}
diff --git a/atividade-3/src/test/java/com/aula/conta/AppTest.java b/atividade-3/src/test/java/com/aula/conta/AppTest.java
new file mode 100644
index 0000000..a3852da
--- /dev/null
+++ b/atividade-3/src/test/java/com/aula/conta/AppTest.java
@@ -0,0 +1,19 @@
+package com.aula.conta;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest {
+
+ /**
+ * Rigorous Test :-)
+ */
+ @Test
+ public void shouldAnswerWithTrue() {
+ assertTrue(true);
+ }
+}
diff --git a/atividade-4/.classpath b/atividade-4/.classpath
new file mode 100644
index 0000000..df66b20
--- /dev/null
+++ b/atividade-4/.classpath
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/atividade-4/.mvn/jvm.config b/atividade-4/.mvn/jvm.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-4/.mvn/maven.config b/atividade-4/.mvn/maven.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-4/.project b/atividade-4/.project
new file mode 100644
index 0000000..3d47971
--- /dev/null
+++ b/atividade-4/.project
@@ -0,0 +1,34 @@
+
+
+ atividade-4
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
+
+ 1757442411998
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
+
diff --git a/atividade-4/.settings/org.eclipse.core.resources.prefs b/atividade-4/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..f9fe345
--- /dev/null
+++ b/atividade-4/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/atividade-4/.settings/org.eclipse.jdt.apt.core.prefs b/atividade-4/.settings/org.eclipse.jdt.apt.core.prefs
new file mode 100644
index 0000000..d4313d4
--- /dev/null
+++ b/atividade-4/.settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
diff --git a/atividade-4/.settings/org.eclipse.jdt.core.prefs b/atividade-4/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..a4e59d9
--- /dev/null
+++ b/atividade-4/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,9 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/atividade-4/.settings/org.eclipse.m2e.core.prefs b/atividade-4/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/atividade-4/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/atividade-4/pom.xml b/atividade-4/pom.xml
new file mode 100644
index 0000000..01cb9ef
--- /dev/null
+++ b/atividade-4/pom.xml
@@ -0,0 +1,90 @@
+
+
+ 4.0.0
+
+ com.aula.pessoas
+ atividade-4
+ 1.0-SNAPSHOT
+
+ atividade-4
+
+ http://www.example.com
+
+
+ UTF-8
+ 17
+
+
+
+
+
+ org.junit
+ junit-bom
+ 5.11.0
+ pom
+ import
+
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+ test
+
+
+
+
+
+
+
+
+ maven-clean-plugin
+ 3.4.0
+
+
+
+ maven-resources-plugin
+ 3.3.1
+
+
+ maven-compiler-plugin
+ 3.13.0
+
+
+ maven-surefire-plugin
+ 3.3.0
+
+
+ maven-jar-plugin
+ 3.4.2
+
+
+ maven-install-plugin
+ 3.1.2
+
+
+ maven-deploy-plugin
+ 3.1.2
+
+
+
+ maven-site-plugin
+ 3.12.1
+
+
+ maven-project-info-reports-plugin
+ 3.6.1
+
+
+
+
+
diff --git a/atividade-4/src/main/Pessoas.png b/atividade-4/src/main/Pessoas.png
new file mode 100644
index 0000000..764ba28
Binary files /dev/null and b/atividade-4/src/main/Pessoas.png differ
diff --git a/atividade-4/src/main/java/Main.java b/atividade-4/src/main/java/Main.java
new file mode 100644
index 0000000..2d659dc
--- /dev/null
+++ b/atividade-4/src/main/java/Main.java
@@ -0,0 +1,13 @@
+import com.aula.pessoas.*;
+
+public class Main {
+ static public void main(String[] argv) {
+ Pessoa pessoa = new Pessoa("Nicolas", 100);
+ Aluno aluno = new Aluno("Fabio", 18, "2011.0.2810.2922-8");
+ Professor professor = new Professor("Alexandre", 33, 28000.22);
+
+ pessoa.imprimirInfo();
+ aluno.imprimirInfo();
+ professor.imprimirInfo();
+ }
+}
diff --git a/atividade-4/src/main/java/com/aula/pessoas/Aluno.java b/atividade-4/src/main/java/com/aula/pessoas/Aluno.java
new file mode 100644
index 0000000..9bfc2e5
--- /dev/null
+++ b/atividade-4/src/main/java/com/aula/pessoas/Aluno.java
@@ -0,0 +1,26 @@
+package com.aula.pessoas;
+
+public class Aluno extends Pessoa {
+ private String matricula;
+
+ public Aluno(String nome, int idade, String matricula) {
+ super(nome, idade);
+
+ this.matricula = matricula;
+ }
+
+ public String getMatricula() {
+ return matricula;
+ }
+
+ public void setMatricula(String matricula) {
+ this.matricula = matricula;
+ }
+
+ public void imprimirInfo() {
+ System.out.println("-----------------------");
+ super.imprimirDados();
+ System.out.println("\tMatricula: " + matricula);
+ System.out.println("-----------------------");
+ }
+}
diff --git a/atividade-4/src/main/java/com/aula/pessoas/Pessoa.java b/atividade-4/src/main/java/com/aula/pessoas/Pessoa.java
new file mode 100644
index 0000000..c842dc0
--- /dev/null
+++ b/atividade-4/src/main/java/com/aula/pessoas/Pessoa.java
@@ -0,0 +1,39 @@
+package com.aula.pessoas;
+
+public class Pessoa {
+ protected String nome;
+ protected int idade;
+
+ public Pessoa(String nome, int idade) {
+ this.nome = nome;
+ this.idade = idade;
+ }
+
+ public String getNome() {
+ return nome;
+ }
+
+ public void setNome(String nome) {
+ this.nome = nome;
+ }
+
+ public int getIdade() {
+ return idade;
+ }
+
+ public void setIdade(int idade) {
+ this.idade = idade;
+ }
+
+ protected void imprimirDados() {
+ System.out.println("Informação da pessoa:");
+ System.out.println("\tNome: " + nome);
+ System.out.println("\tIdade: " + idade);
+ }
+
+ public void imprimirInfo() {
+ System.out.println("-----------------------");
+ imprimirDados();
+ System.out.println("-----------------------");
+ }
+}
diff --git a/atividade-4/src/main/java/com/aula/pessoas/Professor.java b/atividade-4/src/main/java/com/aula/pessoas/Professor.java
new file mode 100644
index 0000000..96dc109
--- /dev/null
+++ b/atividade-4/src/main/java/com/aula/pessoas/Professor.java
@@ -0,0 +1,25 @@
+package com.aula.pessoas;
+
+public class Professor extends Pessoa {
+ private double salario;
+
+ public Professor(String nome, int idade, double salario) {
+ super(nome, idade);
+ this.salario = salario;
+ }
+
+ public double getSalario() {
+ return salario;
+ }
+
+ public void setSalario(double salario) {
+ this.salario = salario;
+ }
+
+ public void imprimirInfo() {
+ System.out.println("-----------------------");
+ super.imprimirDados();
+ System.out.printf("\tSalário: %.2f\n", salario);
+ System.out.println("-----------------------");
+ }
+}
diff --git a/atividade-4/src/test/java/com/aula/pessoas/AppTest.java b/atividade-4/src/test/java/com/aula/pessoas/AppTest.java
new file mode 100644
index 0000000..eea85ee
--- /dev/null
+++ b/atividade-4/src/test/java/com/aula/pessoas/AppTest.java
@@ -0,0 +1,19 @@
+package com.aula.pessoas;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest {
+
+ /**
+ * Rigorous Test :-)
+ */
+ @Test
+ public void shouldAnswerWithTrue() {
+ assertTrue(true);
+ }
+}
diff --git a/atividade-5/.classpath b/atividade-5/.classpath
new file mode 100644
index 0000000..df66b20
--- /dev/null
+++ b/atividade-5/.classpath
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/atividade-5/.mvn/jvm.config b/atividade-5/.mvn/jvm.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-5/.mvn/maven.config b/atividade-5/.mvn/maven.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-5/.project b/atividade-5/.project
new file mode 100644
index 0000000..d33f3f0
--- /dev/null
+++ b/atividade-5/.project
@@ -0,0 +1,34 @@
+
+
+ atividade-5
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
+
+ 1757443546009
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
+
diff --git a/atividade-5/.settings/org.eclipse.core.resources.prefs b/atividade-5/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..f9fe345
--- /dev/null
+++ b/atividade-5/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/atividade-5/.settings/org.eclipse.jdt.apt.core.prefs b/atividade-5/.settings/org.eclipse.jdt.apt.core.prefs
new file mode 100644
index 0000000..d4313d4
--- /dev/null
+++ b/atividade-5/.settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
diff --git a/atividade-5/.settings/org.eclipse.jdt.core.prefs b/atividade-5/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..a4e59d9
--- /dev/null
+++ b/atividade-5/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,9 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/atividade-5/.settings/org.eclipse.m2e.core.prefs b/atividade-5/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/atividade-5/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/atividade-5/pom.xml b/atividade-5/pom.xml
new file mode 100644
index 0000000..c279548
--- /dev/null
+++ b/atividade-5/pom.xml
@@ -0,0 +1,90 @@
+
+
+ 4.0.0
+
+ com.aula.animal
+ atividade-5
+ 1.0-SNAPSHOT
+
+ atividade-5
+
+ http://www.example.com
+
+
+ UTF-8
+ 17
+
+
+
+
+
+ org.junit
+ junit-bom
+ 5.11.0
+ pom
+ import
+
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+ test
+
+
+
+
+
+
+
+
+ maven-clean-plugin
+ 3.4.0
+
+
+
+ maven-resources-plugin
+ 3.3.1
+
+
+ maven-compiler-plugin
+ 3.13.0
+
+
+ maven-surefire-plugin
+ 3.3.0
+
+
+ maven-jar-plugin
+ 3.4.2
+
+
+ maven-install-plugin
+ 3.1.2
+
+
+ maven-deploy-plugin
+ 3.1.2
+
+
+
+ maven-site-plugin
+ 3.12.1
+
+
+ maven-project-info-reports-plugin
+ 3.6.1
+
+
+
+
+
diff --git a/atividade-5/src/main/Animais.png b/atividade-5/src/main/Animais.png
new file mode 100644
index 0000000..3707882
Binary files /dev/null and b/atividade-5/src/main/Animais.png differ
diff --git a/atividade-5/src/main/java/Main.java b/atividade-5/src/main/java/Main.java
new file mode 100644
index 0000000..bc3ec64
--- /dev/null
+++ b/atividade-5/src/main/java/Main.java
@@ -0,0 +1,11 @@
+import com.aula.animal.*;
+
+public class Main {
+ static public void main(String[] argv) {
+ Cachorro cachorro = new Cachorro("Dogao", 10);
+ Gato gato = new Gato("Lina", 9);
+
+ cachorro.latir();
+ gato.miar();
+ }
+}
diff --git a/atividade-5/src/main/java/com/aula/animal/Animal.java b/atividade-5/src/main/java/com/aula/animal/Animal.java
new file mode 100644
index 0000000..9609c4b
--- /dev/null
+++ b/atividade-5/src/main/java/com/aula/animal/Animal.java
@@ -0,0 +1,11 @@
+package com.aula.animal;
+
+abstract class Animal {
+ protected String nome;
+ protected int idade;
+
+ protected Animal(String nome, int idade) {
+ this.nome = nome;
+ this.idade = idade;
+ }
+}
diff --git a/atividade-5/src/main/java/com/aula/animal/Cachorro.java b/atividade-5/src/main/java/com/aula/animal/Cachorro.java
new file mode 100644
index 0000000..19721e3
--- /dev/null
+++ b/atividade-5/src/main/java/com/aula/animal/Cachorro.java
@@ -0,0 +1,11 @@
+package com.aula.animal;
+
+public class Cachorro extends Animal {
+ public Cachorro(String nome, int idade) {
+ super(nome, idade);
+ }
+
+ public void latir() {
+ System.out.println("Au au");
+ }
+}
diff --git a/atividade-5/src/main/java/com/aula/animal/Gato.java b/atividade-5/src/main/java/com/aula/animal/Gato.java
new file mode 100644
index 0000000..b929127
--- /dev/null
+++ b/atividade-5/src/main/java/com/aula/animal/Gato.java
@@ -0,0 +1,11 @@
+package com.aula.animal;
+
+public class Gato extends Animal {
+ public Gato(String nome, int idade) {
+ super(nome, idade);
+ }
+
+ public void miar() {
+ System.out.println("Miau");
+ }
+}
diff --git a/atividade-5/src/test/java/com/aula/animal/AppTest.java b/atividade-5/src/test/java/com/aula/animal/AppTest.java
new file mode 100644
index 0000000..5ad73f0
--- /dev/null
+++ b/atividade-5/src/test/java/com/aula/animal/AppTest.java
@@ -0,0 +1,19 @@
+package com.aula.animal;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest {
+
+ /**
+ * Rigorous Test :-)
+ */
+ @Test
+ public void shouldAnswerWithTrue() {
+ assertTrue(true);
+ }
+}
diff --git a/atividade-6/.classpath b/atividade-6/.classpath
new file mode 100644
index 0000000..df66b20
--- /dev/null
+++ b/atividade-6/.classpath
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/atividade-6/.mvn/jvm.config b/atividade-6/.mvn/jvm.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-6/.mvn/maven.config b/atividade-6/.mvn/maven.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-6/.project b/atividade-6/.project
new file mode 100644
index 0000000..bd098b3
--- /dev/null
+++ b/atividade-6/.project
@@ -0,0 +1,34 @@
+
+
+ atividade-6
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
+
+ 1757444294604
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
+
diff --git a/atividade-6/.settings/org.eclipse.core.resources.prefs b/atividade-6/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..f9fe345
--- /dev/null
+++ b/atividade-6/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/atividade-6/.settings/org.eclipse.jdt.apt.core.prefs b/atividade-6/.settings/org.eclipse.jdt.apt.core.prefs
new file mode 100644
index 0000000..d4313d4
--- /dev/null
+++ b/atividade-6/.settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
diff --git a/atividade-6/.settings/org.eclipse.jdt.core.prefs b/atividade-6/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..a4e59d9
--- /dev/null
+++ b/atividade-6/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,9 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/atividade-6/.settings/org.eclipse.m2e.core.prefs b/atividade-6/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/atividade-6/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/atividade-6/pom.xml b/atividade-6/pom.xml
new file mode 100644
index 0000000..7890506
--- /dev/null
+++ b/atividade-6/pom.xml
@@ -0,0 +1,90 @@
+
+
+ 4.0.0
+
+ com.aula.publi
+ atividade-6
+ 1.0-SNAPSHOT
+
+ atividade-6
+
+ http://www.example.com
+
+
+ UTF-8
+ 17
+
+
+
+
+
+ org.junit
+ junit-bom
+ 5.11.0
+ pom
+ import
+
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+ test
+
+
+
+
+
+
+
+
+ maven-clean-plugin
+ 3.4.0
+
+
+
+ maven-resources-plugin
+ 3.3.1
+
+
+ maven-compiler-plugin
+ 3.13.0
+
+
+ maven-surefire-plugin
+ 3.3.0
+
+
+ maven-jar-plugin
+ 3.4.2
+
+
+ maven-install-plugin
+ 3.1.2
+
+
+ maven-deploy-plugin
+ 3.1.2
+
+
+
+ maven-site-plugin
+ 3.12.1
+
+
+ maven-project-info-reports-plugin
+ 3.6.1
+
+
+
+
+
diff --git a/atividade-6/src/main/Publi.png b/atividade-6/src/main/Publi.png
new file mode 100644
index 0000000..07e83b6
Binary files /dev/null and b/atividade-6/src/main/Publi.png differ
diff --git a/atividade-6/src/main/java/Main.java b/atividade-6/src/main/java/Main.java
new file mode 100644
index 0000000..63adbb2
--- /dev/null
+++ b/atividade-6/src/main/java/Main.java
@@ -0,0 +1,27 @@
+import java.util.List;
+import java.util.ArrayList;
+import com.aula.publi.*;
+
+public class Main {
+ static public void main(String[] argv) {
+ List publi = new ArrayList();
+
+ Livro shad = new Livro("50 shades of gray", 2015, "E. L. James");
+ Livro karl = new Livro("Manifesto Comunista", 1848, "Karl Marx");
+ Livro harry = new Livro("Harry Potter", 1998, "J. K. Rowling");
+ Revista recr = new Revista("Revista recreio", 2013, "Sinceramente, não sei");
+ Revista mad = new Revista("MAD", 1952, "Apagamos a tocha nesta MAD");
+ Revista boy = new Revista("Playboy", 1975, "Edição especial");
+
+ publi.add(boy);
+ publi.add(karl);
+ publi.add(recr);
+ publi.add(mad);
+ publi.add(harry);
+ publi.add(shad);
+
+ for (Publicacao now : publi) {
+ now.exibirInformacoes();
+ }
+ }
+}
diff --git a/atividade-6/src/main/java/com/aula/publi/Livro.java b/atividade-6/src/main/java/com/aula/publi/Livro.java
new file mode 100644
index 0000000..d978168
--- /dev/null
+++ b/atividade-6/src/main/java/com/aula/publi/Livro.java
@@ -0,0 +1,29 @@
+package com.aula.publi;
+
+public class Livro extends Publicacao {
+ private String autor;
+
+ public Livro(String titulo, int ano, String autor) {
+ super(titulo, ano);
+ this.autor = autor;
+ }
+
+ public String getAutor() {
+ return autor;
+ }
+
+ public void setAutor(String autor) {
+ this.autor = autor;
+ }
+
+ protected void exibirDados() {
+ super.exibirDados();
+ System.out.println("Autor: " + autor);
+ }
+
+ public void exibirInformacoes() {
+ System.out.println("-----------------------");
+ exibirDados();
+ System.out.println("-----------------------");
+ }
+}
diff --git a/atividade-6/src/main/java/com/aula/publi/Publicacao.java b/atividade-6/src/main/java/com/aula/publi/Publicacao.java
new file mode 100644
index 0000000..e2a7e9b
--- /dev/null
+++ b/atividade-6/src/main/java/com/aula/publi/Publicacao.java
@@ -0,0 +1,38 @@
+package com.aula.publi;
+
+public class Publicacao {
+ protected String titulo;
+ protected int ano;
+
+ public Publicacao(String titulo, int ano) {
+ this.titulo = titulo;
+ this.ano = ano;
+ }
+
+ public String getTitulo() {
+ return titulo;
+ }
+
+ public void setTitulo(String titulo) {
+ this.titulo = titulo;
+ }
+
+ public int getAno() {
+ return ano;
+ }
+
+ public void setAno(int ano) {
+ this.ano = ano;
+ }
+
+ protected void exibirDados() {
+ System.out.println("Titulo: " + titulo);
+ System.out.println("Ano: " + ano);
+ }
+
+ public void exibirInformacoes() {
+ System.out.println("-----------------------");
+ exibirDados();
+ System.out.println("-----------------------");
+ }
+}
diff --git a/atividade-6/src/main/java/com/aula/publi/Revista.java b/atividade-6/src/main/java/com/aula/publi/Revista.java
new file mode 100644
index 0000000..e762454
--- /dev/null
+++ b/atividade-6/src/main/java/com/aula/publi/Revista.java
@@ -0,0 +1,29 @@
+package com.aula.publi;
+
+public class Revista extends Publicacao {
+ private String edicao;
+
+ public Revista(String titulo, int ano, String edicao) {
+ super(titulo, ano);
+ this.edicao = edicao;
+ }
+
+ public String getEdicao() {
+ return edicao;
+ }
+
+ public void setEdicao(String edicao) {
+ this.edicao = edicao;
+ }
+
+ protected void exibirDados() {
+ super.exibirDados();
+ System.out.println("Edição: " + edicao);
+ }
+
+ public void exibirInformacoes() {
+ System.out.println("-----------------------");
+ exibirDados();
+ System.out.println("-----------------------");
+ }
+}
diff --git a/atividade-6/src/test/java/com/aula/publi/AppTest.java b/atividade-6/src/test/java/com/aula/publi/AppTest.java
new file mode 100644
index 0000000..299a97f
--- /dev/null
+++ b/atividade-6/src/test/java/com/aula/publi/AppTest.java
@@ -0,0 +1,19 @@
+package com.aula.publi;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest {
+
+ /**
+ * Rigorous Test :-)
+ */
+ @Test
+ public void shouldAnswerWithTrue() {
+ assertTrue(true);
+ }
+}
diff --git a/atividade-7/.classpath b/atividade-7/.classpath
new file mode 100644
index 0000000..df66b20
--- /dev/null
+++ b/atividade-7/.classpath
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/atividade-7/.mvn/jvm.config b/atividade-7/.mvn/jvm.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-7/.mvn/maven.config b/atividade-7/.mvn/maven.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-7/.project b/atividade-7/.project
new file mode 100644
index 0000000..bbcaa30
--- /dev/null
+++ b/atividade-7/.project
@@ -0,0 +1,34 @@
+
+
+ atividade-7
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
+
+ 1757445790006
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
+
diff --git a/atividade-7/.settings/org.eclipse.core.resources.prefs b/atividade-7/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..f9fe345
--- /dev/null
+++ b/atividade-7/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/atividade-7/.settings/org.eclipse.jdt.apt.core.prefs b/atividade-7/.settings/org.eclipse.jdt.apt.core.prefs
new file mode 100644
index 0000000..d4313d4
--- /dev/null
+++ b/atividade-7/.settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
diff --git a/atividade-7/.settings/org.eclipse.jdt.core.prefs b/atividade-7/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..a4e59d9
--- /dev/null
+++ b/atividade-7/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,9 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/atividade-7/.settings/org.eclipse.m2e.core.prefs b/atividade-7/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/atividade-7/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/atividade-7/pom.xml b/atividade-7/pom.xml
new file mode 100644
index 0000000..4cbdc20
--- /dev/null
+++ b/atividade-7/pom.xml
@@ -0,0 +1,90 @@
+
+
+ 4.0.0
+
+ com.aula.funcionario
+ atividade-7
+ 1.0-SNAPSHOT
+
+ atividade-7
+
+ http://www.example.com
+
+
+ UTF-8
+ 17
+
+
+
+
+
+ org.junit
+ junit-bom
+ 5.11.0
+ pom
+ import
+
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+ test
+
+
+
+
+
+
+
+
+ maven-clean-plugin
+ 3.4.0
+
+
+
+ maven-resources-plugin
+ 3.3.1
+
+
+ maven-compiler-plugin
+ 3.13.0
+
+
+ maven-surefire-plugin
+ 3.3.0
+
+
+ maven-jar-plugin
+ 3.4.2
+
+
+ maven-install-plugin
+ 3.1.2
+
+
+ maven-deploy-plugin
+ 3.1.2
+
+
+
+ maven-site-plugin
+ 3.12.1
+
+
+ maven-project-info-reports-plugin
+ 3.6.1
+
+
+
+
+
diff --git a/atividade-7/src/main/Funcionarios.png b/atividade-7/src/main/Funcionarios.png
new file mode 100644
index 0000000..a7793a5
Binary files /dev/null and b/atividade-7/src/main/Funcionarios.png differ
diff --git a/atividade-7/src/main/java/Main.java b/atividade-7/src/main/java/Main.java
new file mode 100644
index 0000000..477f0b5
--- /dev/null
+++ b/atividade-7/src/main/java/Main.java
@@ -0,0 +1,11 @@
+import com.aula.funcionario.*;
+
+public class Main {
+ static public void main(String[] argv) {
+ Gerente gerente = new Gerente("Fizio", "187182782a", 10070.22, 800);
+ Vendedor vendedor = new Vendedor("Santos", "11666b", 3788.97, 1000);
+
+ System.out.printf("Salário final do gerente: R$ %.2f\n", gerente.calcularSalarioFinal());
+ System.out.printf("Salário final do vendedor: R$ %.2f\n", vendedor.calcularSalarioFinal());
+ }
+}
diff --git a/atividade-7/src/main/java/com/aula/funcionario/Funcionario.java b/atividade-7/src/main/java/com/aula/funcionario/Funcionario.java
new file mode 100644
index 0000000..6396db3
--- /dev/null
+++ b/atividade-7/src/main/java/com/aula/funcionario/Funcionario.java
@@ -0,0 +1,21 @@
+package com.aula.funcionario;
+
+public class Funcionario {
+ protected String nome;
+ protected String matricula;
+ protected double salarioBase;
+
+ public Funcionario(String nome, String matricula, double salarioBase) {
+ this.nome = nome;
+ this.matricula = matricula;
+ this.salarioBase = salarioBase;
+ }
+
+ public void atualizarSalario(double porcentagem) {
+ if (porcentagem <= 0) {
+ return;
+ }
+
+ salarioBase += salarioBase * porcentagem;
+ }
+}
diff --git a/atividade-7/src/main/java/com/aula/funcionario/Gerente.java b/atividade-7/src/main/java/com/aula/funcionario/Gerente.java
new file mode 100644
index 0000000..a314773
--- /dev/null
+++ b/atividade-7/src/main/java/com/aula/funcionario/Gerente.java
@@ -0,0 +1,14 @@
+package com.aula.funcionario;
+
+public class Gerente extends Funcionario {
+ private double bonusMensal;
+
+ public Gerente(String nome, String matricula, double salarioBase, double bonusMensal) {
+ super(nome, matricula, salarioBase);
+ this.bonusMensal = bonusMensal;
+ }
+
+ public double calcularSalarioFinal() {
+ return salarioBase + bonusMensal;
+ }
+}
diff --git a/atividade-7/src/main/java/com/aula/funcionario/Vendedor.java b/atividade-7/src/main/java/com/aula/funcionario/Vendedor.java
new file mode 100644
index 0000000..98f3bb2
--- /dev/null
+++ b/atividade-7/src/main/java/com/aula/funcionario/Vendedor.java
@@ -0,0 +1,14 @@
+package com.aula.funcionario;
+
+public class Vendedor extends Funcionario {
+ private double comissao;
+
+ public Vendedor(String nome, String matricula, double salarioBase, double comissao) {
+ super(nome, matricula, salarioBase);
+ this.comissao = comissao;
+ }
+
+ public double calcularSalarioFinal() {
+ return salarioBase + comissao;
+ }
+}
diff --git a/atividade-7/src/test/java/com/aula/funcionario/AppTest.java b/atividade-7/src/test/java/com/aula/funcionario/AppTest.java
new file mode 100644
index 0000000..5c070ff
--- /dev/null
+++ b/atividade-7/src/test/java/com/aula/funcionario/AppTest.java
@@ -0,0 +1,19 @@
+package com.aula.funcionario;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest {
+
+ /**
+ * Rigorous Test :-)
+ */
+ @Test
+ public void shouldAnswerWithTrue() {
+ assertTrue(true);
+ }
+}
diff --git a/atividade-8/.classpath b/atividade-8/.classpath
new file mode 100644
index 0000000..df66b20
--- /dev/null
+++ b/atividade-8/.classpath
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/atividade-8/.mvn/jvm.config b/atividade-8/.mvn/jvm.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-8/.mvn/maven.config b/atividade-8/.mvn/maven.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-8/.project b/atividade-8/.project
new file mode 100644
index 0000000..b6974aa
--- /dev/null
+++ b/atividade-8/.project
@@ -0,0 +1,34 @@
+
+
+ atividade-8
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
+
+ 1757447129855
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
+
diff --git a/atividade-8/.settings/org.eclipse.core.resources.prefs b/atividade-8/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..f9fe345
--- /dev/null
+++ b/atividade-8/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/atividade-8/.settings/org.eclipse.jdt.apt.core.prefs b/atividade-8/.settings/org.eclipse.jdt.apt.core.prefs
new file mode 100644
index 0000000..d4313d4
--- /dev/null
+++ b/atividade-8/.settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
diff --git a/atividade-8/.settings/org.eclipse.jdt.core.prefs b/atividade-8/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..a4e59d9
--- /dev/null
+++ b/atividade-8/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,9 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/atividade-8/.settings/org.eclipse.m2e.core.prefs b/atividade-8/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/atividade-8/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/atividade-8/pom.xml b/atividade-8/pom.xml
new file mode 100644
index 0000000..332e89d
--- /dev/null
+++ b/atividade-8/pom.xml
@@ -0,0 +1,90 @@
+
+
+ 4.0.0
+
+ com.aula.veiculo
+ atividade-8
+ 1.0-SNAPSHOT
+
+ atividade-8
+
+ http://www.example.com
+
+
+ UTF-8
+ 17
+
+
+
+
+
+ org.junit
+ junit-bom
+ 5.11.0
+ pom
+ import
+
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+ test
+
+
+
+
+
+
+
+
+ maven-clean-plugin
+ 3.4.0
+
+
+
+ maven-resources-plugin
+ 3.3.1
+
+
+ maven-compiler-plugin
+ 3.13.0
+
+
+ maven-surefire-plugin
+ 3.3.0
+
+
+ maven-jar-plugin
+ 3.4.2
+
+
+ maven-install-plugin
+ 3.1.2
+
+
+ maven-deploy-plugin
+ 3.1.2
+
+
+
+ maven-site-plugin
+ 3.12.1
+
+
+ maven-project-info-reports-plugin
+ 3.6.1
+
+
+
+
+
diff --git a/atividade-8/src/main/Veiculos.png b/atividade-8/src/main/Veiculos.png
new file mode 100644
index 0000000..8a538c2
Binary files /dev/null and b/atividade-8/src/main/Veiculos.png differ
diff --git a/atividade-8/src/main/java/Main.java b/atividade-8/src/main/java/Main.java
new file mode 100644
index 0000000..15408fc
--- /dev/null
+++ b/atividade-8/src/main/java/Main.java
@@ -0,0 +1,12 @@
+import com.aula.veiculo.*;
+
+public class Main {
+ static public void main(String[] argv) {
+ Carro carro = new Carro("ahjahjs", "uyyyyyy", 2020, 6001.00, 4);
+ Moto moto = new Moto("Uhuhuhuh", "Tung Tung Tung Sahur", 2022, 12000.22, 12);
+
+ System.out.printf("Valor de revenda do carro: %.2f\n", carro.calcularValorRevenda());
+ System.out.printf("Valor de revenda da moto: %.2f\n", moto.calcularValorRevenda());
+ }
+}
+
diff --git a/atividade-8/src/main/java/com/aula/veiculo/Carro.java b/atividade-8/src/main/java/com/aula/veiculo/Carro.java
new file mode 100644
index 0000000..64a299b
--- /dev/null
+++ b/atividade-8/src/main/java/com/aula/veiculo/Carro.java
@@ -0,0 +1,16 @@
+package com.aula.veiculo;
+
+import java.time.Year;
+
+public class Carro extends Veiculo {
+ private int qtdportas;
+
+ public Carro(String marca, String modelo, int ano, double valorBase, int qtdportas) {
+ super(marca, modelo, ano, valorBase);
+ this.qtdportas = qtdportas;
+ }
+
+ public double calcularValorRevenda() {
+ return valorBase + (valorBase * 0.1 * (Year.now().getValue() - ano));
+ }
+}
diff --git a/atividade-8/src/main/java/com/aula/veiculo/Moto.java b/atividade-8/src/main/java/com/aula/veiculo/Moto.java
new file mode 100644
index 0000000..eed98c8
--- /dev/null
+++ b/atividade-8/src/main/java/com/aula/veiculo/Moto.java
@@ -0,0 +1,16 @@
+package com.aula.veiculo;
+
+import java.time.Year;
+
+public class Moto extends Veiculo {
+ private int cilindradas;
+
+ public Moto(String marca, String modelo, int ano, double valorBase, int cilindradas) {
+ super(marca, modelo, ano, valorBase);
+ this.cilindradas = cilindradas;
+ }
+
+ public double calcularValorRevenda() {
+ return valorBase + (valorBase * 0.05 * (Year.now().getValue() - ano));
+ }
+}
diff --git a/atividade-8/src/main/java/com/aula/veiculo/Veiculo.java b/atividade-8/src/main/java/com/aula/veiculo/Veiculo.java
new file mode 100644
index 0000000..9e4caad
--- /dev/null
+++ b/atividade-8/src/main/java/com/aula/veiculo/Veiculo.java
@@ -0,0 +1,15 @@
+package com.aula.veiculo;
+
+public class Veiculo {
+ protected String marca;
+ protected String modelo;
+ protected int ano;
+ protected double valorBase;
+
+ public Veiculo(String marca, String modelo, int ano, double valorBase) {
+ this.marca = marca;
+ this.modelo = modelo;
+ this.ano = ano;
+ this.valorBase = valorBase;
+ }
+}
diff --git a/atividade-8/src/test/java/com/aula/veiculo/AppTest.java b/atividade-8/src/test/java/com/aula/veiculo/AppTest.java
new file mode 100644
index 0000000..8130fc4
--- /dev/null
+++ b/atividade-8/src/test/java/com/aula/veiculo/AppTest.java
@@ -0,0 +1,19 @@
+package com.aula.veiculo;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest {
+
+ /**
+ * Rigorous Test :-)
+ */
+ @Test
+ public void shouldAnswerWithTrue() {
+ assertTrue(true);
+ }
+}
diff --git a/atividade-9/.classpath b/atividade-9/.classpath
new file mode 100644
index 0000000..df66b20
--- /dev/null
+++ b/atividade-9/.classpath
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/atividade-9/.mvn/jvm.config b/atividade-9/.mvn/jvm.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-9/.mvn/maven.config b/atividade-9/.mvn/maven.config
new file mode 100644
index 0000000..e69de29
diff --git a/atividade-9/.project b/atividade-9/.project
new file mode 100644
index 0000000..77d5e9b
--- /dev/null
+++ b/atividade-9/.project
@@ -0,0 +1,34 @@
+
+
+ atividade-9
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
+
+ 1757448217172
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
+
diff --git a/atividade-9/.settings/org.eclipse.core.resources.prefs b/atividade-9/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..f9fe345
--- /dev/null
+++ b/atividade-9/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/atividade-9/.settings/org.eclipse.jdt.apt.core.prefs b/atividade-9/.settings/org.eclipse.jdt.apt.core.prefs
new file mode 100644
index 0000000..d4313d4
--- /dev/null
+++ b/atividade-9/.settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
diff --git a/atividade-9/.settings/org.eclipse.jdt.core.prefs b/atividade-9/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..a4e59d9
--- /dev/null
+++ b/atividade-9/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,9 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/atividade-9/.settings/org.eclipse.m2e.core.prefs b/atividade-9/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/atividade-9/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/atividade-9/pom.xml b/atividade-9/pom.xml
new file mode 100644
index 0000000..0ed6a40
--- /dev/null
+++ b/atividade-9/pom.xml
@@ -0,0 +1,90 @@
+
+
+ 4.0.0
+
+ com.aula.pessoa
+ atividade-9
+ 1.0-SNAPSHOT
+
+ atividade-9
+
+ http://www.example.com
+
+
+ UTF-8
+ 17
+
+
+
+
+
+ org.junit
+ junit-bom
+ 5.11.0
+ pom
+ import
+
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+ test
+
+
+
+
+
+
+
+
+ maven-clean-plugin
+ 3.4.0
+
+
+
+ maven-resources-plugin
+ 3.3.1
+
+
+ maven-compiler-plugin
+ 3.13.0
+
+
+ maven-surefire-plugin
+ 3.3.0
+
+
+ maven-jar-plugin
+ 3.4.2
+
+
+ maven-install-plugin
+ 3.1.2
+
+
+ maven-deploy-plugin
+ 3.1.2
+
+
+
+ maven-site-plugin
+ 3.12.1
+
+
+ maven-project-info-reports-plugin
+ 3.6.1
+
+
+
+
+
diff --git a/atividade-9/src/main/java/Main.java b/atividade-9/src/main/java/Main.java
new file mode 100644
index 0000000..5b4e5f9
--- /dev/null
+++ b/atividade-9/src/main/java/Main.java
@@ -0,0 +1,13 @@
+import com.aula.pessoa.*;
+
+public class Main {
+ public static void main(String[] args) {
+ Aluno aluno1 = new Aluno("Santos", "aaabbbcccdddeee", "1982723982", 5.9);
+ Aluno aluno2 = new Aluno("Guilherme", "kjhsjhssskjs", "8888888888", 6.1);
+ Professor professor = new Professor("Fabio", "9991818882", "Banco de dados", 44);
+
+ System.out.println("Aluno 1 passou: " + aluno1.verificarAprovacao());
+ System.out.println("Aluno 2 passou: " + aluno2.verificarAprovacao());
+ System.out.printf("Salário mensal do professor: R$ %.2f\n", professor.calcularSalarioMensal(80));
+ }
+}
diff --git a/atividade-9/src/main/java/com/aula/pessoa/Aluno.java b/atividade-9/src/main/java/com/aula/pessoa/Aluno.java
new file mode 100644
index 0000000..feec849
--- /dev/null
+++ b/atividade-9/src/main/java/com/aula/pessoa/Aluno.java
@@ -0,0 +1,16 @@
+package com.aula.pessoa;
+
+public class Aluno extends Pessoa {
+ private String matricula;
+ private double notaFinal;
+
+ public Aluno(String nome, String cpf, String matricula, double notaFinal) {
+ super(nome, cpf);
+ this.matricula = matricula;
+ this.notaFinal = notaFinal;
+ }
+
+ public boolean verificarAprovacao() {
+ return notaFinal >= 6;
+ }
+}
diff --git a/atividade-9/src/main/java/com/aula/pessoa/Pessoa.java b/atividade-9/src/main/java/com/aula/pessoa/Pessoa.java
new file mode 100644
index 0000000..5e09124
--- /dev/null
+++ b/atividade-9/src/main/java/com/aula/pessoa/Pessoa.java
@@ -0,0 +1,11 @@
+package com.aula.pessoa;
+
+public class Pessoa {
+ protected String nome;
+ protected String cpf;
+
+ public Pessoa(String nome, String cpf) {
+ this.nome = nome;
+ this.cpf = cpf;
+ }
+}
diff --git a/atividade-9/src/main/java/com/aula/pessoa/Professor.java b/atividade-9/src/main/java/com/aula/pessoa/Professor.java
new file mode 100644
index 0000000..429929d
--- /dev/null
+++ b/atividade-9/src/main/java/com/aula/pessoa/Professor.java
@@ -0,0 +1,16 @@
+package com.aula.pessoa;
+
+public class Professor extends Pessoa {
+ private String disciplina;
+ private double cargaHoraria;
+
+ public Professor(String nome, String cpf, String disciplina, double cargaHoraria) {
+ super(nome, cpf);
+ this.disciplina = disciplina;
+ this.cargaHoraria = cargaHoraria;
+ }
+
+ public double calcularSalarioMensal(double valorHora) {
+ return cargaHoraria * valorHora * 4;
+ }
+}
diff --git a/atividade-9/src/test/java/com/aula/pessoa/AppTest.java b/atividade-9/src/test/java/com/aula/pessoa/AppTest.java
new file mode 100644
index 0000000..7066370
--- /dev/null
+++ b/atividade-9/src/test/java/com/aula/pessoa/AppTest.java
@@ -0,0 +1,19 @@
+package com.aula.pessoa;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest {
+
+ /**
+ * Rigorous Test :-)
+ */
+ @Test
+ public void shouldAnswerWithTrue() {
+ assertTrue(true);
+ }
+}