A résolu

Find distance travelled by an object starting from rest in time 't' and linear acceleration 'a' = 3t
Find distance travelled by an object starting from rest in time 't' with linear acceleration a = 3t. You are given time t as an ...

4 mois il y a

A résolu

Draw 'W'
For any given n, return a matrix of height n and width 4n-3 containing a W of ones. Example: n=2 ans= [1 0 1 0 1 0 1 0 1 0...

4 mois il y a

A résolu

Vector slither sort!
Sort a numeric vector in the following format: [largest value, smallest value, second largest value, second smallest value, etc...

4 mois il y a

A résolu

determine skid distance of car
Determine the distance a car skids to a stop given initial velocity (v) and time (t).

4 mois il y a

A résolu

Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...

4 mois il y a

A résolu

Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, , (also known as ). For exampl...

4 mois il y a

A résolu

Determine if x is a combination of m and n
Given positive integers x, m, and n, determine if x can be written as x = am + bn for any (non-negative) integers a and b. Your ...

4 mois il y a

A résolu

The matrix grades contains raw grades for 7 students who took your course. Each row represents a different student. The first 7 ...

4 mois il y a

A résolu

Calculate the mean of each half of a matrix
Given a matrix with an even number of columns, n, return a 1-by-2 row vector where the first element is the mean of all the elem...

4 mois il y a

A résolu

Create an arrow matrix
An arrow matrix is a square matrix that contains ones on the diagonal, the last column, and last row. ...

4 mois il y a

A résolu

Simpson's Paradox - Calculate correlation coefficients for groups of data
Simpson's Paradox is a statistical phenomenon where groups of data can have a characteristic while the whole data set together h...

4 mois il y a

A résolu

Dog Statistics
The vectors ht and wt contains the heights and weights of 20 golden retrievers. In some cases, it was not possible to make both ...

4 mois il y a

A résolu

Find the minimum of the column-maximums of a matrix
Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum...

4 mois il y a

A résolu

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

4 mois il y a

A résolu

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

4 mois il y a

A résolu

Basic Mathematics 3
It was announced during a Robotics Competition kick off that two of the trickiest scoring objects are: soup cans, and beach ball...

4 mois il y a

A résolu

Function substitution (1)
Evaluate the function for the given values of the variables N and t

5 mois il y a

A résolu

Array Concatenation (2)
Given two matrices, a and b, concatenate the two matrices vertically, i.e., the number of rows of the result should be equal to ...

5 mois il y a

A résolu

Array Concatenation (1)
Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...

5 mois il y a

A résolu

Find the remainder - 02
Given an array of integers, find the remainder when the summation of all the elements is divided by N

5 mois il y a

A résolu

Fun with matrix
Design a sample matrix as given in the test cases

5 mois il y a

A résolu

Find the force required to support a lever
Students are designing a robot that will lift a block to the equilibrium position for transport to the scoring area. They have d...

5 mois il y a

A résolu

Coefficient of Kinetic friction
A robot exerts a F1 lb. force horizontally on a W lb. crate across a concrete floor at a constant speed. What is the coefficien...

5 mois il y a

A résolu

Calculate the acceleration of a crate
What is the acceleration of a crate if two robots apply F1 N and F2 N of force respectively and a frictional force of FR N acts ...

5 mois il y a

A résolu

Coefficient of Sliding Friction
A weight of W1 N rests on a horizontal plane. The plane is gradually inclined until at an angle θ = Ao with the horizontal, the ...

5 mois il y a

A résolu

Coefficient of Static friction
The coefficient of static friction between two surfaces is u. What force must be used to move a W lb. crate on a horizontal sur...

5 mois il y a

A résolu

Linear Motion 1
An object travels N feet in the first second of travel, N feet again during the second second of travel and N feet again during ...

5 mois il y a

A résolu

Linear Motion 2
During testing in the desert, a remotely operated vehicle travels D kilometers over rough terrain. The testing takes place over...

5 mois il y a

A résolu

Linear Motion 3
Suppose a robot is moving in a straight line and steadily increases its speed. It moves from v1 ft/s to v1+2 ft/s in the first ...

5 mois il y a

A résolu

Linear Motion 4
A robot accelerates at a rate of A ft/s2. Assuming the robot starts from rest how much time is required to reach an object loca...

5 mois il y a