1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alex Ar [27]
3 years ago
7

Assume that the final grade for a course is determined based on this scale - A: 900 points, B: 800-899 points, C: 700-799 points

, D: 600-699 points, F: 599 or fewer points. Write a function named get_letter_grade() that takes the number of points the student has earned as a parameter. It should return a string containing (only) the letter grade the student will receive.
Computers and Technology
1 answer:
saul85 [17]3 years ago
5 0

Answer:

In Python:

def get_letter_grade(points):

   if points>=900:

       grade ="A"

   elif points>=800 and points < 900:

       grade ="B"

   elif points>=700 and points < 800:

       grade ="C"

   elif points>=600 and points < 700:

       grade ="D"

   else:

       grade = "F"

   return grade

Explanation:

This defines the function

def get_letter_grade(points):

The following if-else if conditions check the score to determine the appropriate grade

<em>    if points>=900:</em>

<em>        grade ="A"</em>

<em>    elif points>=800 and points < 900:</em>

<em>        grade ="B"</em>

<em>    elif points>=700 and points < 800:</em>

<em>        grade ="C"</em>

<em>    elif points>=600 and points < 700:</em>

<em>        grade ="D"</em>

<em>    else:</em>

<em>        grade = "F"</em>

This returns the grade

   return grade

You might be interested in
Carl sent an e-mail to more than three thousand employees about a software update. The employees need to prepare for this update
AnnyKZ [126]

Answer:

He should send another E-mail to all 3,000 employees to ensure they all get the E-mail

Explanation:

Calling each employee could take days so that's out.

A business letter could work i suppose but the E-mail would more likely arrive sooner.

Not everyone will read the newsletter most likely.

Therefore sending an E-mail is the smarter choose.

7 0
3 years ago
Read 2 more answers
What defines interactive media? The user must play a role in writing the content of the media. The user must do something that d
topjm [15]

Answer:

What Is Interactive Media?

Interactive media is a method of communication in which the program's outputs depend on the user's inputs, and the user's inputs, in turn, affect the program's outputs. Simply put, it refers to the different ways in which people process and share information, or how they communicate with one another. Interactive media allows people to connect with others—whether that's people or organizations—making them active participants in the media they consume

5 0
2 years ago
Read 2 more answers
Please, can you notate these music notes for me? Thanks ☺
lys-0071 [83]
I really thought i could but this is violin i play the viola sorry 
7 0
3 years ago
In older existing installations, where an equipment ground does not exist in a metal switch box that is located within reach of
Irina18 [472]

Answer:

A metal faceplate with grounding means

Explanation:

metal faceplate with grounding means is required in older existing installations, where an equipment ground does not exist in a metal switch box that is located within reach of a conductive floor such as tile or cement.

8 0
3 years ago
Read 2 more answers
What am I doing wrong?
Temka [501]

In your example, you're asking the user for a number and then you're setting total and nums equal to zero. This results in your first number being ignored by the program. I included the complete working code below:

num = int(input("Enter a number: "))

total = num

nums = 1

while (total <= 100):

   num = int(input("Enter a number: "))

   nums = nums + 1

   total = total + num

print("Sum: "+str(total))

print("Numbers Entered: "+str(nums))

I hope this helps!

8 0
2 years ago
Other questions:
  • Which connection configuration offers faster speeds, higher security, lower latencies, and higher reliability?
    8·1 answer
  • What kind of device is a printer? output or input
    13·1 answer
  • What tab must you click on to view any previously read messages from instructors in the message center?
    14·2 answers
  • Electricity is the flow of in a conductor
    14·2 answers
  • Beneficios del reciclaje electrónico
    6·1 answer
  • What type of data can be entered into a electronic spreadsheet
    11·1 answer
  • Please help with my Python code - Functions
    6·1 answer
  • Why is monitor called softcopy output device?​
    6·1 answer
  • Which TWO of the following are input devices that are parts of a laptop computer?
    9·2 answers
  • Why can't we sign up to brainly.com??????????????????
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!