Honestly, you should be emailing your professor about your special case. You should also read through your text to see example functions.

Do you know what a variable is? If not, read your text. Do you know how to store a result into a variable? If not, read your text.

I'll give you a sample function (written in pseudocode, scheme, and Java):

Code:

// This function converts cups to ounces
// Example: cupsToOunces(2) returns 16
function cupsToOunces(integer cups)
// There are 8 ounces to a cup
integer ounces = cups * 8
// Return ounces
return ounces;
end function
; This function converts cups to ounces
; Example: cupsToOunces 2 returns 16
(define (cupsToOunces cups) (* cups 8))
// This function converts cups to ounces
// Example: cupsToOunces(2) returns 16
public static int cupsToOunces(int cups)
{
// There are 8 ounces to a cup
int ounces = cups * 8;
// Return ounces
return ounces;
}

The above example is not one of your a-d problems, but it should give you an idea.

You should write some pseudocode first and then go from there.

-Shane