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

kerch co. had beginning net fixed assets of $216,566, ending net fixed assets of $211,729, and deperciation of $40,477. During the year, the company sold fixed
Panamint Systems Corporation is estimating activity costs associated with producing disk drives, tapes drives, and wire drives. The indirect labor can be traced
Solve the following question The difference of two numbers is 12 and their sum is 20 find the numbers
WILL GIVE BRAINLEST ANSWER IF DONE IN 24 HOURS Find the fourth roots of 256(cos 240° + i sin 240°).
What is the quotient (2x^3 + 3x - 22) / (x-2)
Find the equation of the line.
Should the government send money on credit. Explain why
The CPU control unit is responsible for A. obtaining instructions B. interpreting instructions C. all logic functions D. both A and B
10 55:46 Which graph represents a line with a slope of - and a y-intercept equal to that of the line y = -2/3x-2
Q7-8 PLEASE HELP ME