Yikes Penultimate, that's a whole lot of questions you're posting in such a short time period! As others have mentioned, we need to see your work.
In this case, your question is so undefined that you might as well have just said that you need to write a program that takes inputs. For an introductory programming course, as I assume you're in, you're generally given some problem, a method for solving said problem, and hints for how to solve it. Are you having trouble with the methodology, the implementation, or with the debugging of the program?
HINT: The [ CODE] tag (under advanced edit) could probably come in handy here...