/ Published in: C++
Reads in a comma separated text file of names and computes the total name score of all the names in the file.
For example, when the list is sorted into alphabetical order, COLIN, which is worth 3 + 15 + 12 + 9 + 14 = 53, is the 938th name in the list. So, COLIN would obtain a score of 938 × 53 = 49714.
Doing this for all the names in the text file and summing the scores is the objective of this code.
For example, when the list is sorted into alphabetical order, COLIN, which is worth 3 + 15 + 12 + 9 + 14 = 53, is the 938th name in the list. So, COLIN would obtain a score of 938 × 53 = 49714.
Doing this for all the names in the text file and summing the scores is the objective of this code.