# Daniel Pollard

Last seen: 26 jours il y a Actif depuis 2020

Followers: 0   Following: 0

All

#### Feeds

Afficher par

A résolu

Find Logic 19

plus de 2 ans il y a

A résolu

Find the largest number
Find the largest number |x| among 4 numbers given as variables |a|, |b|, |c|, and |d|. Example: Input: a = 4; b = 7; c ...

environ 3 ans il y a

A résolu

Find the Pattern 4

plus de 3 ans il y a

A résolu

Find the Pattern 3

plus de 3 ans il y a

A résolu

Find the Pattern 2

plus de 3 ans il y a

A résolu

Find the Pattern 1

plus de 3 ans il y a

A résolu

Given input in radians, output to degrees

plus de 3 ans il y a

A résolu

Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

plus de 3 ans il y a

A résolu

Calculate the volume of the football

plus de 3 ans il y a

A résolu

Find Logic 3

plus de 3 ans il y a

A résolu

Find Logic 6

plus de 3 ans il y a

A résolu

Find Logic 14

plus de 3 ans il y a

A résolu

Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

plus de 3 ans il y a

A résolu

Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

plus de 3 ans il y a

A résolu

You just measured its surface area, that is the input.

plus de 3 ans il y a

A résolu

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.

plus de 3 ans il y a

A résolu

Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

plus de 3 ans il y a

A résolu

Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

plus de 3 ans il y a

A résolu

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

plus de 3 ans il y a

A résolu

Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

plus de 3 ans il y a

A résolu

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

plus de 3 ans il y a

A résolu

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

plus de 3 ans il y a

A résolu

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

plus de 3 ans il y a

A résolu

Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

plus de 3 ans il y a

A résolu

Find Logic 1

plus de 3 ans il y a

A résolu

Given a and b, return the sum a+b in c.

plus de 3 ans il y a

A résolu

Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

plus de 3 ans il y a

A résolu

Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

plus de 3 ans il y a

A résolu

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus de 3 ans il y a