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!
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.
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
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.
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
What do the different top level domain names signify, including .com, .org, .edu, .gov, .mil, and .net?
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.
How does Python recognize a 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)
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:
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?
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:
Windows Rights Management Services gives the user which ability?
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?
Answer:
losless compression
Explanation:
what is 2D thinking and 3D thinking? i literally don't understand
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:
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.)
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.
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
How do I write my name in binary code?
Answer:
qUE
wHAT CODE
Explanation:
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.
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 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()
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()
Explain two options you have in order to abide by the move over law??? PLEASE HELP ME ASAP!!
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
what are some tips to stay focused in school, and to complete work faster?
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!!
why make people act meaner online the. in person
difference between logical errors and syntax errors
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
Answer: .A
Explanation: i got it right
Answer:
'A' on edge 2020
Explanation:
Just took the test
When and how should resources be invested to close gaps between those who do and don’t use the Internet?
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.
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’.
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.
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.
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:)
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
Answer:
the correct answer is B. the player interacting with the game world and game mechanics
Which line is most likely an error? A-“hello” B-hello C-“100” D-100
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".
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
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!
Microsoft Word, Google Chrome, and Windows Media Player are examples of
Answer:
They are all examples of software.
how many ones dose it take to get 9 tens
people can use social media responsibly by what
Answer:
spread love not hate n password diligent
By limiting their time on social media
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
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:
A ___________ is used to terminate all Java commands
Answer:
Semicolon. If you don't terminate commands with a semicolon, you get a ton of errors.
Documentary photographers strive to produce what type of image?
А.
Edited
B.
True
C.
Colorful
D.
Blurred
Answer:
B. :)
Explanation: