Question: Now your job is to write a Kotlin program to maintain the team roster. First, create a text file that will contain a simple roster.
Now your job is to write a Kotlin program to maintain the team roster. First, create a text file that will contain a simple roster. Each line of the file list player's name followed by his salary, separated by comma, for example Kevin Durant, 30000000 The number of rows in the file will correspond to the number of players on the roster (NBA teams can have at most 15 players on active roster) Your program should read the file and create two lists, one containing player's names and one containing player's salaries. the do some operations on lists to simulate some trades, so pleyers will be added and/or removed from the roster. After each operations display the current roster of the team (and display some messages describing what is happening to the team). Finally, compute and display the total payroll for the team.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
