Community Profile

# Quan Nguyen Dang

83 total contributions since 2019

View details...

Contributions in
View by

Solved

Create a vector
Create a vector from 0 to n by intervals of 2.

oltre un anno ago

Solved

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

oltre un anno ago

Solved

The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

oltre un anno ago

Solved

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

oltre un anno ago

Solved

Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

oltre un anno ago

Solved

Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements. Example: x = [1 2 ...

oltre un anno ago

Solved

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

oltre un anno ago

Solved

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

oltre un anno ago

Solved

Wrapping the Tower of Pisa
The famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a ci...

oltre un anno ago

Solved

Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

oltre un anno ago

Solved

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!

oltre un anno ago

Solved

Calculate the centroid of a triangle
Info: https://en.wikipedia.org/wiki/Centroid Example Input: x = [0 0 1]; % x-coordinate y = [0 1 0]; % y-coordinat...

oltre un anno ago

Solved

Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...

oltre un anno ago

Solved

Wheat on a chessboard pt 1
If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square and each successi...

oltre un anno ago

Solved

Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

oltre un anno ago

Solved

Calculate square and cube of number
Calculate square and cube of number x

oltre un anno ago

Solved

Minimal cost
A power house, P, is on one bank of a straight river W meters wide, and a factory, F, is on the opposite bank L meters downstr...

oltre un anno ago

Solved

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

oltre un anno ago

Solved

Distance a ball travels after throwing vertically
Calculate the total distance *'d'* (in meters) a ball would travel after *'s'* seconds and starting velocity of *'v'* (in m/s). ...

oltre un anno ago

Solved

Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

oltre un anno 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 ...

oltre un anno ago

Solved

Before attempting this problem, solve version 1: <https://www.mathworks.com/matlabcentral/cody/problems/2510-solving-quadratic-...

oltre un anno ago

Solved

Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

oltre un anno ago

Solved

If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

oltre un anno ago

Solved

Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

oltre un anno ago

Solved

metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

oltre un anno ago

Solved

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

oltre un anno ago

Solved

Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

oltre un anno ago

Solved

Calculate volume of box
Calculate the volume of box,hiven its sides

oltre un anno ago

Solved

square number
Square a number

oltre un anno ago