Homework Assignment #4, Python Programming

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.)
Posted Date: 10/10/2012 4:32:09 PM | Location : United States







Related Discussions:- Homework Assignment #4, Assignment Help, Ask Question on Homework Assignment #4, Get Answer, Expert's Help, Homework Assignment #4 Discussions

Write discussion on Homework Assignment #4
Your posts are moderated
Related Questions
Write an algorithm for the sum of the given series 1,-1/2,1/4,-1/8.....

Worked example 1   Let's examine what  happens when  we compute the following Python code:   def p(x, y): z = x*x - y return z + 1/z   >>> p(1.0, 2.0) -2.0

Displaying random geometric graphs in an uniform square, unit disk, dense rim unit disk, and uniform sphere

Suppose the cover price of a book is $24.95, but bookstores get a 40% discount. Shipping costs $3 for the first copy and 75 cents for each additional copy. What is the tota

Your task is to construct a translator from the subset of Python in Project 3 intocontinuation-passing style (CPS). Of course, the expected way of accomplishing this is to trans

For this assignment, you are to: 1.    Modify the output format of your Python script from Assignment 1 to match the input format of your C program from Assignment 2. 2.    W

De?nition   A method de?nition has the abstract form: def ( , ..., ): ...   There are essentially three parts: is a name for

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

for simple interest and compound interest

draw the variation of pressure with volume of a real gas at temperatures lower than its critical temperature.also draw its surface of discontinuity