What part do you need help with? Are you getting incorrect outputs? If so, what is wrong about them?

One thing I can see right away is that you're not looping your program. My recommendation is to...