This file contains hidden or 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
| group: listaAlgebra2 | |
| fornecedor = { | |
| nome_fornecedor:string, condicao:string | |
| Canetalandia, I | |
| Macropel, A | |
| Papelandia, A | |
| "Rei do papel", I | |
| } |
This file contains hidden or 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
| group: lista_algrelax_3 | |
| ambulatorio = { | |
| numero_ambulatorio:number, andar:number, capacidade:number | |
| 1, 1, 40 | |
| 2, 1, 50 | |
| 3, 2, 20 | |
| 4, 3, 30 | |
| 5, 4, 25 |
This file contains hidden or 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
| 1. Escreva uma declaração de um campo privado chamado biblioteca que possa armazenar um ArrayList. | |
| Os elementos do ArrayList são do tipo Livro. | |
| R: private ArrayList<Livro> biblioteca; | |
| 2. Se uma coleção armazenar dez objetos, que valor seria retornado a partir de uma chamada ao seu método size? | |
| R: 10 | |
| 3. Escreva uma chamada de método utilizando get para retornar o quinto objeto armazenado em uma coleção chamada itens. | |
| R: itens.get(4); |
This file contains hidden or 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
| 1. Escreva uma declaração para uma variável de array chamada people, utilizada para referenciar um array de objetos Person. | |
| R: Person[] people; | |
| 2. Escreva uma declaração para uma variával de array chamada vacant, utilizada para referenciar um array de valores Boolean. | |
| R: boolean[] vacant; | |
| 3. Qual é o problema com as declarações a seguir? Corrija-as: | |
| []int counts; -> int[] counts; | |
| boolean[5000] occupied; -> boolean[] occupied; |
This file contains hidden or 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
| -- 1 Que modelos de PC têm uma velocidade (speed) de pelo menos 3.00? | |
| -- π model (σ speed ≥ 3 (PC)) | |
| -- 2 Que fabricantes (maker) produzem laptops com um HD de pelo menos 100GB? | |
| -- π maker (σ hd ≥ 100 (Laptop ⨝ Product)) | |
| -- 3 Encontre o modelo e o preço de todos os produtos feitos pelo fabricante B. | |
| -- ProdutosB = πmodel (σmaker='B' (Product)) | |
| -- PCsB = πmodel,price (PC ⨝ ProdutosB) | |
| -- LaptopsB = πmodel,price (Laptop ⨝ ProdutosB) |
This file contains hidden or 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
| group:Pizzaria | |
| Pessoa = { | |
| nome:string, idade:number, sexo:string | |
| 'Amy' , 16 , 'feminino' | |
| 'Ben' , 21 , 'masculino' | |
| 'Cal' , 33 , 'masculino' | |
| 'Dan' , 13 , 'masculino' | |
| 'Eli' , 45 , 'masculino' | |
| 'Fay' , 21 , 'feminino' |
This file contains hidden or 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
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package diariodeclasse; | |
| import java.util.HashMap; | |
| import java.util.ArrayList; |
This file contains hidden or 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
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package diariodeclasse; | |
| import java.util.ArrayList; | |
| import java.util.Scanner; |
This file contains hidden or 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 <stdio.h> | |
| #define MAX 20 | |
| /** | |
| * Algorítmo first-fit didático | |
| * escrito em C ANSI | |
| */ | |
| /* tipo para o obloco de memória */ |
This file contains hidden or 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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <ctype.h> | |
| #define clear() puts("\x1B[2J") | |
| #define MAX_AGENDA 50 | |
| typedef struct { | |
| char nome[50]; | |
| int idade; |