[Tutor] Need help with function coding.

Danny Yoo dyoo at hashcollision.org
Thu Mar 7 21:41:15 CET 2013


> (a) Write a function which converts from gallons to cups2


Do you know how to write functions?  Can you write a function that
takes a number and returns twice that number, for example?

Show us what you have seen already, and we may be able to start from there.

The question you are asking does not tell us anything useful,
unfortunately.   More specifically, it doesn't tell us where you are
getting confused.  Since we can't just solve the problem for you, the
best thing you can do is to help us see where you are getting stuck.


More information about the Tutor mailing list