Write a program that will read a file that has the following format (each item i
ID: 3540710 • Letter: W
Question
Write a program that will read a file that has the following format (each item is on a separate line to make reading easier for you)
Player First Name
Player Last Name
Screen Name
High Score
Number of Lives Left
Mahmoud
Quweider
GalagaMaster
2345
3
Maria
Arteaga
PowerNinja
5690
2
Albino
Salazar
Chaos
4560
4
Etc.
After creating the file with
8 players, read the file into three arrays.
1. First Array should be a string array and will hold the first name of the players
2. Second Array should be a string array and will hold the Last name of the players
3. Third Array should be a string array of screen names
4. Fourth Array will read the scores into an integer Scores array.
5. Fifth Array will read the scores into an integer Scores array.
After reading the arrays, you will create the following functions and test them in the main program.
1. Function to find the first alphabetic name in the first name array
2. Function to find the last alphabetic name in the first name array
3. Function to find the person with the highest score
a. Must print his/her first name, last name, screen name, and score
4. Function to find the person with the lowest score
a. Must print his/her first name, last name, screen name, and score
5. Function to find the person with the most lives left
a. Must print his/her first name, last name, screen name, and score
Explanation / Answer
please see here http://pastebin.com/AJUEaaYP
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.