Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

Students also viewed these Databases questions

Question

Make efficient use of your practice time?

Answered: 1 week ago

Question

=+Are they specific or general in nature?

Answered: 1 week ago

Question

=+ What is the nature of the contracts or agreements with unions?

Answered: 1 week ago

Question

=+What is the procedure for labor relations in the workplace?

Answered: 1 week ago