Perimeter of a square

The perimeter of a square is four times the length of one side. Write an expression for this quantity given side s.

Perimeter of a rectangle

The perimeter of a rectangle is two times its width plus its height. Write an expression for this quantity given width w and height h.

Area of a square

The area of a square is the square of the length of one side. Write an expression for this area given side s.

Area of a rectangle

The area of a rectangle is its width times its height. Write an expression for this area given width w and height h.

Area of a triangle

The area of a triangle is half the base time the height. Write an expression for this area given base b and height h.

Area of a trapezoid

The area of a trapezoid is half the sum of the bases times the height. Write an expression for this area given bases b1 and b2 and height h.

Area of a circle

The area of a circle is π times the square of the circle’s radius. Write an expression for this area given radius r.. You can use Math.PI to get a good approximation of π.

Circumference of a circle

The circumference of a circle is 2πr. Write an expression for this quantity given radius r. You can use Math.PI to get a good approximation of π.

The curved surface area of a cylinder

The curved surface area of a cylinder (i.e. the outside excluding the top and bottom) is the circumference of its base circle times its height. Write an expression for this area given a base radius of r and height h. You can use Math.PI to get a good approximation of π.

Total surface area of a cylinder

The total surface area of a cylinder (the curved surface area plus the top and bottom) is sum of the curved surface area plus two times the area of the top and bottom circles. Write an expression for this area given a base radius of r and height h. You can use Math.PI to get a good approximation of π.

Volume of a Cylinder

The volume of a circle is the area of the base circle times the height. Write an expression for this volume given a base radius of r and height h. You can use Math.PI to get a good approximation of π.

The curved surface area of a cone from slant height

The curved surface area of a cone (i.e. the outside excluding the circular base) is π times the radius of the base times the slant height. Write an expression for this area given base radius r and slant height s. You can use Math.PI to get a good approximation of π.

Total surface area of a cone from slant height

The total surface area of a cone is its curved surface area plus the area of its circular base. Write an expression for this area given base radius r and slant height s. You can use Math.PI to get a good approximation of π.

Total surface area of a cone from height

The total surface area of a cone can also be computed from its base radius and height by computing its slant height as the square root of the sum of the base radius squared and the height squared. Write an expression for this area computed this way given base radius r and height h. You can use Math.PI to get a good approximation of π. And the function Math.sqrt() computes the square root of its arguments, e.g. Math.sqrt(2) => 1.4142135623730951.

Volume of a cone

The volume of cone is the area of its circular base time a third of its height. Write an expression for this volume given base radius r and height h. You can use Math.PI to get a good approximation of π.

Surface area of a sphere

The surface area of a sphere is four times the area of a circle with the same radius as the sphere. Write an expression for this volume given radius r. You can use Math.PI to get a good approximation of π.

Volume of sphere

The volume of a sphere is 4/3 times π times the radius cubed. Write an expression for this volume given radius r.. You can use Math.PI to get a good approximation of π.

Midpoint of line

Write an expression that, given two points on a line, a and b, represented as numbers (imagine mile makers on a road or something), evaluates to the midpoint between them. For instance if a is 6 and b is 10, the midpoint is 8. You can assume that a is not greater than b

Length of hypotenuse

If you remember the Pythagorean theorem, you know that the length of the hypotenuse of a right triangle is the square root of the sum of the squares of the two other sides. Write an expression for the length of a hypotenuse of a triangle with sides a and b. (Math.sqrt() computes the square root of its arguments, e.g. Math.sqrt(2) => 1.4142135623730951.)