Solved


pressure to dB?
given x ratio of pressure, find corresponding y dB

10 months ago

Solved


Circumscribed circles
Given the lengths of the 3 sides of a triangle, output the radius of the circumscribed circle. Example: [3 4 5] -> 2.5

10 months ago

Solved


letter yes yes & letter no no
Split a string into two strings, wherein the first string has all alphabetic letters and the second string has all the remaining...

10 months ago

Solved


Current through resistor
Three resistors (R2, R3, R4) are connected in parallel as shown in the figure. If this combination is connected in series with ...

10 months ago

Solved


Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

10 months ago

Solved


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

10 months ago

Solved


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

10 months ago

Solved


Kelvin to Celsius
Degrees Celsius = degrees Kelvin - 273.15. Given a temperature in Kelvin, return the equivalent temperature in Celsius.

10 months ago

Solved


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

10 months ago

Solved


Test of Quiz
Answer the questions and write in vector. Only one answer is correct. The founder of fuzzy logic is 1a) D. Golberg 1b)...

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

10 months ago

Solved


Find the volume of cone
Find the volume of cone, when given radius(r) and height(h).

10 months ago

Solved


Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

10 months ago

Solved


Leap Year
According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

10 months ago

Solved


Calculate Reynolds Number
Write a MATLAB function that calculates the Reynolds number for flow over a flat plate: ​ ρ = fluid density (kg/m³) V = veloc...

10 months ago

Solved


Real

10 months ago

Solved


Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

10 months ago

Solved


Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

10 months ago

Solved


Matrix of almost all zeros, except for main diagonal
Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewh...

10 months ago

Solved


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

10 months ago

Solved


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

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

10 months ago

Solved


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

10 months ago

Solved


Add 2 Vectors

10 months ago

Solved


Size

10 months ago

Solved


Transpose of matrix
Transpose of matrix as per test cases

10 months ago

Solved


Compare two strings.
Compare two strings, whether they are equal or not.

10 months ago

Solved


Create tangent function out of sine function only
Please don't use cosine and tangent functions

10 months ago

Solved


kmph to mph converter
Convert the speed in miles/hour to km/hour.

10 months ago

Load more