Calculate and display the average of the 5 scores

Assignment Help Python Programming
Reference no: EM132356783

Question

Each gymnast in a competition receives scores from 5 judges. Write a Python program to do the following.

In the main function, ask the user to enter 5 scores. Store the scores in a list.

Invoke the function score_calculator and pass the whole list to it.

In the function score_calculator, calculate and display the average of the 5 scores.

The following is an example.

Enter a score: 15.2

Enter a score: 14.9

Enter a score: 14.9

Enter a score: 15.3

Enter a score: 15.1

The average score is 15.079999999999998

Reference no: EM132356783

Questions Cloud

Discuss international strategy and company social value : Discuss International Strategy. Discuss Strategic Implementation. Explain the influence of Governance and Ethics. Discuss the Company Social Value.
What provisions of sox was violated in the health care fraud : Determine what provision(s) of SOX was / were violated in the health care fraud case in question. Indicate whether or not SOX adequately provides sanctions.
What are the advantages of being a change leader : Discuss the differences between managing change and leading change. What are the advantages of being a change leader?
Calculate target heart rate during fitness training : Write a program to calculate target heart rate during fitness training. This program has two functions: main and heart_rate_calculator.
Calculate and display the average of the 5 scores : Each gymnast in a competition receives scores from 5 judges. Write a Python program to do the following. calculate and display the average of the 5 scores.
Write a program to convert kilometers to miles : Write a program to convert kilometers to miles. Define a function convert_to_miles to convert distance from kilometers to miles with the following formula.
Show graphically how changes in one of factors : Show graphically how changes in one of those factors (other things equal) can affect the supply of that commodity (X).
Give a brief synopsis of the company and the issue : Give a brief synopsis of the company and the issue, and the company's communication approach to the crisis.
Programs aimed at compliance and corporate ethics : What factors motivate healthcare organizations to maintain programs aimed at compliance and corporate ethics?

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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