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

What is the product of (-4)(-5)(3)​
“No se puede habría un libro sin tener que aprender algo” “La perseverancia pueden transformar el fracaso en un logro extraordinario” Interpreta con tus propia
<< < 1 2 Which of the following options best describes a bar graph? A graph that uses ines to compare two sets of data. A graph of each data point that
Select all of the objective pronouns. their your you m him m her hers them m she s me I us it
Why was the US scared of a central government?
Please help tysm god bless
7x-2y=17 3x+4y=17 20 points please answer
How did alliances with other city-states help the Aztec build an empire?
Anne has a 1/4 cup scoop that she uses to pour kernels into a popcorn popper. She uses one full scoop for each batch of popcorn. Anne has 7 cups of popcorn. How
How are Arnie and Tom Sawyer alike?