Question: c++ how to read data from a txt file that looks like this player1,90,78,82,76,92 player2,67,87,34,90,100 player3,80,81,82,83,84 player4,56,76,98,45,13 player5,89,100,78,100,99 and take the numbers and find the

c++

how to read data from a txt file that looks like this

player1,90,78,82,76,92

player2,67,87,34,90,100

player3,80,81,82,83,84

player4,56,76,98,45,13

player5,89,100,78,100,99

and take the numbers and find the average score for each player and rank their average on a tier scale.

(all scores out of 100)

90 - 100% = S tier

80-89% = A tier

70-79% = B tier

60-69% = D tier

50-59% = F tier

output: player1 ended with an A tier (so on so forth)...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!