Calculate the ERA

A pitcher’s ERA (earned runs average) is calculated by multiplying the number of runs (scores) times total innings in the game (usually 9) and then dividing by the total innings that the pitcher pitched.

Write a function that assumes that there were 9 innings in the game and takes in two numbers that represent the earned runs and the innings pitched. The function should return the ERA.

Answers

Answer 1

Answer:

In Python:

def returnERA(runs,total):

   ERA = runs *9/total

   return ERA

Explanation:

This defines the function. It receives the number of runs and the total runs as its parameters

def returnERA(runs,total):

This calculates the ERA

   ERA = runs *9/total

This returns the ERA

   return ERA


Related Questions

Write a program code in the python programming language to find simple interest given the
formula SI = (P*R*T)/100.
Read P(Principal), R (Rate), T (Time) from the keyboard and Calculate Simple Interest (SI).

Answers

Answer:

p = float(input('Principal: '))

r = float(input('Rate: '))

t = float(input('Time: '))

si = (p * r * t) / 100

print(si)

The "float" before the input in the first 3 lines is so you're able to input decimals. If you're not using decimals, you can switch the "float" to "int". However, if you input a decimal number after you switched to int, you will receive an error

Write a basic
to solve
30x10​

Answers

Answer:

30x10

Explanation:

3 times 10 = 30

30 times 10 = 300

Answer:

30x10​=300

Explanation:

3x10=30

30x10= 300

(just add another zero, if that makes sense)

HTML code to display square bullets in an unordered list​

Answers

Answer:

<!DOCTYPE html>

<html>

<body>

<h2>Unordered List with Square Bullets</h2>

<ul style="list-style-type:square;">

 <li>Coffee</li>

 <li>Tea</li>

 <li>Milk</li>

</ul>

</body>

</html>

Factorise (x+y)^3- (x^3+y^3)​

Answers

Answer:

3xy(x+y)

Explanation:

if you want to simplify it it's 3x^2y+3xy^2 but you said factorise so it should be the answer 3xy(x+y)

Hope this helps:)

Answer:

3xy (x +y)

Explanation:

Step 1 Evaluate: (x+y)^3 = x^3+3x^2y+3xy^2+y^3

Step 2 Pull out like terms: 3x^2y+3xy^2 = 3xy × (x+y)

Answer:

3xy (x +y)

How to make videos that I watch online not buffer and stop so much? it's really annoying.​

Answers

I would recommend buying a higher quality device. This might be happening because you device is old. If not then I’m not sure.

I hope this helps.

Answer:

Delete ittttttttttttt


11. In MS PowerPoint
view show the slides of the presentation in thumbnail form.

Outline view
Slide Sorter view
Slide Show view​

Answers

Answer:

slide sorter view .....

Answer: D

Explanation:

. Suppose client A initiates an FTP session with server S. At about the same time, client B also initiates an FTP session with server S. Provide possible source and destination port numbers for: (a) the segments sent from A to S? (b) the segments sent from B to S? (c) the segments sent from S to A? (d) the segments sent from S to B? (e) If A and B are different hosts, is it possible that the source port numbers in the segments from A to S are the same as those from B to S? (f) How about if they are the same host?

Answers

Answer:

Follows are the solution to this question:

Explanation:

The segments send port "A to S" numbers below 1024 and use 1024 and 65535 as standard numbers, that are using as a temporary connection. The port number for Server "S" is =23, and the port number for Client"A" is between 1024 and 65535, and its standard value is 467, and other calculation can be defined in the table:

  [tex]Serial \ \ \ \ \ \ \ \ \ \ \ \ \ port \ \ number \ \ \ \ \ \ \ \ \ \ \ \ \ Destination \ port\ number[/tex]

  [tex]a) A \to S \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 467 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 23\\\\b) B \to S \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 513 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 23\\\\c) S \to A \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 23 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 467\\\\d) S \to B \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 23 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 513\\\\[/tex]

  [tex]e) Yes\\\\f) No\\\\[/tex]

What would you do if you experienced academic frustrations in school? Check all that apply.
Look for ways to do better academically in school.
Ask a friend to explain difficult concepts.
Try to identify the reason you are feeling frustrated.
Ask a teacher for help coming up with a solution.
Search online for help solving this problem.

Answers

I think it is all of them :))

Answer: all are correct

Explanation:

i say all because those are all really good ways to help you in school. if you are struggling then ask a to a teacher for help you, if you need more help, ask a friend. see what you can do to help yourself do better. see what you are doing that could possibly be the reason of your frustrations. and the internet is always open to questions and answers. but it also depends, some schools are strict about using the internet for answers. but if your school is different then use the internet freely. i hope this helped.

What does a file extension tell your computer?

A. What type of program to open

B. When the file was created

C. Where a program is saved

D. Which file name to display

Answers

Answer:

A. what type of program to open

The network administrator is important in keeping the network healthy. Which of the following describes the role of a network administrator? Check all of the boxes that apply.

Answers

C and D. Network Administrators are more like managers of a network, so they’re more likely to be doing logical maintenance as opposed to physical. Physical network and hardware maintenance is typically done by a network technician or an I.T. technician.

Answer:

Its A and D

Explanation:I did it on edge 2020

Why is it important to think about the programming language to use?

A) Some programming languages might be too complicated.
B)Some programming languages are better on different platforms.
C)The choice of programming language determines what type of game you
can make.
D)Some programming languages are used more in some countries.

Answers

The reason that is important to think about the programming language to use is option C)The choice of programming language determines what type of game you can make.

Why should one consider their programming language of choice?

The ability to communicate clearly and concisely as well as develop more advanced analytical skills can both be benefited from knowledge of programming languages. Instead of displaying raw data straight from the source, BASIC is a high-level language that enables the programmer to access simpler, more consolidated facts and operations.

Note that Knowing numerous programming languages improves your ability to think creatively and effectively solve problems and enables you to accomplish your goals in novel ways. The more programming languages you know how to use, the easier it will be for you to solve a particular problem and the more adaptable you will be as a developer.

Learn more about programming language  from

https://brainly.com/question/16936315
#SPJ1

Write a method that returns a String that is just the first and last character of the given string Your return value should be only two characters long. You can assume that the given string will not be empty.​

Answers

Answer:

The method in Java is as follows:

public static String returnlen(String input){

   String output = ""+input.charAt(0)+input.charAt(input.length()-1);

   return output;

}

Explanation:

This defines the method

public static String returnlen(String input){

This concatenates the first and the last character of the input string

   String output = ""+input.charAt(0)+input.charAt(input.length()-1);

This returns the concatenated string

   return output;

}

What is one way the Design tab in the PowerPoint Online application is used?
Add a chart
Choose a variant
Create an image
Transition slides

Answers

Answer:

select a theme

Explanation:

One way the Design tab in the PowerPoint Online application is used is to: B. choose a variant.

What is PowerPoint Online?

PowerPoint Online can be defined as a web-based software application that is designed and developed by Microsoft Inc., in order to avail its end users an ability to create slides, customize backgrounds and choose a variant, especially during a presentation.

This ultimately implies that, choosing a variant is one way the Design tab in the PowerPoint Online application is used by end users.

Read more on PowerPoint here: https://brainly.com/question/26404012

write a loop that will input 8 numbers from the keyboard and find the sum

Answers

THIS IS FOR PYTHON

total = 0

for i in range(8):

    number = int(input('Number: '))

    total += number

print(total)

The loop that will input 8 numbers from the keyboard and find the sum is as follows:

user_input = [int(input('Enter your value: ')) for i in range(8)]  

print(sum(user_input))

The code ask for the user's input for 8 times. Recall the range is 8.

Then we loop through the users input values

The looped users input will be summed using the sum() function. The sum function sums all the users input value.

The summed value is then printed with the print statement.

learn more on loop: https://brainly.com/question/14201070?referrer=searchResults

Question:
True or False: How we interact with computers is an important consideration for
programmers and computer scientists. Our interaction drives the goal of ethical and
effective technology.
True or false

Answers

Answer:

Explanation:

I don't see a way of making this false. The study of what people do with computers and how they do it has to lead to some sort of conclusion about ethics. Ethics, after all, is the study of what we should do. And even better what we should be doing that results in good.

It also makes for effective technology. Appeal to our use of computers and combine it with what we should be doing has to make a more effective technology.

Describe how a black and white image could be represented in binary

Answers

Images known as binary images include pixels with only two possible intensities. Normally, they are shown in black and white. In terms of numbers, the two values are frequently 0 for black and 1 or 255 for white.

What represents of black and white image in binary?

Each pixel in an image is made up of binary numbers. Binary may be used to make a straightforward black-and-white image.

If we declare that 1 represents black (or on) and 0 represents white (or off). A grid can be laid out and the squares colored to form the image (1 – black and 0 – white).

The most well-known instance of monochrome photography is black and white photography, which only uses neutral gray colors to depict its topics.

Therefore, tones of a single hue are used in monochrome photography to represent all the other colors in an image.

Learn more about binary here:

https://brainly.com/question/3708556

#SPJ2

1. What is the difference between operating systems and application software? (1 point)

Answers

The main difference between operating system and application software is that an operating system is a system software that works as the interface between the user and the hardware while the application software is a program that performs a specific task. This software assists the tasks of the system

Edhesive 6.8 lesson practice answers

Answers

Answer:

1.) 25 ; 15 ; 15

2.) 50 ; 15 ; 50

Explanation:

In the first function written :

The variable val was initially decaled or assigned a value of 25 and that was what was printed first.

However, after the example function was written, the val variable was finally assiagned a value of 15 within the function. However, it was also declared that the global variable takes uonthe val value. Hence, the val variable initially assigned a value, of 25 changes to 15 globally.

For the second code :

From the top:

Val was assigned a value of 50 ;

Hence,

print(val) gives an output of 50

Within the function definition which prints the value of val that is assigned a value of 25 within the function.

Since tbe global variable isnt reset.

Printing Val again outputs 50;since ito is outside the function.

The code output description can be defined as follows:

Code Explanation:

In the first code, a "val" variable is declared that hold an integer value.In the next step, a method "example" is defined.Inside the method a global keyword is used that define a variable "val" in which it hold an integer value and print its value.After defining a method two print method is used that print "val" variable value and call exmaple method.In the second code, a "val" variable is declared that hold an integer value.In the next step, a method "example" is defined.Inside the method another variable "val" is defined in which it hold an integer value and print its value.After defining a method two print method is used that print "val" variable value and call exmaple method.

Code:

val = 25 #defining a variable val that holds an integer value

def example(): #defining a method example

   global val #using keyword global to define variable val

   val = 15#defining an integer variable that hold integer value

   print (val)#print global variable value

print (val) #print val variable value

example()#calling example method

print (val)#print global variable value

print("----------------------------------------------------")

val = 50 #defining a variable val that holds an integer value

def example(): #defining a method example

   val = 15 #define variable val that holds integer value  

   print(val)#print val variable value

print (val) #print val variable value

example() #calling method example

print (val)#print val value

Output:

Please find the attached file.

Learn more:

brainly.com/question/21866333

A record is a specific piece of information state true or false​

Answers

Explanation:

I think it is False

hope it's help

Answer urgently needed!!!



•write 5 differences between pin and password​

Answers

Answer: Here Are Some Of Them

a Personal Information Number (PIN) allows you to prove that you're you, so that no one else can access your data. The obvious difference is that a PIN is limited to numerical digits (0-9), while a password can contain numerical digits, upper- and lowercase letters, and punctuation. PINs can facilitate a quicker, more usable experience. Signing in with a shorter PIN code instead of a password might help somewhat with issues related to password usability and fatigue.  Signing in with a shorter PIN code instead of a password might help somewhat with issues related to password usability and fatigue

Explanation:

write a python program to input a list of no. and swap element at the even location with element at odd location​

Answers

Answer:

I changed the title to describe the task the code accomplishes, this makes    the contrnt more easily searchable and accessible.

Explanation:

Answer:

The content is more easily searchable and accessible.

Explanation:

Marissa is designing a web page that features lessons on how to build cabinets. how can she make the page most engaging for the user?

A. by adding warm colors to make the content more fun to view.

B. by adding a short video demonstrating how to build cabinets.

C. by adding a variety of font types to make the text look appealing.

D. by adding a slideshow that displays pictures of built cabinets.​

Answers

I am pretty sure it’s B because that’s the only answer that really correlates to teaching people how to build cabinets

why is it important to use fillings,coating/icing,glazes or decorations for pastry products​

Answers

Answer:

Frosting improves the cake's appearance.

Explanation:

Special occasion cakes become more festive with frosting and decorations; and, Frosting improves the keeping the qualities of the cake by forming a protective coating around it, sealing in moisture and flavor and allowing it to be eaten over a couple of days.

It is the "executable" phrase of Word
Wide Web with dynamic applications,?

Answers

Answer:

It is the “executable” phrase of Word Wide Web with dynamic applications, interactive services, and “machine-to-machine” interaction. In Web 3.0, computers can interpret information like humans and intelligently generate and distribute useful content tailored to the needs of users.

Help please....
If you decide to work for yourself to develop apps for sale rather than for a company, you are known to be working_________

Answers

Explanation:

independently is correct

What are the steps for inserting a 3-D reference?
1. Enter the formula up to the point of needing a reference.
2. Activate the first worksheet.
3. While holding the key, activate the last worksheet.
4. Select the cell or range containing the values the formula should refer to.
5. Complete the formula by pressing these two buttons: and .

Answers

Answer:

Shift

Ctrl

Enter

Explanation:

I tried going into a website called Utters.io, but when I typed a phrase in, the video was taking a really long time to load. Does anyone know what's wrong with it?

Answers

Answer:

Your internet or browser

Explanation:

Try another browser or resetting your router. If a YT video will load then you can rule out internet speed and try another piece of client software.

Fault tolerance refers to

Answers

Answer:

B

Explanation:

Use the drop-down menu to complete the steps for creating a scenario.
1. Go to the
tab.
2. In the
group, select
from the drop-down What If Analysis menu.
3. Click the Add button.
4. Specify the name of the scenario.
5. Specify the cells containing the values to change and click OK.
6. Specify
and click OK

Answers

Answer:

1. Data

2. Forecast

3. Scenario Manager

4. values for the changing cells

Explanation:

On edge


Avi does not want to save his internet browsing details on his computer. What should he do?
Avi should (copy,delete,or save) all the(virus,cookies,or logs) from his system after he has finished browsing.

Answers

He should delete logs.
Other Questions
Learning Task 6: Complete the chart. Copy this inyour answer sheet. What do you think the term gene expression means? How do you think the term relates to the total number of genes a human inherits from his or her parents? HELP ASAP I WILL MARK BRAINLIEST What was the main question as territories were gained toward the Pacific Ocean? 4x=3y-2 in slope intercept formexplain 36+54 as a product please help i do not have any idead of hat this is what is a major function of executive department? 9. Mrs. Parker paints the school library. Yrich is the best estimatefor the amount of paint she uses? una plancha cuesta 745.50 y tiene un descuento de 45% cual es el precio final a pagar select all the numbers between 80 and 100 that have exactly 4 factors, one of which is 5.80859095100 Write the equation of a line parallel to the y-axis and passing through the point(-3,-4). How does a seismograph detect and record seismic waves? help. ill mark brainliest or whatever Ken worked 20 hours and earned nearlya) $200.b) $2,000.c) $20. Respond to the quote below using five (5) sentences. Be sure to address the following things: What do you think this quote mean? What human-like characteristic does this quote give the art of dance? Why did it give dance that particular human characteristic? According to the quote, what's the difference between the heartbeat and the pulse? Please elaborate and explain your answer. "Every song has its own heartbeat, the pulse in music is what keeps it alive." A graph titled Funding for House Elections 2011 to 2012 shows parties on the horizontal axis and dollars (hundreds of millions) on the vertical axis. Approximately 610 of Republican funding was total raised, 200 was P A C funding, and 350 was individual funding. Approximately 490 of Democratic funding was total raised, 165 was P A C funding, and 290 was individual funding. Look at this graph, showing funding for campaigns for election to the House of Representatives, 20112012.What is the most logical conclusion that can be drawn from this graph?Both parties are dependent on raising huge sums of money to fund their House campaigns.PAC spending is not a significant factor when it comes to raising money for House campaigns.The Democrats will always raise more money for House campaigns from individuals than the Republicans will.Campaign funding laws have reduced the amount of money needed to fund House campaigns. A 20 kg cart moving at 4 m/s has how much momentum?40 kg*m/s40 kg*m/s5 kg*m/s5 kg*m/s80 kg*m/s Help plsssssssssss I write it 100 time no one answer : Which expression represents the factorization of 56st 21t?A: . 7(8st - 3t) B: 7t(8s - 3)C: 3t ( 18s - 7)D: 7s ( 8t - 3t) Put these reasons in your own words why did the Roman Empire collapsed?Please help will mark brainlest.