Risolto


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

9 giorni fa

Risolto


Return area of square
Side of square=input=a Area=output=b

9 giorni fa

Risolto


Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...

9 giorni fa

Risolto


Resistance of a light bulb
The current through two identical light bulbs connected in series is C Amperes. The total voltage across both bulbs is V Volts....

9 giorni fa

Risolto


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

9 giorni fa

Risolto


Potential energy calculation

9 giorni fa

Risolto


Force and Motion 3
Two robots push on a large object in the same direction. One robot pushes with a force of F1 Newtons and the other with a force...

9 giorni fa

Risolto


Force and Motion 2
Two robots are pulling on an object in opposite directions. One robot pulls with a force of F1 Newtons and the other with a forc...

9 giorni fa

Risolto


Laws of motion 6

9 giorni fa

Risolto


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

9 giorni fa

Risolto


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

9 giorni fa

Risolto


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

9 giorni fa

Risolto


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

9 giorni fa

Risolto


Find the max element of the array
Find the max element of the array

9 giorni fa

Risolto


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

9 giorni fa

Risolto


Double all elements in the array
Duplicate all elements in the array

9 giorni fa

Risolto


Draw a '0' in a one matrix!

9 giorni fa

Risolto


Problem Set 2
Make a calculator by the four main operators (op): + - * / And the two numbers (n1, n2). Don't forget to check to divisio...

9 giorni fa

Risolto


Problem Set 1
You will get the vector "v", you should put it's length in a variable called "lngth", then... If it's length from 1 to 5, sz = ...

9 giorni fa

Risolto


NOT
If a not equal to zero, b = true, else, b = false.

9 giorni fa

Risolto


OR
If a greater than zero or c less than 10, b = true, else, b = false.

9 giorni fa

Risolto


AND
If a greater than 0 and n less than 10, b = true, else, b = false. (Checking a should be in one line by AND special sign in MAT...

9 giorni fa

Risolto


Nested If(s)
If a greater than zero, then check, if a = greater that 1 and less than 10, then b = true, else, b = false.

9 giorni fa

Risolto


If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.

9 giorni fa

Risolto


If-Else
If a more than zero, b = true, else, b = false.

9 giorni fa

Risolto


If
If a more than zero, then b = true.

9 giorni fa

Risolto


Estimating Monthly Electricity Cost for a Household Appliance
You recently bought an electric kettle for your kitchen, and you want to estimate how much it costs to run every month. The kett...

9 giorni fa

Risolto


Voltage Divider Calculation
A voltage divider is a simple circuit used to obtain a reduced voltage from a higher voltage source using two resistors in serie...

9 giorni fa

Risolto


LED Current Calculation
In an electrical circuit, the current (III) flowing through an LED is determined using Ohm’s Law: ​​ Where: I is the current ...

9 giorni fa

Risolto


Inductor Energy Storage Calculation
The energy (EEE) stored in an inductor is given by the formula: Where: E is the energy in joules (J) L is the inductance in...

9 giorni fa

Carica altro