Gelöst


Ordinary Annuity : Periodic Payment (Present Value)
Theorem : Present Value of an Ordinary Annuity where; P : Present value of all payments a : Periodic payment r : Interest ...

fast 4 Jahre vor

Gelöst


Jump Search - 02
Find the number of leaps you need to take to find the 'first occurrence' of an element in an array using the jump search algorit...

fast 4 Jahre vor

Gelöst


Ordinary Annuity : Number of Payments (Present Value)
Theorem : Present Value of an Ordinary Annuity where; P : Present value of all payments a : Periodic payment r : Interest ...

fast 4 Jahre vor

Gelöst


Return the middle element of an NxN square matrix where N is odd
Let's say you are given an NxN square matrix where N is always going to be an odd number: x = [ 1 2 3 4 5 6 7 8 ...

fast 4 Jahre vor

Gelöst


Pay up
You live in a world where arbitrary denominations of currency exist. You owe your friend a sum of money denoted by s. However, i...

fast 4 Jahre vor

Gelöst


Jump Search - 01
Find the number of leaps you need to take to find an element in an array using the jump search algorithm. For example, a=[ 2,...

fast 4 Jahre vor

Gelöst


sinus de pulsation a
Ecrire une fonction sinat qui prend en entrée un vecteur t (de valeurs croissantes) et renvoie un vecteur y de de même dimensi...

fast 4 Jahre vor

Gelöst


Définir une fonction creneau
Definr une fonction "creneau" qui prend en entrée un vecteur et renvoie la valeur 1 pour chaque élément positif du vecteur et...

fast 4 Jahre vor

Gelöst


Easy Sequences 72: Complete Graph
In Graph Theory, we say a graph is a Complete Graph, if all of its nodes are connected to evey other nodes in the graph. Example...

fast 4 Jahre vor

Gelöst


Magic Matrix
We are all familiar with the concept of magic matrix. In a magic matrix, the summation of all rows, columns and both diagonals...

fast 4 Jahre vor

Gelöst


Dominant Matrix - 01
A matrix is said to be diagonally dominant if for every row of the matrix, the magnitude of the diagonal entry in a row is large...

fast 4 Jahre vor

Gelöst


Loja de tintas
Faça um programa para uma loja de tintas. O programa deverá receber o tamanho em metros quadrados da área a ser pintada. Conside...

fast 4 Jahre vor

Gelöst


Measure the hydraulic conductivity with a constant-head permeameter
A constant-head permeameter is a device for measuring the hydraulic conductivity of a soil sample. In this problem the sample i...

fast 4 Jahre vor

Gelöst


Triangulo Semelhante
Dados dois vetores A = (a1, a2, a3) e B = (b1, b2, b3) sendo referentes a arestas de triangulos. Verifique se os triangulos são ...

fast 4 Jahre vor

Gelöst


Triangulo Retângulo
Dados o tamanho das 3 arestas (A, B, C) de um triângulo, retorne true se o triângulo for um triângulo retângulo. TrianguloRetan...

fast 4 Jahre vor

Gelöst


Tipos de Triangulos
Dados os tamanhos dos lados de um triangulos A, B e C. Retorne qual o tipo do triangulo: 'equilátero', 'escaleno' ou 'isósceles'...

fast 4 Jahre vor

Gelöst


Calculo das raizes com Bhaskara
Dado três valores a, b e c. Calcule as raizes da equação ax² + bx + c = 0 * para raizes reais, deve ser arrendondado em 2 casas...

fast 4 Jahre vor

Gelöst


Converter lista de temperaturas
Dada uma lista de temperaturas em Fahrenheit,retorne um vetor com os valores convertidos para Celcius.

fast 4 Jahre vor

Gelöst


Caracteres Unicos
Dada uma string, verifique se a string é composta de caracteres únicos, ou seja, nenhuma letra se repete. Retorne true ou false;...

fast 4 Jahre vor

Gelöst


Capitalizar String
Dada uma string A, retorne a string com todas as letras maiculas: ex: Capitalizar('hello world') = 'HELLO WORLD';

fast 4 Jahre vor

Gelöst


Determinante Matriz 3x3
Dada uma matriz 3x3, calcule o seu determinante.

fast 4 Jahre vor

Gelöst


Multiplos 7
Escreva um programa que mostre todos os números entre 5 e 100 que são divisíveis por 7, mas não são múltiplos de 5. Os números o...

fast 4 Jahre vor

Gelöst


Tabuada
Dado um inteiro N, retorne um vetor contendo a tabuada de N de 1 a 10; ex: Tabuada(5) = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50...

fast 4 Jahre vor

Gelöst


Juros Simples
Faça uma função que calcule o montagem de um investimento com juros simples que receba como argumentos o capital inicial C, a ta...

fast 4 Jahre vor

Gelöst


Juros Compostos
Faça uma função que receba um capital inicial (C), uma taxa de juros a ser aplicada (i) e um tempo (t) para qual será aplicado o...

fast 4 Jahre vor

Gelöst


Lista Ordenada
Dado um vetor V, verifique se o vetor está ordenado, retorne true ou false. Ordenado([1 2 3 4]) = true;

fast 4 Jahre vor

Gelöst


Conta Consoantes
Dada uma string A, retorne a quantidade de consoantes de A; ContaConsoantes('Hello World') = 7;

fast 4 Jahre vor

Gelöst


Conta Vogais
Dado uma string A, retorne a quantidade de vogais de A; ContaVogais('Hello World') = 3

fast 4 Jahre vor

Gelöst


Número Primo
Dado um número inteiro N, retorne 'primo' se o número for um número primo ou 'não primo' caso contrário. Primo(5) = 'primo'; P...

fast 4 Jahre vor

Gelöst


Imprime N impares
Retorne os N primeiros números impares NImpares(5) = [1 3 5 7 9];

fast 4 Jahre vor

Mehr laden