Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Soccer Scores Soccer Scores Write a program that stores the following data about a soccer player in a structure: Player's Name as String .Player's Number
Soccer Scores Soccer Scores Write a program that stores the following data about a soccer player in a structure: Player's Name as String .Player's Number as Short Int (or char) . Points Scored by Player as Short Int The program should keep an array of 20 of these structures. Each element is for a different player on a team. When the program runs it should ask the user to enter the data for each player. It should then show a table that lists each player's number, name, and points scored. The program should also calculate and display the total points earned by the team. The number and name of the player who has earned the most points should also be displayed Input Validation: Do not accept negative values for players' numbers or points scored. Completion of the above specifications is worth 5 points extra credit, want more extra credit? If yes, implement any of the following below (1 point extra credit each) 1. Use pointers for your array of structures with dereferencing (ie. (array name +index) technique) instead of [] operator. 2. Ask the user if they would like to sort array by name, player number or total points scored 3. Write the array of structures to a text file (ask the user to enter a file name for the file to output) 4. Write the array of structures to a binary file (ask the user to enter a file name for the file to output) 5 Write a second progra m to read a texto binary f ie from items #3 or #4, using binary search to find a player by name and output the players information (name, number, and total points) This is due no later than 11:59PM on 615/2018
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started