Without any descriptions, we have NO idea what I/O is what and can provide you no meaningful help.
Documenting your program is a VERY good habit to get into now, while you're learning. Document, document, document!! And NEVER assume that you'll go back at the end of the project to catch up the documentation - because, no matter how good your intentions are, it'll never happen. You'll always be off to the next project. Then in a couple of years, you'll get called back to troubleshoot something in your code and not even you will know what you wrote....
Been there, done that, got the t-shirt.
Disclaimer: He updated the image while I was typing my reply.