解決済み

Perimeter of a quadrilateral

There are four cars starting at a point. The first car points north, the second one points east, the third one points south, an...

12ヶ月 前

解決済み

Chicken Race

2 chickens, Pete and Fred, compete in a 100 meter race. Pete runs at a velocity of vp meter/second and Fred is slower, running ...

12ヶ月 前

解決済み

determine amount cookies left

started with 3 cookies and you never ate any how many are left

12ヶ月 前

解決済み

Calculate the answer to life the universe and everything

<https://en.wikipedia.org/wiki/42_(number)>

12ヶ月 前

解決済み

The great 82-year-old

Let's answer the question below; 'I am *x* years old and I have never written programs. If I study from now, will I be able ...

12ヶ月 前

解決済み

Find the distance traveled by a car given velocity and time.

A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

12ヶ月 前

解決済み

Dice face matrix!

This is dice simulator, but instead of making a random die number, you will receive an "pre-rolled" number in and spit out a mat...

12ヶ月 前

解決済み

Find hen's weight.

If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

12ヶ月 前

解決済み

Strange Number Algorithms

Three integer numbers will be provided to you. Write a function to Step1: Multiply first number by 3. Step2: Add 6 with t...

12ヶ月 前

解決済み

Let's see how peculiar we can get

The task is to multiply two numbers. But do it in the most peculiar possible way.

12ヶ月 前

解決済み

Wrapping the Tower of Pisa

The famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a ci...

12ヶ月 前

解決済み

Who has power to do everything in this world?

There is only one person who is older than this universe. He is Indian version of Chuck Norris.

12ヶ月 前

解決済み

What number has this problem?

This problem is added because it is problem number *???* in the "Community" problems section. <http://www.mathworks.de/matlab...

12ヶ月 前

解決済み

Who invented zero?

We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

12ヶ月 前

解決済み

Do you like your boss?

Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

12ヶ月 前

解決済み

The Answer to Life, the Universe, and Everything

A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

12ヶ月 前

解決済み

Who is the smartest MATLAB programmer?

Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

12ヶ月 前

解決済み

Number of Horns on a unicorn!

Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

12ヶ月 前

解決済み

Bottles of beer

Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

12ヶ月 前

解決済み

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

12ヶ月 前

解決済み

Distance walked 1D

Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

12ヶ月 前

解決済み

Reverse the vector

Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

12ヶ月 前

解決済み

The Hitchhiker's Guide to MATLAB

Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

12ヶ月 前

解決済み

Simple equation: Annual salary

Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

12ヶ月 前

解決済み

Weighted average

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

12ヶ月 前