diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4f9d4a1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +# Environment variables, never commit this file +.env + +*.class \ No newline at end of file diff --git a/README.md b/README.md index 3950dbd..1dc4f86 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,13 @@ -# sandbox -Sandbox +# Bugs sandbox -## "Hoje" -+ Chris says hello. +

+ image +

+Bugs podem acontecer a qualquer momento. Portanto, precisamos treinar para saber como organizar e resolvê-los da melhor forma. O GitHub é a ferramenta ideal para organizarmos todas as issues de um projeto, informando todos os bugs que precisam ser resolvidos, além de novas funcionalidades e possíveis alterações. Com o issue tracker, conseguimos dividir as responsabilidades por cada membro do nosso time. +Este Sandbox serve como um repositório de treinamento que iniciou com códigos em diferentes linguagens contendo alguns bugs que podem ser corrigidos. Foram criadas algumas issues relacionadas à estes bugs e outras correções e estas issues serão divididas entre os membros da turma para uma atividade prática. + +As issues existentes não precisam ser as únicas. Podem haver outras melhorias que os alunos podem encontrar e criar novas issues relacionadas a estas melhorias. É um repositório livre para treinarmos nossos conhecimentos. + +Have fun! diff --git a/assets/bugs.png b/assets/bugs.png new file mode 100644 index 0000000..de5a590 Binary files /dev/null and b/assets/bugs.png differ diff --git a/java/Calculator.java b/java/Calculator.java new file mode 100644 index 0000000..40a8f08 --- /dev/null +++ b/java/Calculator.java @@ -0,0 +1,26 @@ +public class Calculator { + public static int sum(int a, int b){ + return a + b; + } + + public static int sub(int a, int b){ + return a - b; + } + + public static int div(int a, int b){ + return a / b; + } + + public static int mul(int a, int b){ + return a * b; + } + + public static void main(String[] args) { + System.out.println(sum(10, 2)); + System.out.println(sub(0, 2)); + System.out.println(sub(2, 10)); + System.out.println(div(10, 2)); + System.out.println(div(10, 0)); + System.out.println(mul(10, 2)); + } +} \ No newline at end of file diff --git a/javascript/Calculator.js b/javascript/Calculator.js new file mode 100644 index 0000000..9a6d399 --- /dev/null +++ b/javascript/Calculator.js @@ -0,0 +1,22 @@ +function sum(a, b) { + return a + b; +} + +function sub(a, b) { + return a - b; +} + +function mul(a, b) { + return a * b; +} + +function div(a, b) { + return a / b; +} + +console.log(sum(10, 2)); +console.log(sub(0, 2)); +console.log(sub(2, 10)); +console.log(div(10, 2)); +console.log(div(10, 0)); +console.log(mul(10, 2)); diff --git a/php/Calculator.php b/php/Calculator.php new file mode 100644 index 0000000..163e078 --- /dev/null +++ b/php/Calculator.php @@ -0,0 +1,21 @@ + \ No newline at end of file diff --git a/python/Calculator.py b/python/Calculator.py new file mode 100644 index 0000000..40b5ad4 --- /dev/null +++ b/python/Calculator.py @@ -0,0 +1,21 @@ +def sum(a, b): + return a + b + +def sub(a, b): + return a - b + +def mul(a, b): + return a * b + +def div(a, b): + return a / b + +def main(): + print(sum(10, 2)) + print(sub(0, 2)) + print(sub(2, 10)) + print(div(10, 2)) + print(div(10, 0)) + print(mul(10, 2)) + +main() \ No newline at end of file