Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python programming language In baseball, a pitchers earned run average, or ERA, is the number of runs the other team typically scores per nine innings

Python programming language

In baseball, a pitchers earned run average, or ERA, is the number of runs the other team typically scores per nine innings pitched. Write a function that accepts two arguments: the total number of earned runs allowed and the total number of innings pitched. The function should return the ERA, rounded to the nearest hundredth. For example, a pitcher who has pitched 91 innings and allowed 25 earned runs has an ERA of 2.47. The main() function should ask the user to enter the number of innings pitched and the number of earned runs, call the above function, and display the results. Python programming language

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

Summarize forecasting human resource availability.

Answered: 1 week ago

Question

Proficiency with Microsoft Word, Excel, PowerPoint

Answered: 1 week ago