Solved


Triangle Coordinates
Given a natural number n, return two -element vectors, x and y, containing the coordinates of a triangular arrangement of points...

mer än ett år ago

Solved


Create block matrix of integers (j+k-1) - Part II
Given m, n, p, and q, create an m-by-n matrix made up of submatrices, each sized p-by-q (if possible - the last row and column o...

mer än ett år ago

Solved


Create block matrix of integers (j+k-1) - Part I
Given m, n, p, and q, create a matrix of m-by-n blocks (submatrices), each sized p-by-q. The elements of the (j,k)th block all h...

mer än ett år ago

Solved


Split Even Number Into Two Primes
Given an even whole number n (> 2), return a 2-element vector of primes, p, such that p(1) + p(2) = n. Fun note: technically it...

mer än ett år ago

Solved


Determine if Input is Oddish or Evenish (Odd/Even Sum of Digits)
Given a positive integer n, determine whether n is "oddish" or "evenish" - that is, whether the sum of the digits of n is odd or...

mer än ett år ago

Solved


Ordinary Annuity : Future Value
Theorem : Future Value of an Ordinary Annuity where; F : Future value A : Periodic payment r : Rate per period n : Numbe...

mer än ett år ago

Solved


Calculate Wind Chill Factor
The NWS Wind Chill Temperature (WCT) index formula for calculating the dangers from winter winds and freezing temperatures: Cal...

mer än ett år ago

Solved


Compound Interest : Compounding Periods
Theorem : Compound Interest where, F : Future value at the end of n periods P : Present value r : Annual nominal rate n :...

mer än ett år ago

Solved


Zero or hero
A number will be given as an input. You can be hero if it's not zero. (Just for fun)

mer än ett år ago

Solved


Identifying teenager
Suppose the age of a person is given. If he/she is a teenage, answer is 'yes'. Otherwise, the answer is 'no'.

mer än ett år ago

Solved


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'...

mer än ett år ago

Solved


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

mer än ett år ago

Solved


Matrizes Multiplicaveis
Dadas duas matrizes M1 e M2, verifique se as matrizes podem ser multiplicadas uma pela outra M1 = [1 2 3; 4 5 6] M2 = [7; 8; 9...

mer än ett år ago

Solved


Remove Repetidos e Ordena
Dado um vetor A, remove todos os valores repetidos deixando apenas 1 valor, e ordene o vetor. RemoveRepetidosEOrdena([1 1 2 3])...

mer än ett år ago

Solved


Maior Primo
Dado um valor inteiro N, qual o maior valor primo <= N MaiorPrimo(5) = 5; MaiorPrimo(10) = 7;

mer än ett år ago

Solved


Número Repetido
Dado um número inteiro N, verifique se o número é composto apenas do mesmo inteiro VerificaRepetido(123) = false; VerificaRepe...

mer än ett år ago

Solved


Distancia Vetores
Dados dois vetores a = (x1, y1) e b = (x2, y2). Calcule a distância entre os vetores e verifique se estão perto (distancia < 10)...

mer än ett år ago

Solved


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...

mer än ett år ago

Solved


Digito das Dezenas
Dado um número inteiro n, retorne qual o digito referente ao digito das dezenas n = 250; digito = DigitoDezena(n); digito = 5...

mer än ett år ago

Solved


Conversor de Segundos
Digite um valor referente ao tempo em segundos. Retorne um valor com a quantidade convertida em dias, horas, minutos e segundos ...

mer än ett år ago

Solved


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...

mer än ett år ago

Solved


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

mer än ett år ago

Solved


Buzz
Dado um número inteiro n, retorne 'buzz' se esse valor for multiplo de 5, ou retorne o valor caso contrario. Buzz(5) = 'buzz'; ...

mer än ett år ago

Solved


Round2 Three Times Fight!
Your function should round the numbers then multyply them by 2 then repeat them three times

mer än ett år ago

Solved


Taylor Series
You can use a Taylor series to approximate common functions. The Taylor series for sin(x) is Using only the first several te...

mer än ett år ago

Solved


Find Logic 15

mer än ett år ago

Solved


Sums of cubes and squares of sums
Given the positive integers 1:n, can you: 1. Compute twice the sum of the cubes of those numbers. 2. Subtract the square...

mer än ett år ago

Solved


Find Logic 4

mer än ett år ago

Solved


Area Conversion 2

mer än ett år ago

Solved


Energy Conversion 1

mer än ett år ago

Load more