I am confused as to how one would input this block from a file.
test_ line_ 10 20 30 40 50 60 70
John Doe 40 50 60 70 60 50 30 60 90
Henry Smith 60 70 80 90 100 90
Robert Payne 70 80 90 60 70 60 80 90 90 90
Sam Houston 70 70 80 90 70 80 90 80 70 60
I am supposed to collect the first and last names of each line and then to collect their test scores. The program should take in the first ten numbers in the list, but I have no idea how to do it.
Aucun commentaire:
Enregistrer un commentaire