I'm trying to practice for my coding quiz when I face with this problem. I have no idea how to code this so can somebody please help me out? Details below.
Format: The first line contains the number of records, N (1 ≤ N ≤ 200). Each of the following N lines represents a record of the photocopying machine. The fee for each copy is 20 cents. In each line, the first 15 characters represent a student's name in capital letters. The next two characters represent the number of copies made. You should note that there is a space before a 1-digit number.
I'm stuck with the storing of names and outputting the names. Please help. Thanks a lot!
Sorry but there should be spaces after names, the editor won't let me enter spaces.
For Mary, there should be 11 spaces after in the input session.
For Jonathan, 7 spaces after in the input session.