Write a code in Python that will can accept grades with decimals and convert them to their equivalent letter grade in the grading scale:
A: 90 - 100
B+: 87-89
B: 80-86
C+: 77-79
C: 70-76
D+ : 67-69
D: 60-66
F: 0-59
Z: Incomplete

Answers

Answer 1

grade = float(input("Enter your grade: "))

if 89 < grade < 101:

   print("A")

elif 86 < grade < 90:

   print("B+")

elif 79 < grade < 87:

   print("B")

elif 76< grade < 80:

   print("C+")

elif 69 < grade < 77:

   print("C")

elif 66 < grade < 70:

   print("D+")

elif 59 < grade < 67:

   print("D")

elif -1 < grade < 60:

   print("F")

else:

   print("Z")

I hope this helps!


Related Questions

what are some tips to stay focused in school, and to complete work faster? ​

Answers

Answer:

Sometimes listening to music or chewing gum.

Explanation:

When I need to focus, I like listening to music and sucking on a hard candy or chewing gum.

Pls give Brainliest!!

Answer:

What I do to focus in school is to try and ignore everything that is going on around you. ( what your classmates are doing ) Drown out the noise with music if your allowed to listen to music. Ask the teacher is you can go somewhere quieter

Explanation:

Hope this helps, Have a Wonderful Day!!

What is wrong in this python code import turtle bot = turtle.Turtle step = (50) turnAngle = (90) bot.Color("blue") bot.Begin_fill() bot.Forward(step) bot.Right(turnAngle) bot.Forward(step) bot.Right(turnAngle) bot.Forward(step) bot.Right(turnAngle) bot.Forward(step) bot.Right(turnAngle) bot.End_fill()

Answers

Answer:

The "Turtle" is a method and should be declared with parenthesis and every other method in the code (except the Turtle() ) should begin with lowercase letters like right, forward and begin_fill. The python file should not be saved as turtle.py to avoid import error.

Explanation:

The python turtle module is a graphical programming package created to introduce programming to children. It has several classes and methods to manipulate objects on the screen.

import turtle  

bot = turtle.Turtle()  

step =(50)  

turnAngle =90  

bot.color("blue")  

bot.begin_fill()  

bot.forward(step)  

bot.right(turnAngle)  

bot.forward(step)  

bot.right(turnAngle)  

bot.forward(step)  

bot.right(turnAngle)  

bot.forward(step)  

bot.right(turnAngle)  

bot.end_fill()

Which of the following is an example of gameplay in a video game
A: the art of a game

B: the player interacting with the game world and game mechanics

C: the personalities of all the characters

D:all of the above

Answers

Answer:

the correct answer is B. the player interacting with the game world and game mechanics

How do I write my name in binary code?

Answers

Answer:

qUE

wHAT CODE

Explanation:

To uncompress the data back into its original binary state, you simply reverse the process. This technique is an example of what type of compression?

Answers

Answer:

losless compression

Explanation:

What do the different top level domain names signify, including .com, .org, .edu, .gov, .mil, and .net?

Answers

Answer:

They signify different purposes for each website

Explanation:

.gov = A government owned website. Can include non-U.S. governmen websites, the White House, or other government owned websites.

.edu = A domain name for organizations with a focus on education (even for those that are non-U.S.). That means that you can find .edu domains on college websites, universities, and other educational institutions.

.mil = Mil is a shortening of military. It is for the U.S. Department of Defense and subsidiary or affiliated organizations.

.org = Org is a shortening of organization, meaning that this domain name is usually for non-profits and personal sites, but can also be used schools, open-source projects, and even some for-profit organizations.

.com = A website with the domain name .com signifies a commercial website (hence the 'com'). This can include business websites, websites that want to make money online, personal websites, blogs, portfolios, and more.

.net = Comes from the word network. Originally, it was supposed to be only for organizations involved in networking technologies, such as Internet service providers and other infrastructure companies, but restrictions were never enforced so .net was used as an general purpose name space. However, it's still popular with network operators and the advertising sector.

what is 2D thinking and 3D thinking? i literally don't understand

Answers

Answer:

Two dimensional thinking implies concepts that are flat or only partially representative of the whole. Three dimensional thinking implies the first part of 2d thinking conjoined with intersecting dimensions rendering a deeper field of meaning.

Explanation:

Which line is most likely an error? A-“hello” B-hello C-“100” D-100

Answers

Answer: I think it is c

Explanation:

The error is most likely C. Hello quoted is proper. ("Hello") Eliminate A. Hello is proper as well so eliminate B. Now, we are at C. I Believe this is the answer since it is 100 quoted ("100"). 100 quoted does not make since unless used in a sentence such as "I bought 100 apples today for a good price!" D cannot be the answer since it is 100 all by itself. Thus, your answer should most likely be C, "100".

How does Python recognize a tuple?

Answers

Answer:

Tuples can be recognized like this,

tuple = 'hello', 'world'

or tuples can be recognized like this

tuple = ('hello', 'world')

you can see the value of a tuple by simply printing it out like so,

print(tuple)

Answer:

Tuples can be recognized like this,

tuple = 'hello', 'world'

or tuples can be recognized like this

tuple = ('hello', 'world')

you can see the value of a tuple by simply printing it out like so,

print(tuple)

Explanation:

When and how should resources be invested to close gaps between those who do and don’t use the Internet?

Answers

Answer:

To minimize the technological gap is necessary and not so hard.

Explanation:

The first form of solving it is to minimize the need to use the internet at home, so that users could save the data in some programs which could use afterward if needed, without the internet.

Access to the documents, books, and folders without the need for the internet would be the perfect solution.

The Internet has to be accessible in school so that the students who don’t have it at home could use the most of it in school. Also, the internet connection should be available in the spots around schools, cafes, libraries during the whole day.

Make the internet affordable for everyone.

1. You are designing a program that will keep track of the boxes in a doctor’s office. Each box will have three attributes: date, contents, and location. Write a class that will consist of box objects.

Answers

Answer:

Public class Box

{

private String myDate;

private String myContents;

private String myLocation;

public class Box(String date, String contents, String location)

{

myDate = date;

myContents = contents;

myLocation = location;

}

}

Hope this is what you're looking for! If not, let me know and I can try to help more. :)

Each box will have three attributes: date, contents, and location. It is class box.

What is class box?

There is a method in the box class of this program. Box is a brand-new data type for the class.

Box is used to declare objects of this type as having double height; Class declaration just generates a template; it does not generate any actual objects. None of the objects of type are affected by this code. Box void volume

Therefore, Each box will have three attributes: date, contents, and location. It is class box.

To learn more about class box, refer to the link:

https://brainly.com/question/14427083

#SPJ2

how many ones dose it take to get 9 tens

Answers

It takes 90 ones to get 9 tens
The answer would be 90:)

Explanation: there are 10 ones in one 10 so if you multiply 10 times 9 it’s 90

Documentary photographers strive to produce what type of image?
А.
Edited
B.
True
C.
Colorful
D.
Blurred

Answers

I’m pretty sure that the answer is B

Answer:

B. :)

Explanation:

Microsoft Word, Google Chrome, and Windows Media Player are examples of

Answers

Answer:

They are all examples of software.

Explain two options you have in order to abide by the move over law??? PLEASE HELP ME ASAP!! ​

Answers

Answer:

you can either move over if on an interstate into a different lane safely. if there is only one lane you must reduce your speed

Write a program that inputs a filename from the user and prints to the terminal a report of the wages paid to the employees for the given period. The report should be in tabular format with the appropriate header. Each line should contain an employee’s name, the hours worked, and the wages paid for that period.

Answers

Answer:

filename = input("Enter file name: ")

file = open("filename", "r")

while file:

   line = file.readline()

   print(line)

file.close()

   

Explanation:

The python source code prompts the user for a file name (file extension included), opens the file and reads the content of the file to the end, one line at a time, and prints it.

Note that the file is closed at the end of the program to avoid leakage.

The program illustrates the use of file manipulation.

File manipulations are used to read from a file, and also write into it.

The program in Python, where comments are used to explain each line is as follows:

#This gets the file name

fname = input('Enter input file name: ')

#This prints the output header

print('Name\t\tHours\t\tTotal Pay')

#This iterates through each line of the file

for line in open(fname):

   #This gets the text on the current line

   cline = line.strip()

   #If the text is not empty,

   if cline != '':

       #This gets the name, wage and time worked on that line

       (name, wage, time) = cline.split()

       #This converts the time to integer

       time = int(time)

       #This calculates the total pay

       totalpay = float(wage) * time

       #This prints the employee details

       print(name,'\t\t', time,'\t\t' totalpay))

Read more about file manipulations at:

https://brainly.in/question/10211834

A battery is connected to a light bulb in a circuit. There is a current of 2 A in the light bulb. The voltage of the battery is 1.5 V. What is the resistance of the light bulb?

Answers

Answer:

The current in a circuit is directly proportional to the electric potential difference impressed across its ends and inversely proportional to the total resistance offered by the external circuit. The greater the battery voltage, the greater the current.

Explanation:

Help me pls!!


Look at the following assignment statements:

food1 = "water"
food2 = "melon"

What is the correct way to concatenate the strings?

newFood = word1 == word2
newFood = word1 + word2
newFood = word1 * word2
newFood = word1 - word2

Answers

new food = word1 + word2 will connect both words together with no space in between. The value of newFood will now be "watermelon"

Answer:

new food = word1 + word2

Explanation:

4.8 Code Practice: Question 1

Instructions
Write a for loop to print the numbers 5, 10, 15 … 75 on one line.

Expected Output
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75

Answers

Answer:

c = 1 # global variable

    jhjl jh

def add(): c = 1 # global variable

def add():

   print(c)

add()

   c = c + 2 # increment c by 2

   print(c)

add()

Explanation:

Answer:

for x in range(1, 16):

   print(x * 5, end=" ")

Explanation:

Hope this helps!

you are working on creating a business document with two other co-workers. Based on just information, which of the following pre-writing strategies would be the best for you?(A.P.E.X.)

Answers

Brainstorming, Rationalizing, and Rough Drafts.

A ___________ is used to terminate all Java commands

Answers

Answer:

Semicolon. If you don't terminate commands with a semicolon, you get a ton of errors.

difference between logical errors and syntax errors​

Answers

Since computer programs must follow strict syntax to compile correctly, any aspects of the code that do not conform to the syntax of the programming language will produce a syntax error. A logic error (or logical error) is a 'bug' or mistake in a program's source code that results in incorrect or unexpected behaviour.

PLEASE HELP WITH THIS "PROJECT"
Your users are young children learning their arithmetic facts. The program will give them a choice of practicing adding or multiplying.

You will use two lists of numbers.

numA = [4, 1, 6, 10, 2, 3, 7, 9, 11, 12, 5, 8]

numB = [2, 12, 10, 11, 1, 3, 7, 9, 4, 8, 5, 6]

If the user chooses adding, you will ask them to add the first number from each list. Tell them if they are right or wrong. If they are wrong, tell them the correct answer.
Then ask them to add the second number in each list and so on.

If the user chooses multiplying, then do similar steps but with multiplying.

Whichever operation the user chooses, they will answer 12 questions.

Write your program and test it on a sibling, friend, or fellow student.

Errors : Think about the types of errors a user can make. Add at least one kind of error handling to your program.

Answers

numA = [4, 1, 6, 10, 2, 3, 7, 9, 11, 12, 5, 8]

numB = [2, 12, 10, 11, 1, 3, 7, 9, 4, 8, 5, 6]

operation = input("Are you adding or multiplying? (a/m)")

i = 0

if operation == "a":

   while i < len(numA):

       try:

           answer = int(input("{} + {} = ".format(numA[i], numB[i])))

           if answer == numA[i] + numB[i]:

               print("You're correct!")

           else:

               print("You're wrong! The correct answer is {}".format(numA[i] + numB[i]))

           i+=1

       except ValueError:

           print("Please enter a number!")

if operation == "m":

   while i < len(numB):

       try:

           answer = int(input("{} * {} = ".format(numA[i], numB[i])))

           if answer == numA[i]*numB[i]:

               print("You're correct!")

           else:

               print("You're wrong! The correct answer is {}".format(numA[i]*numB[i]))

           i+=1

       except ValueError:

           print("Please enter a number!")

The type of error handling we perform is ValueError handling. Instead of getting an exception when the user enters a letter when they try to answer a math problem, we tell the user to enter a number.

I hope this helps!

What are three print output options available in PowerPoint?
A. Handouts, Slides, Speaker Notes
B. Outline, Kiosk, Overheads
C. Overheads, Handouts, Slides
D. Kiosk, Handouts, Computer

Answers

Answer: .A

Explanation: i got it right

Answer:

'A' on edge 2020

Explanation:

Just took the test

WILL MARK CORRECT ANSWER AS BRAINLIEST PLSSSS HELP!

Cecilia is thinking about studying at the table in her kitchen. She wants to make sure she would be choosing a good study environment, so she quickly looks around the room. She decides to study somewhere else after determining that it is a poor study environment. Which factors most likely made Cecilia's kitchen a poor study environment? Check all that apply.

Her little brother was playing with toys on the kitchen floor.
There was a large lamp next to the kitchen table.
There was a pile of magazines and papers on the kitchen table.
There was music playing loudly in the background.
There was a vase filled with flowers by the kitchen sink.

Answers

Answer:

there was music playing loudly at the background

Answer:

Her little brother was playing with toys on the kitchen floor.

There was a pile of magazines and papers on the kitchen table.

There was music playing loudly in the background.

brainliest PLZ:)

Windows Rights Management Services gives the user which ability?

Answers

It gives the ability to print, copy, edit and forward and also encrypted information in the operating system so your personal data is kept safe.

why make people act meaner online the. in person ​

Answers

Because they are scared to say something in real life. Behind a screen they are protected

people can use social media responsibly by what​

Answers

Answer:

spread love not hate n password diligent

By limiting their time on social media

Explanation:

Write a function that takes the name of a file with a .csv extension (a comma-separated value file), and writes a new file that is equivalent (same name and same data) but with a .tsv extension (a tab-separated value file: like a CSV but with tabs instead of commas separating the elements of the file). Note: the character used to represent a tab is ‘\t’.

Answers

Answer:

import pandas as pd

def convert_to_tsv( csv_filename ):

   df = pd.read_csv("csv_file")

   df.to_csv("csv_filename.tsv", sep='\t')

Explanation:

The python program uses the pandas' module to read in the csv file in the function "convert_to_tsv". The file is saved as a tsv file with the pandas to_csv method and the " sep= '\t' " attribute.

I am stuck on these 2 questions. Can someone help me please?

6) Write a Python code to save the following dictionary in a CSV file.
dict = {1: "Hello", 2: "Hi", 3:"bye"]

7) Write a Python code to read the CSV file generated in the previous step
(1) to a Python dictionary.​

Answers

Answer:

My answer could not be submitted because of some signs and symbols in my solution.

So, I've added the answer and a comprehensive explanation as an attachment.

Note that the question is answered using Python programming language.

Explanation:

Lines that start with # are used to explain the program

See attachment

Other Questions
Which of the following means the desire to act? (2 points) 1.What is Renaissance? 3/8 + 7 1/2 =? In simplest form A) An angle bisectorB) a line parallel to a given lineC) an angle congruent to a given angleD) a perpendicular bisector of a segment future tense she (have) a birthday party. Jimmy walks 1/2 mile in 1/6 hours. How fast does he walk in miles per hour?A)1/12 miles per hourB)3 miles per hourC)1/3 miles per hour D)12 miles per hour which property of light causes a rainbow to form What is the solution to this equation?3x-9 = 12O A. x = 1B. x = 7O c. x = 9O D. x = 63 Can someone please help me QUICK Which answer choice represents a person burning 90 calories by climbing 18 flights of stairs? Which best describes how the excerpt appeals to readers emotions? Bias is favoring a view or perspective on an issue over another perspective. Question 1 options: True False What is the length of segment AC? A function is negative over the intervals{x 1-0 What are the zeros for the function?3-3,3-3 why do you hate careless people? please this is for an essay and i need help! it would help if you also explain why. thank you! In order to change a solid to a liquid or a liquid to a gas, what is needed?A high boiling pointAn increase in thermal energyA high melting pointA decrease in thermal energyHide hint for Question 9 Picture 1: A black and white scene showing men on horseback and men standing in a field. Picture 2: An engraving of an owl in a tree. What method was used to create each image above? Compare and Contrast the two examples above. Provide at least 3 observations. jenet can make 4/5 on a necklace in 20 minutes.at this rate how many necklaces to the nearest tenth of a necklace can jenet make in 1 hour Help me pleaseeeeee!!!!!! The Aspen Ski Resort has started to keep track of the number of skiers and snowboarders who bought season passes. The ratio of the number of skiers who bought season passes to the number of snowboarders who bought season passes is 3:5. If 1,250 more snowboarders bought season passes than skiers, how many snowboarders and how many skiers bought season passes?