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...
1 year 前
已解决
Calories in a slice of pizza?
The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...
Area of a circle
Given the radius x, y would be the area of a circle.
Pi = 3.1416
1 year 前
已解决
Total resistance of resistors in series
What is the total resistance of a number of resistors in series?
A vector R contains the resistances (in Ohm) of n resistors, w...
1 year 前
已解决
Square a Number
Given an input x, return y, which is equal to the square of x.
1 year 前
已解决
Calculate Resistance
Calculate Resistance R of a linear conductor having resistivity p, length l and area A
Divide by 4
Given the variable x as your input, divide it by four and put the result in y.
1 year 前
已解决
Sum of first n positive integers
Given n, find the sum of first n positive integers
Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these terms is 55