Homework Assignment #4, Python Programming

Assignment Help:
Finally! After years of adding unimportant sports, the IOC has finally added Shoe Tying to the Olympics. And you’ve been selected to write the software to handle the judging of this thrilling event. Since this is an “emerging” sport, there are only eight countries with a single entrant each. There are six judges for the event. The judging data is found in the text file ShoeDataFa12.txt, which will be emailed to you. The format of the file consists of 48 integers, one per line, each between 0 and 10 (inclusive). The first six data items represent the scores for contestant 1 by each of the judges. The second six data items represent the scores for contestant 2, and so on. To compute a contestant’s score, the high score and the low score are ignored and the remaining 4 scores are averaged.

Write a program that processes the text file and prints out a summary of the competition in the following style:

The scores for contestant 1 are: 6 7 3 9 6 6
The max is 9.
The min is 3.
The overall score for this contestant is: 6.25

The scores for contestant 8 are:

The gold medal goes to contestant ???. (Note: You may assume there are no ties.)

Related Discussions:- Homework Assignment #4

Coding examples of python, Coding examples Following are some  attempts...

Coding examples Following are some  attempts at defining a function isSubset,  which  takes  two  arguments, a and  b, and  returns True if a is a subset  of b, assuming that

List comprehensions, List Comprehensions   Python has a very nice b...

List Comprehensions   Python has a very nice built-in  facility for doing  many  iterative methods, known as list comprehensions. The basic template is       [

Otway rees protocol implementation, I need server, client and trusted side ...

I need server, client and trusted side communicating and charging a service with that protocol (or needham shroeder)

Variable, from urllib2 import urlopen var= ('' response">http://placekitt...

from urllib2 import urlopen var= ('' response">http://placekitten.com'') response = kittens.read(body) body = response[559:1000] print ''Kittens:'', response

Environments in python, Environments in Python Generally, Python estab...

Environments in Python Generally, Python establishes the following binding environments: 1.  builtin     : the mother of all environments: it contains the de?nitions of

If statements, how do you make an if and else statment work in pytho?

how do you make an if and else statment work in pytho?

Python programme comparing for and while loops, 1)    Write a python progra...

1)    Write a python programmecomparing for and while loops like the following. Math Times table For Loop: 2x1=2 2x2=4 ..... 2x12=24 While Loop: 3x1=3 3x

Non-local references, Non-local references So far, whenever we needed ...

Non-local references So far, whenever we needed to compute a variable, there  was  a binding for that  variable in the 'local' environment (the environment in which  we were e

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd