Community Profile

##### Last seen: 6 days ago
73 total contributions since 2020

View details...

Contributions in
View by

Solved

find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

6 days ago

Solved

Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

6 days ago

Solved

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

6 days ago

Solved

Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

10 days ago

Solved

Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

10 days ago

Solved

square number
Square a number

10 days ago

Solved

Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

10 days ago

Solved

multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

10 days ago

Solved

only input
Return the output without writing any code into the function.

10 days ago

Solved

Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

10 days ago

Solved

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

10 days ago

Solved

Solve the equation. Find X.

10 days ago

Solved

Multiply pi
Multiply pi with x!

12 days ago

Solved

y equals x divided by 2
function y = x/2

12 days ago

Solved

Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

12 days ago

Solved

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

12 days ago

Solved

Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

12 days ago

Solved

Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

12 days ago

Solved

Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

12 days ago

Solved

How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

12 days ago

Solved

raise 1/3
Raise a number to 1/3 power.

12 days ago

Solved

Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

12 days ago

Solved

Negative Infinity
Round the given array a towards negative infinity.

12 days ago

Solved

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

12 days ago

Solved

Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

1 month ago

Solved

Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

1 month ago

Solved

Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

1 month ago

Solved

Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.&#8519;^(-&lambda;t)*cos(2πft)| where |A|, |&lambda;|, and |f| ...

1 month ago

Solved

Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

1 month ago

Solved

Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

1 month ago