prestontu1966 prestontu1966
  • 26-02-2021
  • Computers and Technology
contestada

write a function called getscore that does not take any parameter inside the function it asks the user to input scores for 3 exams

Respuesta :

sandlee09
sandlee09 sandlee09
  • 28-02-2021

Answer:

Explanation:

The following code is written in Python, like requested the getscore function asks the user for 3 score inputs and returns the final score.

def getscore():

   exam1 = int(input("Enter Exam 1 score: "))

   exam2 = int(input("Enter Exam 2 score: "))

   exam3 = int(input("Enter Exam 3 score: "))

   finalscore = (exam1 * 0.20) + (exam2 * 0.30) + (exam3 * 0.50)

   return finalscore

Answer Link

Otras preguntas

How did America's involvement in World War II impact race relations in the military?
What is the perimeter of rectangle 6in and 8in
Which occurs during winter in the Northern Hemisphere? a. The earth is closer to the sun. b. The earth's axis is tilted so that the Northern Hemisphere faces
How do you say hey in spanish
what two observations can be made about the relationship between weather and air pressure? first answer get branliest answer!
Why were congressional republicans angry that southern legislatures passed laws known as black cord
food is the only limiting factor that keeps populations from growing too large
If a car travels 400m in 20 seconds, how fast is it going?
Which scientist did not directly contribute to the equations that make up the laws of planetary motion? Galileo Galilei Isaac Newton Johannes Kepler Tycho
What US state traditionally holds the first contest to choose each major party's presidential nominee?