From 29ddeede9ad4564c7ce7e79104dd1702a73c0d12 Mon Sep 17 00:00:00 2001 From: GoldenBoy <57160141+Mateus-Felipe-Ribeiro@users.noreply.github.com> Date: Sat, 11 Jun 2022 12:51:02 -0300 Subject: [PATCH 01/14] Update README.md --- id/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/id/README.md b/id/README.md index 6c07908..363a82b 100644 --- a/id/README.md +++ b/id/README.md @@ -2,20 +2,20 @@ Altere este arquivo preenchendo os campos: -Nome: +Nome: Mateus Felipe Ribeiro -E-mail: +E-mail: 17243526@uepg.br / mateusfrlolez@gmail.com -Telefone: +Telefone: (42) 99959-4272 -Cidade: +Cidade: Ponta Grossa -Instituição de Ensino: +Instituição de Ensino: Universidade Estadual de Ponta Grossa -RA: +RA: 17243526 -Curso: +Curso: Engenharia de Computação -Período/Série: +Período/Série: 5º ano -Minha experiencia com desenvolvimento: +Minha experiencia com desenvolvimento: Possuo experiência em desenvolvimento web a partir da disciplina de projeto de software, onde desenvolvi um sistema de ordens de serviço, baseado em PHP, HTML, CSS, JavaScript, utilizando o framework CodeIgniter 4. From 57e1173eef933d94e2c1abdf616acf2092ebc5ac Mon Sep 17 00:00:00 2001 From: Mateus Ribeiro <57160141+Mateus-Felipe-Ribeiro@users.noreply.github.com> Date: Sun, 12 Jun 2022 22:16:44 -0300 Subject: [PATCH 02/14] Liguagem Utilizada Utilizei da linguagem Java, resolvi baseado em atividades propostas na disciplina do curso. --- algoritmos/Desafio 2/simulacao/README.md.txt | 1 + algoritmos/Desafio 2/simulacao/pom.xml | 13 ++++ .../com/mycompany/simulacao/Andorinha.java | 36 +++++++++ .../java/com/mycompany/simulacao/Animal.java | 42 +++++++++++ .../java/com/mycompany/simulacao/Ave.java | 17 +++++ .../java/com/mycompany/simulacao/Cao.java | 37 +++++++++ .../java/com/mycompany/simulacao/Cavalo.java | 37 +++++++++ .../com/mycompany/simulacao/Elefante.java | 44 +++++++++++ .../java/com/mycompany/simulacao/Galinha.java | 37 +++++++++ .../java/com/mycompany/simulacao/Gato.java | 37 +++++++++ .../com/mycompany/simulacao/Mamifero.java | 18 +++++ .../java/com/mycompany/simulacao/Pato.java | 37 +++++++++ .../com/mycompany/simulacao/Simulacao.java | 70 ++++++++++++++++++ .../java/com/mycompany/simulacao/Voo.java | 15 ++++ .../com/mycompany/simulacao/Andorinha.class | Bin 0 -> 777 bytes .../com/mycompany/simulacao/Animal.class | Bin 0 -> 723 bytes .../classes/com/mycompany/simulacao/Ave.class | Bin 0 -> 381 bytes .../classes/com/mycompany/simulacao/Cao.class | Bin 0 -> 724 bytes .../com/mycompany/simulacao/Cavalo.class | Bin 0 -> 742 bytes .../com/mycompany/simulacao/Elefante.class | Bin 0 -> 856 bytes .../com/mycompany/simulacao/Galinha.class | Bin 0 -> 741 bytes .../com/mycompany/simulacao/Gato.class | Bin 0 -> 734 bytes .../com/mycompany/simulacao/Mamifero.class | Bin 0 -> 396 bytes .../com/mycompany/simulacao/Pato.class | Bin 0 -> 757 bytes .../com/mycompany/simulacao/Simulacao.class | Bin 0 -> 2573 bytes .../classes/com/mycompany/simulacao/Voo.class | Bin 0 -> 149 bytes .../compile/default-compile/createdFiles.lst | 1 + .../compile/default-compile/inputFiles.lst | 1 + 28 files changed, 443 insertions(+) create mode 100644 algoritmos/Desafio 2/simulacao/README.md.txt create mode 100644 algoritmos/Desafio 2/simulacao/pom.xml create mode 100644 algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Andorinha.java create mode 100644 algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Animal.java create mode 100644 algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Ave.java create mode 100644 algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Cao.java create mode 100644 algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Cavalo.java create mode 100644 algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Elefante.java create mode 100644 algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Galinha.java create mode 100644 algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Gato.java create mode 100644 algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Mamifero.java create mode 100644 algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Pato.java create mode 100644 algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Simulacao.java create mode 100644 algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Voo.java create mode 100644 algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Andorinha.class create mode 100644 algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Animal.class create mode 100644 algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Ave.class create mode 100644 algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Cao.class create mode 100644 algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Cavalo.class create mode 100644 algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Elefante.class create mode 100644 algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Galinha.class create mode 100644 algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Gato.class create mode 100644 algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Mamifero.class create mode 100644 algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Pato.class create mode 100644 algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Simulacao.class create mode 100644 algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Voo.class create mode 100644 algoritmos/Desafio 2/simulacao/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 algoritmos/Desafio 2/simulacao/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst diff --git a/algoritmos/Desafio 2/simulacao/README.md.txt b/algoritmos/Desafio 2/simulacao/README.md.txt new file mode 100644 index 0000000..c7a05b7 --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/README.md.txt @@ -0,0 +1 @@ +Desafio de nmero 2 - OK \ No newline at end of file diff --git a/algoritmos/Desafio 2/simulacao/pom.xml b/algoritmos/Desafio 2/simulacao/pom.xml new file mode 100644 index 0000000..e50f389 --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/pom.xml @@ -0,0 +1,13 @@ + + + 4.0.0 + com.mycompany + simulacao + 1.0-SNAPSHOT + + UTF-8 + 18 + 18 + com.mycompany.simulacao.Simulacao + + \ No newline at end of file diff --git a/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Andorinha.java b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Andorinha.java new file mode 100644 index 0000000..32cfcf1 --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Andorinha.java @@ -0,0 +1,36 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.simulacao; + +/** + * + * @author Mateus Felipe Ribeiro RA: 17243526 + */ +public class Andorinha extends Ave implements Voo{ + + //Ave que pode implementar a caracteristica de voo + public Andorinha(double peso,int patas) { + super(peso,patas); + + } + + public String voar() + { + String aux = "voando"; + return aux; + } + public String nome() + { + String aux = "andorinha"; + return aux; + } + + @Override + public String atacar() + { + String aux = "Não sei atacar"; + return aux; + } +} diff --git a/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Animal.java b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Animal.java new file mode 100644 index 0000000..25ea53e --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Animal.java @@ -0,0 +1,42 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.simulacao; + +/** + * + * @author Mateus Felipe Ribeiro RA: 17243526 + */ +public abstract class Animal { + + //Todos os animais possuem quantidade de patas e seu peso + + public double peso; + public int patas; + + public Animal(double peso,int patas) { + this.peso=peso; + this.patas=patas; + } + + /* + Todos os animais irão herdar os métodos andar e comer + */ + public String andar() + { + String aux = "andando"; + return aux; + } + + public String comer() + { + String aux = "comendo"; + return aux; + } + + //métodos abstratos para que todos os animais herdem, podendo usalos ou não + public abstract String nome(); + public abstract String atacar(); + public abstract String voar(); +} diff --git a/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Ave.java b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Ave.java new file mode 100644 index 0000000..5ef0326 --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Ave.java @@ -0,0 +1,17 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.simulacao; + +/** + * + * @author Mateus Felipe Ribeiro RA: 17243526 + */ +public abstract class Ave extends Animal { + + //super classe de animal + public Ave(double peso,int patas) { + super(peso,patas); + } +} diff --git a/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Cao.java b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Cao.java new file mode 100644 index 0000000..4aae1bc --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Cao.java @@ -0,0 +1,37 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.simulacao; + +/** + * + * @author Mateus Felipe Ribeiro RA: 17243526 + */ +public class Cao extends Mamifero { + + //Mamífero que possuí nome, não voa, e pode usar o método atacar + public Cao(double peso,int patas) { + super(peso,patas); + } + + public String nome() + { + String aux = "cão"; + return aux; + } + + public String atacar() + { + String aux = "atacando"; + return aux; + } + + @Override + public String voar() + { + String aux = "Não sei voar"; + return aux; + } + +} diff --git a/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Cavalo.java b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Cavalo.java new file mode 100644 index 0000000..74427a0 --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Cavalo.java @@ -0,0 +1,37 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.simulacao; + +/** + * + * @author Mateus Felipe Ribeiro RA: 17243526 + */ +public class Cavalo extends Mamifero{ + + //mamifero que não pode atacar e nem voar + public Cavalo(double peso,int patas) { + super(peso,patas); + } + + public String nome() + { + String aux = "cavalo"; + return aux; + } + + @Override + public String atacar() + { + String aux = "Não sei atacar"; + return aux; + } + + @Override + public String voar() + { + String aux = "Não sei voar"; + return aux; + } +} diff --git a/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Elefante.java b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Elefante.java new file mode 100644 index 0000000..d55f8a6 --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Elefante.java @@ -0,0 +1,44 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.simulacao; + +/** + * + * @author Mateus Felipe Ribeiro RA: 17243526 + */ +public class Elefante extends Mamifero{ + + //mamifero que não pode atacar e nem voar + public Elefante(double peso,int patas) { + super(peso,patas); + } + + //sobre escreve o método comer, pois come diferente + public String comer() + { + String aux = "comendo diferente"; + return aux; + } + + public String nome() + { + String aux = "elefante"; + return aux; + } + + @Override + public String atacar() + { + String aux = "Não sei atacar"; + return aux; + } + + @Override + public String voar() + { + String aux = "Não sei voar"; + return aux; + } +} diff --git a/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Galinha.java b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Galinha.java new file mode 100644 index 0000000..609887d --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Galinha.java @@ -0,0 +1,37 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.simulacao; + +/** + * + * @author Mateus Felipe Ribeiro RA: 17243526 + */ +public class Galinha extends Ave { + + //ave que não pode atacar e nem voar + public Galinha(double peso,int patas) { + super(peso,patas); + } + + public String nome() + { + String aux = "galinha"; + return aux; + } + + @Override + public String atacar() + { + String aux = "Não sei atacar"; + return aux; + } + + @Override + public String voar() + { + String aux = "Não sei voar"; + return aux; + } +} diff --git a/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Gato.java b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Gato.java new file mode 100644 index 0000000..310dc14 --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Gato.java @@ -0,0 +1,37 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.simulacao; + +/** + * + * @author Mateus Felipe Ribeiro RA: 17243526 + */ +public class Gato extends Mamifero{ + + //mamifero que não pode atacar e nem voar + public Gato(double peso,int patas) { + super(peso,patas); + } + + public String nome() + { + String aux = "gato"; + return aux; + } + + @Override + public String atacar() + { + String aux = "Não sei atacar"; + return aux; + } + + @Override + public String voar() + { + String aux = "Não sei voar"; + return aux; + } +} diff --git a/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Mamifero.java b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Mamifero.java new file mode 100644 index 0000000..4067398 --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Mamifero.java @@ -0,0 +1,18 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.simulacao; + +/** + * + * @author Mateus Felipe Ribeiro RA: 17243526 + */ +public abstract class Mamifero extends Animal { + + //super classe de animal + public Mamifero(double peso,int patas) { + super(peso,patas); + } + +} diff --git a/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Pato.java b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Pato.java new file mode 100644 index 0000000..275b2d0 --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Pato.java @@ -0,0 +1,37 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package com.mycompany.simulacao; + +/** + * + * @author Mateus Felipe Ribeiro RA: 17243526 + */ +public class Pato extends Ave implements Voo { + + //Ave que pode implementar a caracteristica de voo + public Pato( double peso,int patas) { + super(peso,patas); + + } + + public String voar() + { + String aux = "voando"; + return aux; + } + + public String nome() + { + String aux = "pato"; + return aux; + } + + @Override + public String atacar() + { + String aux = "Não sei atacar"; + return aux; + } +} diff --git a/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Simulacao.java b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Simulacao.java new file mode 100644 index 0000000..d0cd6b0 --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Simulacao.java @@ -0,0 +1,70 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template + */ + +package com.mycompany.simulacao; +import java.util.ArrayList; +import java.util.List; + +/** + * + * @author Mateus Felipe Ribeiro RA: 17243526 + */ +public class Simulacao { + + public static void main(String[] args) { + //System.out.println("Hello World!"); + + /* + Criamos um arrayList para conter todos os animais + Assim é possível testar todas as combinações de ações de forma organizada + */ + + List listaAnimal = new ArrayList(); + + Animal a = new Cao(6,4); + Animal b = new Gato(2,4); + Animal c = new Elefante(200,4); + Animal d = new Cavalo(100,4); + Animal e = new Andorinha(0.4,4); + Animal f = new Pato(1,4); + Animal g = new Galinha(1,4); + + //Adicionamos os animais criados ao ArrayList + listaAnimal.add(a); + listaAnimal.add(b); + listaAnimal.add(c); + listaAnimal.add(d); + listaAnimal.add(e); + listaAnimal.add(f); + listaAnimal.add(g); + + /* + Realiza a amostragem das funções de cada animal, + para os casos de ser um cão + Ou ave que saiba voar, + realiza a checagem do seu nome em seguida mostra sua função específica + */ + for (Animal i : listaAnimal) + { + + System.out.println("Sou um " + i.nome() + " e estou " + i.andar()); + + System.out.println("Sou um " + i.nome() + " e estou " + i.comer()); + + if(i.nome() == "cão") + { + + System.out.println("Sou um " + i.nome() + " e estou " + i.atacar()); + + } + else if(i.nome() == "andorinha" || i.nome() == "pato") + { + + System.out.println("Sou um " + i.nome() + " e estou " + i.voar()); + } + + } + } +} diff --git a/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Voo.java b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Voo.java new file mode 100644 index 0000000..19a1cf6 --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/src/main/java/com/mycompany/simulacao/Voo.java @@ -0,0 +1,15 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Interface.java to edit this template + */ +package com.mycompany.simulacao; + +/** + * + * @author Mateus Felipe Ribeiro RA: 17243526 + */ +public interface Voo { + + //Interface a ser usada por aves que sabem voar + public String voar(); +} diff --git a/algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Andorinha.class b/algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Andorinha.class new file mode 100644 index 0000000000000000000000000000000000000000..270cfa2b1a2567a69c0b18be20ab9ae386d657a8 GIT binary patch literal 777 zcmah`$xZ@65Pb~;1GppNf(z)uEpa};B{3QklF^uGxVO-eHq0~`2BP2N59rCngBNdp zl<_rcVj{|=>Q!~ud$qj1KfeIj$65{vBwaY8NFgmys++(I?r7UGyz@Fb=(c2C8t<^D z1k!st)bW8pYU8-NS<4{9T+hg`VKT@GWG#wx*pwNJ3QU~6-kWkq>9UMT61f-`sQjt$ zUF%}W7cu9*CQnj!Z*4yV zo}ADGcAKAD5y)MbZd6w%+D^L%+Om@#4M>Sn!`L_7l^Y7rojaGRKg;yRoSPvbg8`SZ$A+H y)RLa z`T_l@(sOM?9~uJUp1YoNXGXvO{QL#r0MAqWpF)0 z8y$sksw+KX_NalbLR}XVey)KY19BM#?CKvL4MwDR=O#v>o!G*BoabXxe$nHMnQr1z zosD#9C0-?i>dcaQC%JjES3K$mQ=PfVXI<*tRHo!qD4UcDz5XEicM-=`X^T@%_ z4lA3CPT(UTwue8UhR?51A8uXY)_0~n+@(oY^lm;UZ$dqW0P>Y;8NTCS9I&Ot_YL( zpPrY}v{02H&|EH3aLr<&h!EVXdTmyZTymyrRf_CCnWjwCowg(UvsO)CxMlYQp1j;H zaoV>_HjpfWD;w}GPA6}mSD_AkLHkj_NDctaWsvbxt=I}H&Ecqzy1G z(DI>**TR~JN+K?iVNKnSV;cE+$6NCdSr_| z&fMjEEDH0=jY^X&o@nAAcphG$T~+F$ zo9_Bh6=#yDszeH2+`0G6-0$8a|NisiCx8RAYAB%`z?(t^zCf6mEXtl3yE1=@dOGW; zGLa@am6^U()(H6fI@iUaKxOB+y?a$fm0BVnWNNCY3Cy1TdNyHC=};DIwN*?BO#c-h zjI;q}1lIpI>S(|c@Q%!lA}`jtI_qcG%3jLrluA7|iA=Ag)vg|iUeVD#8i?P=JE(xl>hi%+0y9GE;@Jl)ccoSQ~?yc#T>iYV{q|`WV#YYt$xDTkoJY22R2kOGAGL literal 0 HcmV?d00001 diff --git a/algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Elefante.class b/algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Elefante.class new file mode 100644 index 0000000000000000000000000000000000000000..633b009fb1a7217711d683cb9a5974612cbe327f GIT binary patch literal 856 zcmaix-A)rh6vzM5?sk_-rBtZMhb+ZJii!IGh&O^slZB8#xF6a9#_aAi(=Czb@dfnC z#0zh{^Pvp?DaDwy*xlsJ`Iz%NAM^XqkDmbc@v4dv$^pE2_^1d(U6aMxEoEQkxA8z{ z!&G*qiH~HaFO@X{m3KPV#d`sN=b+O*4-pD1GC}1%6ZPCBl@}^RRUlNUx|AbpUSQ$) z*B28Fl#XOUrVa5_p!U~!W26mG|4$ExW14{X!Sob~iO$vWFuPFpOkSk)G!oO5>AAGp z*<+_yTNn2Ymo=KQ{MGQaPB`~+};ZV?$|Jvb%g;0iRyCi0_e+PRFc{e_N} zp&U!&zg;N-_qC37`bHqv>km#Z^T-Q$QyJ=bCi5r?l!w2*na)D#j!fB>#`PJ=IUCH+vwQ-72uI-Zh~mCLVo znjKf}dU+D;!UDySSteukUfcOgn-$M&Bf2=?2iW6)1HolhW;S5%(0eaWj&31t7-mqR zwf_Y^ahW}0)IpZkLluYgHmadcl#LpA%-bi73mKNd0(kWl&uFd61--@Ps$THwJA;2U vYV57wYc$r6HX2!GO|;l5aI^ze*hV#pYVAQi-+_9tje0@U@g7wBev{50VI6*I literal 0 HcmV?d00001 diff --git a/algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Gato.class b/algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Gato.class new file mode 100644 index 0000000000000000000000000000000000000000..89bf2f5eef0dde8bcbe61aa363f8d127d9dd829f GIT binary patch literal 734 zcmaix&raJw5XQev96L#qLPMam3DnR-`6J;6;LoK|Q6wj-M8$m*wqa51jW!M{&%+DA z38{x(xbaYkZvml7NsA9N-^}j(W@deN|N9SseXNy{Lq334K>@x%*f&X(T+ohWdJ&Cv zG8xLgG*L$;`lqr+z~9rU&JF|$8?E-{aS=rUZy+;ML|I_2dwXfZvC^T;SZIr=2vlE^ z=SJE9Zv~qFYIH~vfnUvuA}!Xb>Q0iLvOi>R$V@FZeK|aqR=fB)>1C&SEU+5?54ub0 zNR0^>Ee=28e5?^|f%%TgPR+@8X=S1^WtsL;ldxNTV>3RJ=Q0|~bPye7R;L4U@^bRa zjWXlNe_ERax2iz-$V_Zseba9El3Q-aRbdTPzP$T9a2oiG<`}gZd-TE9mz5icYswtv zY2A+kulS7KQH99U2B=|y-l;kkiE?TQ?|HgRUCJ>HCcvW)_(hmk8Pmh~~57Y>I(*OVf literal 0 HcmV?d00001 diff --git a/algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Mamifero.class b/algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Mamifero.class new file mode 100644 index 0000000000000000000000000000000000000000..68ff4302d69412152de4d44ae95d3613c4c73b2a GIT binary patch literal 396 zcmah_%Sr=55Uk#8vSv-p8uh3|FFp?L2lxOn2n!n#l-xU;k&Nu@gnbD4EKh<5KfsR? zdqj`o4AfLtPjxr_@%i=+-~u}#JhTG%J+#pw>}A%(W+k}fVii}~G&yH%xQV`i#+;8`xpFtr)yQ!cfOe?-4t z=!$TV{#W=+Dlb(f4QMPQExBg#Q9_6&s$SUn9hYoWtxA!@d)t(my3ww0|97_2Cw^vs zAAu~w9kIJrNYs@mfiD*bP7ZfpK`%l*go18wz(77mSQj=zOE5qWeR&<*kSu+(2%C}} Q3h#O%LoBY(mY|32FG3qs_5c6? literal 0 HcmV?d00001 diff --git a/algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Pato.class b/algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Pato.class new file mode 100644 index 0000000000000000000000000000000000000000..ff54ea0d2658a68211c6b02625271cd699204a9b GIT binary patch literal 757 zcmah`%T5A85UhcP1;iIBK0pOI_)6Rl@R1ma3CU_qG~7p+$QX8qEDO=^@dxx|;=zkI zKgw969!x~NbXRvzRd-LnzCAqy*hejg1d=YCJW@ytlv*b6f?L|23~#-@4hCJ>lEyn6 zDuMK#4t0DWklLs>Hk%n_m>U`ywoL{(0jDQpqP)Q5>C2s|^p&p2nEc4agh2T>@iWp~ zO#RWmX$<9$Oq)|o`Z`pngWys{7xJ>pOu;uT*=@>5+xRQ##2wuiSn>brx@(74eTs`Z z*W&z=9MKS%I#F@Qw9jND0~M=?X@{#u0<#;N{vrlctxG09NgGZMwFb; z1orzr|3V;lZU#|H9cw#$)^5LJS*T*1=ir9CjYH3qFrH@AVC>MlTkFe@5D$b26lm@J zKth_&W{4_C(z=+%9KA(F%u~vu1uU|O(M_)aXjFz!Ns=(?9sq9aw5~a%jNL5Bijs28bqg3r5sp`ijYwymUf;RvF literal 0 HcmV?d00001 diff --git a/algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Simulacao.class b/algoritmos/Desafio 2/simulacao/target/classes/com/mycompany/simulacao/Simulacao.class new file mode 100644 index 0000000000000000000000000000000000000000..e3b999de81fc7863317fffc57ee2509e625e881f GIT binary patch literal 2573 zcmai0U2qds6#i~WvT3@s(3a9teuA`+LQ4PZ_{nNbh8^an@ary zf5Csz7vWJyeAWm4GUGVon=`)o;*&EzI=(x@IO2D+NlBrt+wR@(o_o%B&pG$pd-LliAuP~PRLXm% z74LCfIh!(bUId!rsS#*RJDGT9mTgwrv+eQSo1cI?c z{ffC>VC`bIebS?G(Nr0)M4g7!0@20v4_n5Bv^^tq!1RqGXi_$71=cTS)638;&N5oI zXjK*)1vV~b(PNK0u4zxnQ1@?F)pIR^s508TL?}ZHC4zRP)*-NAG44KTDdq@bsH;II zx-@Lp5yuXJ+WYxesprbb@o|AwvDAaBm+UyDY zlQr0b$2IKL@dOeA_4j8gs|aXQGB;?PSM$ac{~qkqSxT&sfL#GV61nfO z&5X3FaS**44(T|IBlC)JcsA!58P4eBIqxdpb<>FtG5y}K=NdATjG!Awb@byY<%yFq z1m=4}J=2~n>ZNoHD7~Px$E91(6+fn92+s(t&d6z_*Rj*mJ861TL^+R@loQxnncosu zMaD~#Qd*0l&rLXt6B?e?F@lrj?K9tbW;LrqvFr!dvCKN6q8rt5s^~R~#&E-Uo`I%+ z`kLj`jTdyhsK!Fl<8I@i6sTr&eu0LOrf#-adfhN|Ocb*;<49M-)Dk5=T;9Gk?{&tR z)4G&t8-w}GnBks~V-_X#DJLzh5$T$$UlInqDU(Utlv=F7=a`eE&PbDyH^ojbkkAnU zVREl8%H$W1qLJ<-=WJMjMWDvwUXi{oYpbIA)h42~V8+B4U#3cMKM95=CiqU$v-u&; zX3JsjdVpu&|9QEeGc6zH8ch$#Y%y0F=<|vJ!<%x(hombr26rPxkzptAri~+}%5m*n zy0)u5NrQuq;qR~$aeRt*ESm}aZ{3b2r2uNpQSlF+#742fz0v9kbe^d_oP z1w=+0p=&o$J5az%;s)YXg9S7ZHxsW(1PW+nXB|5m62StZ>^#CwTOw3I`)D2EmV{P7 ztO&Oz!rMA;V_OwYZtE(2TLNVeEQ3%PXk`#Cf!o+Akf?5{zKzEOuHuqHEZiT_orrvo zo|ecB^r`0QI~W9R;CQ9*xw5dRR)6|BS}TXol!w1Xr?2tSH(2hYvFm8A)E%GGy_Z*s z4nQS(4C-e@Gs0MdMzr$IU5hTPLjvp3hYdJR$r)^dfi|YU9W&UB3)q6oyiBj41J|$< zx3C+(@b3Bpd+`@z3-AJKMvv&iA+dw^k6OeD{?xdIJhC`P#3h4^9OYrr0grNCFk&6q z&v9v^VkKTCT81uiohJ&=pT99n6r@*w;uWG0efu4+5^41CSG-0P#_Qx%1>^I+L3DwV z-3Z>pSBPl1sG(Cs_d@@BfPWx4(r_1zcj?EQvCuOF75&(6TY$RLoF zSeB@tlbDyT@1K;Fnq0!jz*3f Date: Sun, 12 Jun 2022 22:17:36 -0300 Subject: [PATCH 03/14] Rename README.md.txt to README.md --- algoritmos/Desafio 2/simulacao/README.md | 1 + algoritmos/Desafio 2/simulacao/README.md.txt | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 algoritmos/Desafio 2/simulacao/README.md delete mode 100644 algoritmos/Desafio 2/simulacao/README.md.txt diff --git a/algoritmos/Desafio 2/simulacao/README.md b/algoritmos/Desafio 2/simulacao/README.md new file mode 100644 index 0000000..f53c8ef --- /dev/null +++ b/algoritmos/Desafio 2/simulacao/README.md @@ -0,0 +1 @@ +Desafio de n�mero 2 - OK diff --git a/algoritmos/Desafio 2/simulacao/README.md.txt b/algoritmos/Desafio 2/simulacao/README.md.txt deleted file mode 100644 index c7a05b7..0000000 --- a/algoritmos/Desafio 2/simulacao/README.md.txt +++ /dev/null @@ -1 +0,0 @@ -Desafio de nmero 2 - OK \ No newline at end of file From 0333648eafbc610f0b389b1089e158d3b2af72f9 Mon Sep 17 00:00:00 2001 From: Mateus Ribeiro <57160141+Mateus-Felipe-Ribeiro@users.noreply.github.com> Date: Sun, 12 Jun 2022 22:17:55 -0300 Subject: [PATCH 04/14] Update README.md --- algoritmos/Desafio 2/simulacao/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/algoritmos/Desafio 2/simulacao/README.md b/algoritmos/Desafio 2/simulacao/README.md index f53c8ef..ee990d2 100644 --- a/algoritmos/Desafio 2/simulacao/README.md +++ b/algoritmos/Desafio 2/simulacao/README.md @@ -1 +1,3 @@ -Desafio de n�mero 2 - OK +Desafio de número 2 - OK + +Realizado utilizando Java From 91c011538bfa2a61c8dc4608aece3df04c95b5b8 Mon Sep 17 00:00:00 2001 From: Mateus Ribeiro <57160141+Mateus-Felipe-Ribeiro@users.noreply.github.com> Date: Sun, 12 Jun 2022 22:19:22 -0300 Subject: [PATCH 05/14] Update README.md --- algoritmos/Desafio 2/simulacao/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algoritmos/Desafio 2/simulacao/README.md b/algoritmos/Desafio 2/simulacao/README.md index ee990d2..0fb7771 100644 --- a/algoritmos/Desafio 2/simulacao/README.md +++ b/algoritmos/Desafio 2/simulacao/README.md @@ -1,3 +1,3 @@ Desafio de número 2 - OK -Realizado utilizando Java +Realizado utilizando a linguagem Java, resolvido baseado em exercícios da disciplina do curso. From 9e865a53541bc792d03f4a112135a0dfcc36288c Mon Sep 17 00:00:00 2001 From: Mateus Ribeiro <57160141+Mateus-Felipe-Ribeiro@users.noreply.github.com> Date: Mon, 13 Jun 2022 09:14:31 -0300 Subject: [PATCH 06/14] Update README.md --- questoes/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/questoes/README.md b/questoes/README.md index 7a07141..f3136a6 100644 --- a/questoes/README.md +++ b/questoes/README.md @@ -2,12 +2,12 @@ Responda as questões neste mesmo arquivo. -1. Conhece GIT? Já o utilizou em algum projeto? +1. Conhece GIT? Já o utilizou em algum projeto? Sim, conheço a partir de colegas que o utlizam no dia a dia. Ainda não utilizei. -2. Qual a diferença entre GIT e GITHUB? +2. Qual a diferença entre GIT e GITHUB? O Git é uma ferramenta de controle de versão distribuido e o GitHub é um serviço de hospedagem. -3. Conhece ou tem experiência com desenvolvimento Web? Descreva como se dá a requisição HTTP entre um cliente e o servidor, e como se dá a resposta. +3. Conhece ou tem experiência com desenvolvimento Web? Descreva como se dá a requisição HTTP entre um cliente e o servidor, e como se dá a resposta. Tenho pouca experiência, pois trabalhei com o desenvolvimento web nas disciplinas do curso. Como HTTP é um protocolo de baseado em streams de texto, onde o cliente abre um socket para falar com o servidor, onde no socket envia requisições, onde o servidor responde com responses. O cliente por ser por exemplo o navegador. -4. Conhece API REST? Para que são utilizadas? Cite dois exemplos. +4. Conhece API REST? Para que são utilizadas? Cite dois exemplos. Conheço a partir da disciplina de desenvolvimento web. A API REST é um conjunto de restrições utilizadas para que as resquisições HTTP atendam as diretrizes definidas na arquitetura. E-commerce e Sistemas que utilizam login via Google,Facebook,etc . Os ERPS utilizam e CRMs também. -5. Conhece o conceito de AJAX? Descreva a tecnologia utilizada. +5. Conhece o conceito de AJAX? Descreva a tecnologia utilizada. Conheço e quero aprender mais sobre. A técnologia do AJAX utiliza de carregar e renderizar uma página, fazendo o uso dos recursos de scripts rodando pelo lado cliente, onde realiza a busca e carrega dados em background sem a necessidade de reload da página. From d48c37e26c071486872a505898ca0b2071829b81 Mon Sep 17 00:00:00 2001 From: Mateus Ribeiro <57160141+Mateus-Felipe-Ribeiro@users.noreply.github.com> Date: Mon, 13 Jun 2022 10:25:47 -0300 Subject: [PATCH 07/14] Add files via upload --- algoritmos/Desafio 1/Common.php | 15 + algoritmos/Desafio 1/Config/App.php | 465 +++++++++++++++ algoritmos/Desafio 1/Config/Autoload.php | 87 +++ .../Desafio 1/Config/Boot/development.php | 32 ++ .../Desafio 1/Config/Boot/production.php | 21 + algoritmos/Desafio 1/Config/Boot/testing.php | 32 ++ algoritmos/Desafio 1/Config/CURLRequest.php | 22 + algoritmos/Desafio 1/Config/Cache.php | 181 ++++++ algoritmos/Desafio 1/Config/Constants.php | 94 +++ .../Config/ContentSecurityPolicy.php | 188 ++++++ algoritmos/Desafio 1/Config/Cookie.php | 119 ++++ algoritmos/Desafio 1/Config/Database.php | 91 +++ algoritmos/Desafio 1/Config/DocTypes.php | 33 ++ algoritmos/Desafio 1/Config/Email.php | 170 ++++++ algoritmos/Desafio 1/Config/Encryption.php | 67 +++ algoritmos/Desafio 1/Config/Events.php | 48 ++ algoritmos/Desafio 1/Config/Exceptions.php | 60 ++ algoritmos/Desafio 1/Config/Feature.php | 32 ++ algoritmos/Desafio 1/Config/Filters.php | 72 +++ .../Desafio 1/Config/ForeignCharacters.php | 9 + algoritmos/Desafio 1/Config/Format.php | 77 +++ algoritmos/Desafio 1/Config/Generators.php | 40 ++ algoritmos/Desafio 1/Config/Honeypot.php | 43 ++ algoritmos/Desafio 1/Config/Images.php | 35 ++ algoritmos/Desafio 1/Config/Kint.php | 51 ++ algoritmos/Desafio 1/Config/Logger.php | 154 +++++ algoritmos/Desafio 1/Config/Migrations.php | 55 ++ algoritmos/Desafio 1/Config/Mimes.php | 535 ++++++++++++++++++ algoritmos/Desafio 1/Config/Modules.php | 53 ++ algoritmos/Desafio 1/Config/Pager.php | 39 ++ algoritmos/Desafio 1/Config/Paths.php | 85 +++ algoritmos/Desafio 1/Config/Publisher.php | 28 + algoritmos/Desafio 1/Config/Routes.php | 56 ++ algoritmos/Desafio 1/Config/Security.php | 117 ++++ algoritmos/Desafio 1/Config/Services.php | 32 ++ algoritmos/Desafio 1/Config/Toolbar.php | 99 ++++ algoritmos/Desafio 1/Config/UserAgents.php | 252 +++++++++ algoritmos/Desafio 1/Config/Validation.php | 44 ++ algoritmos/Desafio 1/Config/View.php | 56 ++ .../Desafio 1/Controllers/BaseController.php | 52 ++ algoritmos/Desafio 1/Controllers/Home.php | 34 ++ algoritmos/Desafio 1/Controllers/Itens.php | 261 +++++++++ algoritmos/Desafio 1/Controllers/Vendas.php | 269 +++++++++ .../Desafio 1/Controllers/VendasItens.php | 334 +++++++++++ .../2022-06-12-143952_GeraTabelaItens.php | 53 ++ .../2022-06-12-144512_GeraTabelaVendas.php | 72 +++ ...022-06-12-144523_GeraTabelaItensVendas.php | 47 ++ algoritmos/Desafio 1/Entities/Item.php | 12 + algoritmos/Desafio 1/Entities/Venda.php | 12 + .../Desafio 1/Language/en/Validation.php | 4 + algoritmos/Desafio 1/Models/ItemModel.php | 78 +++ .../Desafio 1/Models/VendaItemModel.php | 42 ++ algoritmos/Desafio 1/Models/VendaModel.php | 75 +++ algoritmos/Desafio 1/Traits/VendaTrait.php | 89 +++ algoritmos/Desafio 1/Views/Home/index.php | 29 + algoritmos/Desafio 1/Views/Itens/_form.php | 22 + algoritmos/Desafio 1/Views/Itens/criar.php | 156 +++++ algoritmos/Desafio 1/Views/Itens/editar.php | 144 +++++ algoritmos/Desafio 1/Views/Itens/excluir.php | 61 ++ algoritmos/Desafio 1/Views/Itens/exibir.php | 63 +++ algoritmos/Desafio 1/Views/Itens/index.php | 116 ++++ .../Desafio 1/Views/Layouts/_mensagens.php | 52 ++ .../Desafio 1/Views/Layouts/principal.php | 128 +++++ algoritmos/Desafio 1/Views/Vendas/_form.php | 13 + algoritmos/Desafio 1/Views/Vendas/criar.php | 156 +++++ .../Desafio 1/Views/Vendas/detalhes.php | 212 +++++++ algoritmos/Desafio 1/Views/Vendas/editar.php | 139 +++++ .../Desafio 1/Views/Vendas/encerrar.php | 61 ++ algoritmos/Desafio 1/Views/Vendas/excluir.php | 61 ++ algoritmos/Desafio 1/Views/Vendas/index.php | 115 ++++ algoritmos/Desafio 1/Views/Vendas/itens.php | 384 +++++++++++++ .../Desafio 1/Views/errors/cli/error_404.php | 7 + .../Views/errors/cli/error_exception.php | 65 +++ .../Desafio 1/Views/errors/cli/production.php | 5 + .../Desafio 1/Views/errors/html/debug.css | 197 +++++++ .../Desafio 1/Views/errors/html/debug.js | 116 ++++ .../Desafio 1/Views/errors/html/error_404.php | 84 +++ .../Views/errors/html/error_exception.php | 397 +++++++++++++ .../Views/errors/html/production.php | 25 + .../Desafio 1/Views/welcome_message.php | 324 +++++++++++ algoritmos/Desafio 1/index.html | 11 + 81 files changed, 8266 insertions(+) create mode 100644 algoritmos/Desafio 1/Common.php create mode 100644 algoritmos/Desafio 1/Config/App.php create mode 100644 algoritmos/Desafio 1/Config/Autoload.php create mode 100644 algoritmos/Desafio 1/Config/Boot/development.php create mode 100644 algoritmos/Desafio 1/Config/Boot/production.php create mode 100644 algoritmos/Desafio 1/Config/Boot/testing.php create mode 100644 algoritmos/Desafio 1/Config/CURLRequest.php create mode 100644 algoritmos/Desafio 1/Config/Cache.php create mode 100644 algoritmos/Desafio 1/Config/Constants.php create mode 100644 algoritmos/Desafio 1/Config/ContentSecurityPolicy.php create mode 100644 algoritmos/Desafio 1/Config/Cookie.php create mode 100644 algoritmos/Desafio 1/Config/Database.php create mode 100644 algoritmos/Desafio 1/Config/DocTypes.php create mode 100644 algoritmos/Desafio 1/Config/Email.php create mode 100644 algoritmos/Desafio 1/Config/Encryption.php create mode 100644 algoritmos/Desafio 1/Config/Events.php create mode 100644 algoritmos/Desafio 1/Config/Exceptions.php create mode 100644 algoritmos/Desafio 1/Config/Feature.php create mode 100644 algoritmos/Desafio 1/Config/Filters.php create mode 100644 algoritmos/Desafio 1/Config/ForeignCharacters.php create mode 100644 algoritmos/Desafio 1/Config/Format.php create mode 100644 algoritmos/Desafio 1/Config/Generators.php create mode 100644 algoritmos/Desafio 1/Config/Honeypot.php create mode 100644 algoritmos/Desafio 1/Config/Images.php create mode 100644 algoritmos/Desafio 1/Config/Kint.php create mode 100644 algoritmos/Desafio 1/Config/Logger.php create mode 100644 algoritmos/Desafio 1/Config/Migrations.php create mode 100644 algoritmos/Desafio 1/Config/Mimes.php create mode 100644 algoritmos/Desafio 1/Config/Modules.php create mode 100644 algoritmos/Desafio 1/Config/Pager.php create mode 100644 algoritmos/Desafio 1/Config/Paths.php create mode 100644 algoritmos/Desafio 1/Config/Publisher.php create mode 100644 algoritmos/Desafio 1/Config/Routes.php create mode 100644 algoritmos/Desafio 1/Config/Security.php create mode 100644 algoritmos/Desafio 1/Config/Services.php create mode 100644 algoritmos/Desafio 1/Config/Toolbar.php create mode 100644 algoritmos/Desafio 1/Config/UserAgents.php create mode 100644 algoritmos/Desafio 1/Config/Validation.php create mode 100644 algoritmos/Desafio 1/Config/View.php create mode 100644 algoritmos/Desafio 1/Controllers/BaseController.php create mode 100644 algoritmos/Desafio 1/Controllers/Home.php create mode 100644 algoritmos/Desafio 1/Controllers/Itens.php create mode 100644 algoritmos/Desafio 1/Controllers/Vendas.php create mode 100644 algoritmos/Desafio 1/Controllers/VendasItens.php create mode 100644 algoritmos/Desafio 1/Database/Migrations/2022-06-12-143952_GeraTabelaItens.php create mode 100644 algoritmos/Desafio 1/Database/Migrations/2022-06-12-144512_GeraTabelaVendas.php create mode 100644 algoritmos/Desafio 1/Database/Migrations/2022-06-12-144523_GeraTabelaItensVendas.php create mode 100644 algoritmos/Desafio 1/Entities/Item.php create mode 100644 algoritmos/Desafio 1/Entities/Venda.php create mode 100644 algoritmos/Desafio 1/Language/en/Validation.php create mode 100644 algoritmos/Desafio 1/Models/ItemModel.php create mode 100644 algoritmos/Desafio 1/Models/VendaItemModel.php create mode 100644 algoritmos/Desafio 1/Models/VendaModel.php create mode 100644 algoritmos/Desafio 1/Traits/VendaTrait.php create mode 100644 algoritmos/Desafio 1/Views/Home/index.php create mode 100644 algoritmos/Desafio 1/Views/Itens/_form.php create mode 100644 algoritmos/Desafio 1/Views/Itens/criar.php create mode 100644 algoritmos/Desafio 1/Views/Itens/editar.php create mode 100644 algoritmos/Desafio 1/Views/Itens/excluir.php create mode 100644 algoritmos/Desafio 1/Views/Itens/exibir.php create mode 100644 algoritmos/Desafio 1/Views/Itens/index.php create mode 100644 algoritmos/Desafio 1/Views/Layouts/_mensagens.php create mode 100644 algoritmos/Desafio 1/Views/Layouts/principal.php create mode 100644 algoritmos/Desafio 1/Views/Vendas/_form.php create mode 100644 algoritmos/Desafio 1/Views/Vendas/criar.php create mode 100644 algoritmos/Desafio 1/Views/Vendas/detalhes.php create mode 100644 algoritmos/Desafio 1/Views/Vendas/editar.php create mode 100644 algoritmos/Desafio 1/Views/Vendas/encerrar.php create mode 100644 algoritmos/Desafio 1/Views/Vendas/excluir.php create mode 100644 algoritmos/Desafio 1/Views/Vendas/index.php create mode 100644 algoritmos/Desafio 1/Views/Vendas/itens.php create mode 100644 algoritmos/Desafio 1/Views/errors/cli/error_404.php create mode 100644 algoritmos/Desafio 1/Views/errors/cli/error_exception.php create mode 100644 algoritmos/Desafio 1/Views/errors/cli/production.php create mode 100644 algoritmos/Desafio 1/Views/errors/html/debug.css create mode 100644 algoritmos/Desafio 1/Views/errors/html/debug.js create mode 100644 algoritmos/Desafio 1/Views/errors/html/error_404.php create mode 100644 algoritmos/Desafio 1/Views/errors/html/error_exception.php create mode 100644 algoritmos/Desafio 1/Views/errors/html/production.php create mode 100644 algoritmos/Desafio 1/Views/welcome_message.php create mode 100644 algoritmos/Desafio 1/index.html diff --git a/algoritmos/Desafio 1/Common.php b/algoritmos/Desafio 1/Common.php new file mode 100644 index 0000000..a74d46d --- /dev/null +++ b/algoritmos/Desafio 1/Common.php @@ -0,0 +1,15 @@ + SYSTEMPATH, + * 'App' => APPPATH + * ]; + *``` + * + * @var array + */ + public $psr4 = [ + APP_NAMESPACE => APPPATH, // For custom app namespace + 'Config' => APPPATH . 'Config', + ]; + + /** + * ------------------------------------------------------------------- + * Class Map + * ------------------------------------------------------------------- + * The class map provides a map of class names and their exact + * location on the drive. Classes loaded in this manner will have + * slightly faster performance because they will not have to be + * searched for within one or more directories as they would if they + * were being autoloaded through a namespace. + * + * Prototype: + *``` + * $classmap = [ + * 'MyClass' => '/path/to/class/file.php' + * ]; + *``` + * + * @var array + */ + public $classmap = []; + + /** + * ------------------------------------------------------------------- + * Files + * ------------------------------------------------------------------- + * The files array provides a list of paths to __non-class__ files + * that will be autoloaded. This can be useful for bootstrap operations + * or for loading functions. + * + * Prototype: + * ``` + * $files = [ + * '/path/to/my/file.php', + * ]; + * ``` + * + * @var array + */ + public $files = []; +} diff --git a/algoritmos/Desafio 1/Config/Boot/development.php b/algoritmos/Desafio 1/Config/Boot/development.php new file mode 100644 index 0000000..05a8612 --- /dev/null +++ b/algoritmos/Desafio 1/Config/Boot/development.php @@ -0,0 +1,32 @@ + + */ + public $file = [ + 'storePath' => WRITEPATH . 'cache/', + 'mode' => 0640, + ]; + + /** + * ------------------------------------------------------------------------- + * Memcached settings + * ------------------------------------------------------------------------- + * Your Memcached servers can be specified below, if you are using + * the Memcached drivers. + * + * @see https://codeigniter.com/user_guide/libraries/caching.html#memcached + * + * @var array + */ + public $memcached = [ + 'host' => '127.0.0.1', + 'port' => 11211, + 'weight' => 1, + 'raw' => false, + ]; + + /** + * ------------------------------------------------------------------------- + * Redis settings + * ------------------------------------------------------------------------- + * Your Redis server can be specified below, if you are using + * the Redis or Predis drivers. + * + * @var array + */ + public $redis = [ + 'host' => '127.0.0.1', + 'password' => null, + 'port' => 6379, + 'timeout' => 0, + 'database' => 0, + ]; + + /** + * -------------------------------------------------------------------------- + * Available Cache Handlers + * -------------------------------------------------------------------------- + * + * This is an array of cache engine alias' and class names. Only engines + * that are listed here are allowed to be used. + * + * @var array + */ + public $validHandlers = [ + 'dummy' => DummyHandler::class, + 'file' => FileHandler::class, + 'memcached' => MemcachedHandler::class, + 'predis' => PredisHandler::class, + 'redis' => RedisHandler::class, + 'wincache' => WincacheHandler::class, + ]; +} diff --git a/algoritmos/Desafio 1/Config/Constants.php b/algoritmos/Desafio 1/Config/Constants.php new file mode 100644 index 0000000..0c1b534 --- /dev/null +++ b/algoritmos/Desafio 1/Config/Constants.php @@ -0,0 +1,94 @@ +` element. + * + * Will default to self if not overridden + * + * @var string|string[]|null + */ + public $baseURI; + + /** + * Lists the URLs for workers and embedded frame contents + * + * @var string|string[] + */ + public $childSrc = 'self'; + + /** + * Limits the origins that you can connect to (via XHR, + * WebSockets, and EventSource). + * + * @var string|string[] + */ + public $connectSrc = 'self'; + + /** + * Specifies the origins that can serve web fonts. + * + * @var string|string[] + */ + public $fontSrc; + + /** + * Lists valid endpoints for submission from `
` tags. + * + * @var string|string[] + */ + public $formAction = 'self'; + + /** + * Specifies the sources that can embed the current page. + * This directive applies to ``, `