Question: Write a C++ code to make a simple program that imports the input file in and gets the results as specified Please follow the instructions
Write a C++ code to make a simple program that imports the input file in and gets the results as specified
Please follow the instructions and paste the code below as the answer with a screenshot of the output to prove it worked.
Input file -> https://www.dropbox.com/s/444jofkchu6ylwrames.txt?dl=0

Scoring Names You will be using the provided names.txt file, text file containing over five-thousand first names, and you will calculate a score for each name. Begin by reading the names from the file and sorting them in alphabetical order. Then, you will compute an alphabetical value for each name where A is 1, Bis 2, C is 3 and so on. The alphabetical value of a name is just the sum of the values of the letters in the name. To compute the name-score for a name, you simply multiply this alphabetical value by its position in the sorted list. 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, the name-score for COLIN would be 938 53 49714. What is the sum total of all the name-scores in the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
