subject

This assignment focuses on the design, implementation, and testing of python programs to process data files using lists and tuples, as described below.
assignment specifications:

1. you will develop a python program to manage information about baseball players. the program will maintain the following information for each player in the data set:

player’s name (string)
team identifier (string)
games played (integer)
at bats (integer)
runs scored (integer)
hits (integer)
doubles (integer)
triples (integer)
homeruns (integer)
2. the program will recognize the following commands:

quit

input filename
team identifier
report n players

the program will be operated interactively: it will prompt the user and accept commands from the keyboard.
if the user enters an invalid command, the program will display an appropriate message and prompt the user to enter another command.
3. the "quit" command will halt execution.
4. the "" command will display information to the user about the commands recognized by the program.
5. the "input" command will be followed by a string representing the name of an input file. the program will discard the current data set stored in memory, and then process the input file as the source for a new data set (open the file, read the file once and store the records, then close the file).
an input file contains zero or more player records, where each record consists of the nine fields listed above. the records are separated by newlines, and the fields are separated by semicolons.
if the user enters an invalid file name, the program will display an appropriate message and prompt the user to enter another file name. the program will halt after the user enters an invalid file name three consecutive times.
6. the "team" command will be followed by a string representing a team identifier. the program will display all information about all players on that team.
if the user enters an invalid team identifier, the program will display an appropriate message and prompt the user to enter another command; the program will not display an empty table.
7. the "report" command will be followed by an integer number and a string (one of "hits", "batting" or "slugging").
if the user enters an invalid command, the program will display an appropriate message and prompt the user to enter another command; the program will not display an empty report.
for each report, the program will display all information about the top "n" players in a given category:

hits -- number of hits
batting -- batting average
slugging -- slugging percentage

8. the program will display appropriate messages to inform the user about any unusual circumstances.

de aza, alejandro; cws; 153; 607; 84; 160; 27; 4; 17
hunter, torii; det; 144; 606; 90; 184; 37; 5; 17
hamilton, josh; laa; 151; 576; 73; 144; 32; 5; 21
choo, shin-soo; cin; 154; 569; 107; 162; 34; 2; 21
upton, justin; atl; 149; 558; 94; 147; 27; 2; 27
cabrera, miguel; det; 148; 555; 103; 193; 26; 1; 44
posey, buster; sf; 148; 520; 61; 153; 34; 1; 15
suzuki, ichiro; nyy; 150; 520; 57; 136; 15; 3; 7
holliday, matt; stl; 141; 520; 103; 156; 31; 1; 22
headley, chase; sd; 141; 520; 59; 130; 35; 2; 13

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:50
A.) generate scaffolding to create database for your application. develop all the entities identified in assignment #2. add any additional that may be identified later. b.) add data validation rules to the models that are appropriate for your application and data. c.) create links for each scaffold in the header section. part 2: application updates [30 points] a.) add two additional views to the "home" controller you created in assignment #1. b.) the two views should be named as “privacy" and "". c.) link the two newly created views in the footer section. hint: you would need to modify the “home" controller definition and create “privacy.html.erb" and “.html.erb" files in appropriate locations.
Answers: 3
question
Computers and Technology, 22.06.2019 16:30
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. a company wants to use online methods to target more customers. it decides to conduct a market research by collecting the data of a few customers with their consent. they want to track data of the sites that their customers frequently visit. which software can the company? a. spyware b. bots c. adware d. trojan horse e. rootkits
Answers: 1
question
Computers and Technology, 24.06.2019 06:00
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
You know the right answer?
This assignment focuses on the design, implementation, and testing of python programs to process dat...
Questions
question
Mathematics, 15.07.2020 02:01
question
Mathematics, 15.07.2020 02:01
question
Mathematics, 15.07.2020 02:01
Questions on the website: 13722361