Skip to content

Program: Soccer team roster (Functions, Structures, Arrays & Files) This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balanced team. (1) Read five pairs of numbers from the file "input.txt": A player's jersey number (0 - 99) and the player's rating (1 - 9). Create a structure…

Notifications You must be signed in to change notification settings

abdullahmujahidali/upgraded-lamp-C-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

upgraded-lamp-C-

Program: Soccer team roster (Functions, Structures, Arrays & Files) This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balanced team. (1) Read five pairs of numbers from the file "input.txt": A player's jersey number (0 - 99) and the player's rating (1 - 9). Create a structure data type to store a single player's information (jersey & rating). Then, in main( ) create an array of 11 structures to hold information for the whole team using the structure. Output the contents of the array (i.e., output the roster). Use a separate variable (playerCount) to keep track of how many players are actually stored in the array. The array may not be full at all times. (3 pts)

About

Program: Soccer team roster (Functions, Structures, Arrays & Files) This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balanced team. (1) Read five pairs of numbers from the file "input.txt": A player's jersey number (0 - 99) and the player's rating (1 - 9). Create a structure…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages