Resuelto


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

casi 9 años hace

Resuelto


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

casi 9 años hace

Resuelto


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

casi 9 años hace

Resuelto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

casi 9 años hace

Resuelto


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

casi 9 años hace

Resuelto


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

casi 9 años hace

Resuelto


Add two numbers
Given a and b, return the sum a+b in c.

casi 9 años hace

Resuelto


Isothermal Expansion
Given the initial pressure and volume of an ideal gas, calculate the new volume, given the new pressure. Hint: <https://en.wi...

casi 9 años hace

Resuelto


Area of square
Find the area of a square whose diagonal length is given as x.

casi 9 años hace

Resuelto


Area of a circle
Find the value for area of the circle if diameter is given

casi 9 años hace

Resuelto


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

casi 9 años hace

Resuelto


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

casi 9 años hace

Resuelto


Box!
Given a box, find the volume of the cube. With each side = a.

casi 9 años hace

Resuelto


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

casi 9 años hace

Resuelto


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

casi 9 años hace

Resuelto


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

casi 9 años hace

Resuelto


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

casi 9 años hace

Resuelto


Your favourite city!
Type your favourite city.

casi 9 años hace

Resuelto


Let's see how peculiar we can get
The task is to multiply two numbers. But do it in the most peculiar possible way.

casi 9 años hace

Resuelto


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.

casi 9 años hace

Resuelto


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

casi 9 años hace

Resuelto


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

casi 9 años hace

Resuelto


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!

casi 9 años hace

Resuelto


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

casi 9 años hace

Resuelto


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

casi 9 años hace

Resuelto


Is my wife right?
Regardless of input, output the string 'yes'.

casi 9 años hace

Resuelto


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

casi 9 años hace

Resuelto


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

casi 9 años hace

Resuelto


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

casi 9 años hace

Cargar más