I'm having a hard time writing the program that would give all the information asked for.

Here's what I have so far. (I used part of another program. What is highlighted, is from the other program. It was just to give me an idea of how I should be doing this.

The program is in Dev C++