This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pthread.h> | |
#include <stdio.h> | |
void * produtoEscalar(void *arg) { | |
// Cria um inteiro i para iterar no laço de repetição e uma variável thread tarefa para receber o produto escalar dos vetores | |
int i, thread_tarefa = 0; | |
// A variável inicio recebe o produto do argumento passado na função pela divisão do tamanho do vetor pelo número de threads | |
int inicio ((int)arg) * (tamanho_do_vetor / numero_threads); | |
// A variável fim recebe a soma da variável início com a divisão do tamanho do vetor pelo número de threads | |
int fim = inicio + tamanho_do_vetor / numero_threads; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Construção do Modelo Conceitual | |
Esta seção apresenta uma síntese do framework de GAP, que combina diferentes conceitos das teorias ágeis e do modelo tradicional de gerenciamento de projetos. O framework apresenta o processo de gerenciamento de projetos em seis etapas principais. As seis etapas são: (1) Desenvolver o Termo de Abertura do Projeto; (2) Desenvolver o Plano de Gerenciamento de Fases e Entregáveis; (3) Definir as Fases e Iterações; (4) Definir Atividades Semanais; (5) Concluir Fase; (6) Encerrar Projeto; Cada etapa representa um ciclo iterativo de desenvolvimento podendo ter quantas iterações forem necessárias para satisfazer os requisitos de cada fase e de cada entregável. O ciclo de desenvolvimento é relacionado com os métodos ágeis do *Scrum* (Schwaber, 2004), os quais a equipe do projeto divide os entregáveis do *product backlog* em tarefas ou pequenos entregáveis, e prioriza e define a ordem do desenvolvimento durante uma reunião de planejamento iterativo. | |
#### Desenvolver o Termo de Abe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class Exercicio10{ | |
public static void main(String[] args) { | |
// Declaração de variáveis | |
Scanner input = new Scanner(System.in); | |
int[][] matriz = new int[5][7]; | |
int posicaoLinha = 0; | |
int posicaoColuna = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class Exercicio9 { | |
public static void main(String[] args) { | |
// Entrada dos dados | |
Scanner input = new Scanner(System.in); | |
System.out.print("Informe o numero de linhas da matriz: "); | |
int linhas = input.nextInt(); | |
System.out.print("Informe o numero de colunas da matriz: "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import java.util.Arrays; | |
public class Exercicio8 { | |
public static void main(String[] args) { | |
int[] vetor = new int[9]; | |
int[][] matriz = new int[3][3]; | |
Scanner input = new Scanner(System.in); | |
int count = 0; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.Scanner; | |
public class Exercicio7 { | |
public static void main(String[] args) { | |
int[] vetor = new int[9]; | |
Scanner input = new Scanner(System.in); | |
for (int i = 0; vetor.length > i ; i++) { | |
System.out.printf("Insira o %d elemento da lista: ", i+1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.lang.Math; | |
public class Exercicio6 { | |
public static void main(String[] args) { | |
// Entrada de dados | |
double vetor[] = new double[50]; | |
vetor[0] = 100; | |
vetor[49] = 100; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Exercicio5 { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
System.out.println("Informe a area total do terreno em metros quadrados: "); | |
double areaTotal = input.nextFloat(); | |
System.out.println("Informe a area construida do terreno em metros quadrados: "); | |
double areaConstruída = input.nextFloat(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.JOptionPane; | |
import java.lang.Math; | |
import java.text.DecimalFormat; | |
public class Exercicio4 { | |
public static void main(String[] args) { | |
// Entrada de Dados | |
double altura = Double.parseDouble (JOptionPane.showInputDialog("Informe sua altura em metros:")); | |
double peso = Double.parseDouble (JOptionPane.showInputDialog("Informe seu peso em kg:")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import java.io.IOException; | |
public class Exercicio3 { | |
public static void main(String[] args) throws IOException { | |
// Entrada de dados e declaração de variáveis | |
double resultado = 0; | |
Scanner input = new Scanner(System.in); | |
System.out.println("---------Calculadora---------"); |
NewerOlder