Student, programmer, pretty cool guy

BS/MS WPI CS Class of 2021

EDG Intern Summer 2020

Solved

Speed of car travelling x meters in y seconds

What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

4 maanden ago

Solved

Matlab Basics II - squares

Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

4 maanden ago

Solved

Matlab Basics II - Max & Index of Max

Write a function that takes a vector x, then returns both the max value in x and its location in the vector for example x ...

4 maanden ago

Solved

Basic commands - amount of inputs

Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

4 maanden ago

Solved

What's size of TV?

Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

4 maanden ago

Solved

Add two numbers

Calculate the sum of two numbers. Example input = [2 3] output = 5

4 maanden ago

Solved

Return 'on' or 'off'

When the input is true, return 'on', otherwise, return 'off'.

4 maanden ago

Solved

Determine the length of a string of characters

Determine the length of a string of characters

4 maanden ago

Solved

Finding perimeter of a rectangle

A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

4 maanden ago

Solved

Is the input divisible by 3?

Return true if the input is divisible by 3 and false if not.

4 maanden ago

Solved

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

4 maanden ago

Solved

Back to basics 10 - Max Float

Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

4 maanden ago

Solved

Back to basics 17 - white space

Covering some basic topics I haven't seen elsewhere on Cody. Remove the trailing white spaces from the input variable

4 maanden ago

Solved

Back to basics 5 - Clipboard

Covering some basic topics I haven't seen elsewhere on Cody. Copy the input string to the clipboard

4 maanden ago

Solved

Back to basics 3 - Temp Directory

Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the path to the system's current temp di...

4 maanden ago

Solved

Back to basics 4 - Search Path

Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the user's portion of the current search...

4 maanden ago

Solved

Area of a Square

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

4 maanden ago

Solved

Is it prime?

Given a number, check whether it is prime or not. If prime output is true, otherwise false.

4 maanden ago

Solved

Is it column vector?

Is it column vector? Check vector for column vector without using iscolumn function.

4 maanden ago

Solved

Back to basics 1 - Saving

Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...

4 maanden ago

Solved

Create a Matrix of Zeros

Given an input x, create a square matrix y of zeros with x rows and x columns.

4 maanden ago

Solved

Pizza!

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

4 maanden ago

Solved

Deleting an element in a matrix

For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

4 maanden ago

Solved

Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.

Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

4 maanden ago