Write a program that reads a list of scores in one line and then assigns grades
based on the following scheme:
the grade is a if score is between 90 and 100.
the grade is b if score is between 80 and 89.
the grade is c if score is between 70 and 79.
the grade is d if score is between 60 and 69.
the grade is f otherwise.

Answers

Answer 1

Python program that reads a list of scores from the user and assigns grades based on the scheme you provided:
scores = input("Enter a list of scores separated by spaces: ")
scores_list = scores.split()
for score in scores_list:
   score = int(score)
   if score >= 90:
       print("A")
   elif score >= 80:
       print("B")
   elif score >= 70:
       print("C")
   elif score >= 60:
       print("D")
   else:
       print("F")



This program first prompts the user to enter a list of scores separated by spaces. It then splits the input string into a list of individual scores. The program then iterates over each score in the list, converts it to an integer using `int()`, and checks which grade range it falls into using a series of `if-elif-else` statements. If the score is greater than or equal to 90, the program assigns an "A" grade. If the score is between 80 and 89, the program assigns a "B" grade, and so on.
Finally, the program prints out the grade for each score in the list. Note that this program assumes that the user will only enter valid integer scores, and does not include any error handling for invalid input.

To learn more about Python; https://brainly.com/question/28675211

#SPJ11


Related Questions

A company uses cell phones that do not have SIM cards and can only be managed by a specific
network provider. The company wants to buy 3G cell phones that have SIM cards so they can switch to
any chosen provider. What network type best suits the company's needs?
A. GSM
B. CDMA
C. PRL
D. LTE

Answers

Based on the company's requirement to switch to any chosen network provider, the network type that best suits their needs is GSM (Global System for Mobile Communications).

GSM is a widely adopted standard for mobile communication and is used by the majority of the world's cellular networks. One of the key advantages of GSM is its use of SIM cards (Subscriber Identity Module). SIM cards allow users to easily switch between different network providers by simply swapping out the SIM card in their device. This flexibility provides the company with the freedom to choose the network provider that offers the best coverage, pricing, and services for their specific needs.

On the other hand, CDMA (Code Division Multiple Access) is another network technology used in cellular communication. Unlike GSM, CDMA does not utilize SIM cards. CDMA phones are typically tied to specific network providers and do not offer the same level of flexibility when it comes to switching between providers. Therefore, CDMA is not the best network type for the company's requirement to have the ability to switch to any chosen provider.

PRL (Preferred Roaming List) is not a network type but rather a list that CDMA phones use to prioritize which networks to connect to when roaming. It is not directly relevant to the company's requirement.

LTE (Long-Term Evolution) is a 4G wireless communication standard that provides high-speed data transmission. While LTE is an advanced network technology, it does not specifically address the company's need for flexibility in switching network providers.

In summary, the network type that best suits the company's needs for switching to any chosen provider is GSM.

For more questions on network

https://brainly.com/question/28342757

#SPJ11

Which of the following indicates that a fault is present in the center of this photograph?
a.) the rocks are folded into an anticline
b.)the offset and termination of the rock layers
c.) the dark coloring on rocks on the left side
d.) the lack of dark coloring on rocks to the right
e.) all of these

Answers

The presence of a fault in the center of the photograph is indicated by all of the given options: a.) the rocks folded into an anticline, b.) the offset and termination of the rock layers, c.) the dark coloring on rocks on the left side, and d.) the lack of dark coloring on rocks to the right.

What are the indications in the photograph that suggest the presence of a fault in the center?

The indication that a fault is present in the center of the photograph is represented by all of the given options:

a.) The rocks being folded into an anticline suggests deformation caused by tectonic forces, which can be associated with faulting.

b.) The offset and termination of the rock layers indicate a disruption in the continuity of the layers, which is a characteristic feature of faults.

c.) The dark coloring on rocks on the left side could be an effect of fault-related processes such as mineral deposition or alteration.

d.) The lack of dark coloring on rocks to the right could indicate a different geological process occurring on that side of the fault, potentially due to differential weathering or erosion.

Taken together, all of these observations collectively suggest the presence of a fault in the center of the photograph.

Learn more about indicated

brainly.com/question/28093573

#SPJ11

If the focus in a form moves from left to right and you want the focus to move from top to bottom, change the (fill the blank).

Answers

If the focus in a form moves from left to right and you want the focus to move from top to bottom, change the tab order.

The pointer advances from field to field according to the tab order. The order in which the fields are added to the form initially determines the tab order. The tab order may frequently become jumbled as fields are moved around the page, added from a template, or copied from another source. There are other scenarios in which you might prefer the tab order to move in a specific direction, like down a column of questions or perhaps across the page from right to left.

Data entry will be more user-friendly and effective if the tabs are arranged in the right order. The tab order will also affect how fields appear on mobile devices.

To know more about tab order click here:

https://brainly.com/question/8887133

#SPJ4

what is the usage of sustainable energy?​

Answers

its the practice of using energy in a way that "meets the needs of the present without compromising the ability of future generations to meet their own need

write a program that will read a line of text as input and then display the line with the first word moved to the end of the line. for example, a possible sample interaction with the user might be: enter a line of text. no punctuation please. this is a sample line of text. i have rephrased that line to read: is a sample line of text. this assume that there is no space before the first word and that the end of the first word is indicated by a blank, not by a comma or other punctuation. note that the new first word of the sentence must begin with a capital letter. do not use this sample line of text but rather one of your own. use methods of the string class to take this sentence apart and put it back together again. methods indexof(), the two substring() methods, and touppercase() will be useful. as you take the string apart create variables to hold the parts. variables firstword, stringwithoutfirstword, newsentence, firstcaracter, finalsentence and inputstring are descriptive variable names that will document what your program is doing.

Answers

A Python program reads a line of text from the user and then displays the line with the first word moved to the end of the line, with the new first word starting with a capital letter.

Here's a Python code that will achieve the given task:

text = input("Enter a line of text. No punctuation please. ")

first_word = ""

new_text = ""

for i in range(len(text)):

   if text[i] == " ":

       new_text = text[i+1:len(text)] + " " + first_word.capitalize() + new_text

       break

   first_word += text[i]

   

print("I have rephrased that line to read: " + new_text)

This program reads a line of text as input from the user, identifies the first word, and then moves it to the end of the line while capitalizing the first letter of the new first word. The program then displays the new line to the user.

Learn more about Python here: brainly.com/question/30427047

#SPJ4

Complete question is in the image attached below

write a program that will read a line of text as input and then display the line with the first word

what is not reviewed when you check a slideshow accessibility

Answers

The Microsoft Office Accessibility Checker often gives us an accessibility check of Word, PowerPoint, and Excel content. The one that is not reviewed when you check a slideshow accessibility is missing alt text

The Accessibility Checker often will not check for:

for poor color contrast or not using the right color. it will not call out lists that are not formatted as lists. it also does not flag text that may be too small and/or difficult to read.

Where to see the accessibility checker and its features are constant whether you are checking Word, PowerPoint, or Excel content.

Conclusively, to find slides that do not have titles, it is advisable to use the Accessibility Checker.

Learn more from

https://brainly.com/question/13472682

A biologist determines that the approximate number, Number, of bacteria

present in a culture after a certain number of days, Time, is given by the following formula:

Number = BacteriaPresent * 2ˆ(Time/10)

where BacteriaPresent is the number present at the beginning of the

observation period. Let the user input BacteriaPresent, the number of bacteria present at the beginning. Then compute the number of bacteria in the

culture after each day for the first 10 days. Do this in a loop so that the user

can see the results in a table. The output table should have headings for Day

and Number of Bacteria Present (on that day).

Answers

Python code takes user input for the initial number of bacteria and calculates the number of bacteria for each of the first 10 days using a loop and the given formula, and then outputs the results in a table format.

Here's some Python code that will allow the user to input the initial number of bacteria, and then output the number of bacteria for each of the first 10 days:

```
bacteria_present = int(input("Enter the number of bacteria present at the beginning: "))

print("Day\tNumber of Bacteria Present")
print("---------------------------------")

for day in range(1, 11):
   number = bacteria_present * 2 ** (day/10)
   print(day, "\t", round(number, 2))
```

The `int(input())` function allows the user to input the initial number of bacteria as an integer. Then, the code enters a `for` loop that goes through the first 10 days, calculates the number of bacteria using the given formula, and prints out the results in a table format with headings for the day and number of bacteria present.

Note that the `round()` function is used to round the number of bacteria to 2 decimal places, since the result from the formula may not be a whole number.

Know more about the click here:

https://brainly.com/question/31055701

#SPJ11

Python String Functions: Create a new Python Program called StringPractice. Prompt the user to input their name, then complete the following:
Length
• Print: “The length of your name is: [insert length here]”
Equals
• Test to see if the user typed in your name. If so, print an appropriate message

Really appreciate the help.

Answers

#Swap this value by your name. Mine is Hamza :)

my_name = "Hamza"

#Get input from user.

inp = input("What's your name?: ")

#Print the length of his/her name.

print("The length of your name is",len(inp),"characters.")

#Check if the input matches with my name?

#Using lower() method due to the case insensitive. Much important!!

if(inp.lower()==my_name.lower()):

   print("My name is",my_name,"too! Nice to meet you then.")

HURRY

I ONLY HAVE 4 DAYS LEFT

Select the correct answer.

A game design company develops a game in which players run a grocery store and need to keep tabs on the dollar amount of goods sold and received each day. Which statement best describes this game?

A.
It is an educational game that teaches economics.
B.
It is an educational game that teaches algebra.
C.
It is an educational game about health sciences.
D.
It is an inventory-management game.
E.
It is an educational game that teaches accounting.

Answers

E. It is an educational game that teaches accounting

Which control segment communicates with the satellites? OA master stations O B. Monitoring stations O C. Ground antennas D. Control towers​

Answers

Answer:

The control segment of a satellite system typically consists of a network of ground stations that communicate with the satellites. These ground stations can be referred to as master stations, monitoring stations, or control centers. They may use ground antennas or other types of communication equipment to establish a link with the satellites and exchange data and commands with them. Control towers are not typically a part of the control segment of a satellite system, as they are more commonly associated with air traffic control.

Explanation:

Answer:

C.

ground antennas

Explanation:

which packet type is user-generated and forwarded by a router?

Answers

The packet type that is user-generated and forwarded by a router is an IP (Internet Protocol) packet.

IP packets are the fundamental units of data transmission in computer networks, and they carry information from the source to the destination across different networks.

When a user initiates a communication request, such as sending an email, browsing a website, or streaming a video, their computer or device generates an IP packet encapsulating the data to be transmitted. This user-generated IP packet contains the source and destination IP addresses, as well as the payload, which is the actual data being transmitted.

The payload could include application-layer data, such as the contents of an email or a web page.

Once the user-generated IP packet is created, it is handed over to the network layer of the operating system, where the router comes into play. The router receives the IP packet from the user's device and examines the destination IP address.

Based on its routing table and routing algorithms, the router determines the appropriate next hop or interface to forward the packet towards its destination.

The router then encapsulates the user-generated IP packet into a new data link layer frame, such as an Ethernet frame, with source and destination MAC (Media Access Control) addresses. This frame is then transmitted over the network to the next router or network device along the path to the destination.

In summary, user-generated IP packets are forwarded by routers as they traverse the network from the source device to the destination device. The router's role is to examine the destination IP address and make decisions on how to efficiently route the packet towards its destination.

Learn more about router:

https://brainly.com/question/24812743

#SPJ11

What is one way the Internet has changed the way businesses operate?

Answers

Answer:

It makes it easier for businesses to advertise their product or the reason why people should buy from them. For example, a car dealership shows ads on websites to grab the attention of people who are looking to buy a car, in hopes that people will go to buy from their businesses.

Explanation:

6. relate how windows server active directory and the configuration of access controls achieve cia for departmental lans, departmental folders, and data.

Answers

To relate how Windows Server Active Directory and the configuration of access controls achieve CIA (Confidentiality, Integrity, and Availability) for departmental LANs, departmental folders, and data, follow these steps:

1. Implement Active Directory (AD): AD is a directory service provided by Windows Server for organizing, managing, and securing resources within a network. It centralizes the management of users, computers, and other resources, ensuring consistent security settings and access controls across the entire environment.

2. Organize resources into Organizational Units (OUs): Within AD, create OUs to represent different departments or functional areas. This allows for the efficient application of security policies and access controls based on departmental requirements.

3. Create user accounts and groups: In AD, create user accounts for each employee and assign them to appropriate departmental groups. This allows for the management of access rights and permissions based on group membership, ensuring that users only have access to the resources required for their roles.

4. Configure access controls: Apply access control lists (ACLs) to departmental LANs, folders, and data. ACLs define the permissions that users or groups have on specific resources, ensuring confidentiality by restricting unauthorized access.

5. Implement Group Policy Objects (GPOs): Use GPOs to enforce security policies and settings across the entire network. This ensures consistent security configurations, such as password policies and software restrictions, contributing to the integrity of the environment.

6. Monitor and audit: Regularly review security logs and reports to identify potential security breaches or unauthorized access attempts. This allows for prompt remediation and ensures the ongoing availability of resources to authorized users.

In summary, Windows Server Active Directory and the configuration of access controls achieve CIA for departmental LANs, departmental folders, and data by centralizing the management of resources, implementing access controls based on user roles, and enforcing consistent security policies across the environment.

Learn more about Windows Server: https://brainly.com/question/30985170

#SPJ11

smart tv has _____ intergrated with it

Answers

Answer:

an operating system

Explanation:

Name the bar that displays the information about the current document like the number of pages and words

Answers

Answer:

Word Status Bar or Status Bar

Explanation:

The various protocols in use on the Internet are said to operate in layers in which the protocol(s) at each layer solve one problem related to networked communication, and higher layers are built on top of, and rely on, the lower layers to do their jobs.

From the list provided choose the two (2) answers that correctly describe which Internet protocol relies on the other. For example: if protocol A relies on protocol B, it means that A is a higher level protocol than B, and thus protocol B must exist and work properly in order for protocol A to do its job.

Select two answers.

Group of answer choices

TCP/IP relies on DNS

HTTP relies on TCP/IP

TCP/IP relies on HTTP

DNS relies on TCP/IP

Answers

Answer:

TCP/IP relies on DNS

HTTP relies on TCP/IP

TCP/IP relies on HTTP

DNS relies on TCP/IP

Hope it helps.

in a public switched telephone network, what portion of the network is known as the local loop?

Answers

It is the section that connects every house or establishment to the closest central office.

What is a network defined as?

A set of computers connected together to pool knowledge (such printers and CDs), instruments of the entity, or enable electronic conversations make up a network. A network's connections to its computers can be made through cables, communication facilities, electromagnetic radiation, satellites, or infrared laser beams.

Describe network with an example:

Computers, servers, computer systems, network devices, peripherals, and other linked devices form a network that enables data exchange. The Internet, which links millions of people worldwide, is an illustration of a network.

To know more about Network visit:

https://brainly.com/question/28342757

#SPJ4

A financial manager was completing an annual report that contained multiple graphs explaining the company growth. If she wanted to cross-reference these graphs throughout the document, she should use the _____ feature. biliography citation caption footnote

Answers

Answer:

Caption

Explanation:

because it just works.

What does the Latin word AUDIO mean?
I vine
I conquered
I see
I hear

Answers

it would most likely mean i hear

Ignore this it a temporary note for me: SPSstudents

Answers

Answer:

okk

Explanation:

PLEASE HELP! :)
A 2018 survey of South African households found that only 10.4% of households have Internet access and
21.5% have a computer.
Which of these would be the least effective way to reduce the digital divide across households?
Choose 1 answer:
A
Providing free subscriptions to an online video courses about digital literacy
B
Partnering with an Internet Service Provider to offer discounted rates for Internet access
C
Setting up Internet infrastructure in highly populated areas
D
Donating refurbished laptops to low-income families

Answers

Answer:

A

Providing free subscriptions to an online video courses about digital literacy

Explanation:

Internet access would be needed to access the courses because they are online. It would only help those who already have Internet access.

match the term to its closest, most accurate definition. - double-system recording - foleys - automatic dialogue replacement a. sounds are created to be edited into a film. b. in what is essentially selective lip-synching, actors perform dialogue while watching a recording to replace faulty sound. c. the camera records the image and the dialogue is recorded using a separate device.

Answers

Automatic dialogue replacement: Actors recite lines of dialogue while listening to a tape in a technique that is essentially selective lip-syncing.

What in film is double system recording?

In double-system recording, which is a type of sound recording used in the making of motion pictures, the sound for a scene is recorded on a machine apart from the camera or other equipment used to record pictures. On motion pictures that were initially captured on film, double-system recording is the norm.

What distinguishes unsourced recording from a double system?

It's possible to question and remove unsourced material. In double-system recording, which is a type of sound recording used in the making of motion pictures, the sound for a scene is recorded on a machine apart from the camera or other equipment used to record pictures.

To learn more about dialogues visit:

brainly.com/question/27979708

#SPJ4

what is it important to test cabless?​

Answers

Answer:

to avoid larger problems ovr time like having to replace a whole line after it has been installed in case it happens that there may be faults you may know whether it was caused by a manufacturer error or installation error

give me facts on john john son

Answers

Answer: Story -

In 1951, John H. Johnson was selected as Young Man of the Year by the United States Chamber of Commerce. He was the first African-American to receive such honor. In 1966, he received Spingarn Medal by the National Association for the Advancement of Colored People for his contributions in the area of race relations.

Born -  

January 19, 1918, Arkansas City, AR

Died -

August 8, 2005, Chicago, IL

Spouse -

Eunice W. Johnson

(married at 1941–2005)

Children -

Linda Johnson Rice, John Harold Johnson

Explanation:

create the motorcycle class by deriving it from the vehicle class. use a public derivation. in the motorcycle class, create a private attribute named sidecar. the sidecar attribute should be data type bool. write a public set method to set the value for sidecar. write a public get method to retrieve the value of sidecar.

Answers

To create the motorcycle class by deriving it from the vehicle class, we will use public derivation. This means that the public members of the base class (vehicle class) will become public members of the derived class (motorcycle class).

In the motorcycle class, we will create a private attribute named sidecar of the data type bool. To set the value for sidecar, we will write a public set method that will take a bool parameter and assign it to the sidecar attribute. Similarly, to retrieve the value of sidecar, we will write a public get method that will return the value of sidecar attribute. This way, we can create a specialized motorcycle class that has all the functionalities of a vehicle class and also has an attribute to determine if it has a sidecar or not.

learn more about  vehicle class here:

https://brainly.com/question/28345606

#SPJ11

. Which of the following refers to the informal rules for how to behave online? A.
Internet manners (IM)
B.profile
C.user control
D.netiquette​

Answers

Answer:

D.netiquette

hope it is helpful to you

Answer: D

Explanation:

Hope this answer helps your grade!

what is the result obtained after data processing called?​

Answers

Answer:

the result after data processing is called output

Answer:

The meaningful result obtained after processing is known as information. The collection of computer programs and related data that provide the instructions telling a computer what to do is called software

Select the correct answer from each drop-down menu.
What should companies and industries practice to avoid the dangers from AI and robots?

Companies and industries should train (BLANK ONE)
and implement effective (BLANK TWO).

Blank one options:
A- HR resources
B- AI resources
C- Customers

Blank two options:
A- Testing programs
B- incentive programs
C- Marketing programs


I accidentally started the test before doing the lesson, I need some help. I will give brainliest for a correct answer.

Answers

To avoid the potential dangers associated with AI and robots, companies and industries should practice AI resources  and  AI- Testing programs

Blank one: B- AI resources

Companies and industries should invest in training their AI resources.

This involves providing comprehensive education and training programs for employees who work directly with AI and robotics technologies.

This training should encompass not only technical skills but also ethical considerations and best practices in AI development and deployment.

By ensuring that their AI resources are well-trained, companies can minimize the risks associated with AI and make informed decisions about its implementation.

Blank two: A- Testing programs

Implementing effective testing programs is crucial in mitigating the dangers of AI and robots.

These programs involve rigorous testing and validation of AI algorithms and robotic systems before they are deployed in real-world settings.

Thorough testing helps identify potential biases, errors, or unintended consequences that could pose risks to individuals or society at large.

Companies should establish robust testing protocols that include simulations, controlled environments, and real-world scenarios to evaluate the performance, safety, and reliability of AI and robotic systems.

For more questions on AI

https://brainly.com/question/20339012

#SPJ8

please can someone help me with this?

please can someone help me with this?

Answers

Explanation:

there fore 36:4 = m¤

46:6

20:16

#von5

One technique to find the "things" that need to be included in the new system begins by starting with a user and the use cases and then try to identify the necessary informational "things." This technique is called the _______.​ a. ​ check list technique b. ​ domain analysis technique c. ​ noun technique d. ​ brainstorming technique

Answers

Answer:

Coding is a skill where you take instructions (the steps in a task) and translate it into a languaage.

Explanation:

Coding is a skill where you take instructions (the steps in a task) and translate it into a language the computer understands since computers do not communicate like humans. They communicate in a language called BINARY and

Other Questions
Which pre- Columbian civilization was the earliest to exist? ALOT OF POINTS please help.What is the Israeli-Palestinian Conflict? Why are they fighting?What is the One State Solution? What is the Two-State Solution?What are the pros and cons of the One and Two-State solution?Based on the readings, what do you believe is the best solution to this conflict and why?Write 5-7sentences about each question I will mark brainlyist What are the values of the variables in the triangle below? you are collecting the same data and receive very different results from your classmates. what do you do? under which of the following conditions does a b-cell have an opportunity to edit (change) its fully functional epitope-specific receptor? a b-cell can undergo receptor editing when: Caden has 35 buttons. Todd has b more buttons than Caden. Write an expression that shows how many buttons Todd has. (science) hurry help!!All commonly abused drugs are illegal.true or false 1. what do you think will happen when you move the transmitter electron? 2. when electrons move, they create a field. set the field display type to full field and the transmitter movement to oscillate. describe what is happening. 3. change the frequency and amplitude sliders and describe what happens to the fields. A company estimates that warranty expense will be 2% of sales. The company's sales for the current period are $146,000. The current period's entry to record the warranty expense is:___. 7 is 1/10 ofpls help and thank you :) Change 90 euros to pounds Ann Nguyen would like an installment loan for $5,750. Her bank will loan her themoney at 18% for 18 months. Her insurance company will loan her the money at18% for 24 months. How much money will she save by choosing the smarter loan? Holding the prices of goods constant, how does an increase in income affect consumer spending on necessities versus luxuries?. 4. In what ways did the Plague alter the relationship betweenhumans and their faith in God? Explain your answer. The slope of (-3, 2) and (7, 6) Show your complete solution Who was the first president of the U.S.A Which of the following is NOT a type of healthcare policy limitation? a. coinsurance b. copayment c. tiered benefits d. stop-loss benefit. Howmuch interest will be earned on $ 5000 in 5 months if the annualsimple interest rate is 1.5%?a)$31.25b)$50.25c)$33.45d)$105 Challenge 2: The Bill of Material for Product A is as follows:A|--------------------------------------| |B(1) D(2)| |C(2) B(1)|C(2)The following information about A's components is available:Item B C DQuantity Policy Lot for Lot Fixed Q = 1000 Lot for LotLead Time (Weeks) 2 1 3Scheduled Receipts none 1000 in Week 1 noneBeginning Inventory 0 200 0Safety Stock Req's none none noneThe Master Schedule for A calls for a start quantity of 250 units in Week 6.Prepare the material plan for item C. How many moles of MgCl2 are present in 60.0 mL of 0.100 M MgCl2 solution