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

Re-writing a C++ code in Python with the help of ctypes, I have a C++ code ...

I have a C++ code (10-15 line) which i need to re-write in python with the help of ctypes library. Is it possible i can get some help with it? Thanks & regards Tanmoy

Variable, from urllib2 import urlopen # Open http://placekitten.com/ for...

from urllib2 import urlopen # Open http://placekitten.com/ for reading on line 4! response = kittens.read() body = response[559:1000] # Add your ''print'' statement here!

#Connect4, In English, specify a representation of the board game in Python...

In English, specify a representation of the board game in Python. The representation should capture the entire state of the game at one point in time. It may be helpful to first fi

Lab programming, protocol rdt2.2 considers there is a bit errors between se...

protocol rdt2.2 considers there is a bit errors between sender to receiver and also from receiver to sender. So now we have to consider checking bit errors introduced in reply from

File handling , A program to count how many files are on the file system wh...

A program to count how many files are on the file system which displays summary information regarding the total number of bytes used by all files and a breakdown of the number of b

Non-local references in procedures, Non-local references in procedures ...

Non-local references in procedures There  is an important subtlety in the  way  names  are handled in the  environment created by a function call. When  a value  that  is not

Lcr circuit, program on damped lcr cicuit

program on damped lcr cicuit

Character stuffing.., write code for python characters stuffing program sou...

write code for python characters stuffing program source code

Perimeter of a polygon, Perimeter of a polygon Now, let's consider the...

Perimeter of a polygon Now, let's consider the problem of computing the length  of the perimeter of a polygon. The input is a structure of vertices,  encoded as a list of list

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