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
Models It is a new system that is considerably easier than  the system being modelled, but which saves the important points of the original machine. We might create a physical

Ask question #Minimum 100 worIn this project, create the pseudo code from the following request. The program must have some sort of menu that allows users to make selections to

#Why can''t I cd my Desktop? A minute ago I would open up cmd and it starts in C:\Users\myname but now it''s starting in C:\WINDOWS\system> and I don''t where I am or how to get ou


what are the issues assciated with top-down analysis

Programs and Data Object-oriented programming is a popular way  of managing programs, which  groups together data  with  the procedures that  works on them,  thus  facilitatin

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

Write a program that will take price data for stocks and print it graphically to the screen. Your program should begin by asking the user for the file name. It should then create a

Procedures in python Procedures are computer program creates that let us capture common patterns of computation by: Grouping together sequences of statements

Simple expressions A cornerstone of a programming language is the  ability  to compute expressions.  We will start here  with  arithmetic expressions, just to take the  concep