A programmer has a need to round many numeric values to the nearest integer. Which of the following best explains the benefit of using a list as a data abstraction in this situation

Answers

Answer 1

Answer:

Keeping the numeric values in a list makes it easier to apply the same computation to every data element.

Explanation:

A list or array in programming is a data structure, that has the location for each item it holds indexed. It eliminates the need to constantly create a variable to compute items of the same data types.

The list can store items of the same data type and iterate over them to compute the same calculation on each of them.

Answer 2

Lists are values which are seperated by commas and populated within square brackets. They are mutable and values could be easily accessed, appended, deleted or replaced. Hence, the use of a list for data abstraction is beneficial in that the round function could be easily applied to all the values in the list.

Rounding the values in the list coukd be easily done using for loop which takes each value in the list one at a time, rounds them to the nearest integer and places them into another list.

Using the a python list comprehension thus:

Given a list of numeric Values :

my_list = [1.2, 1.4, 1.5, 1.7]

rounded_int = [round(x) for x in my_list]

Learn more : https://brainly.com/question/20533392


Related Questions

For Internet Protocol (IP) v6 traffic to travel on an IP v4 network, which two technologies are used

Answers

Answer:

These technologies are: Dual Stack Routers, Tunneling, and NAT Protocol Translation.

Explanation:

Dual Stack Routers -  This is the process in which a router’s interface is attached with IPv4 and IPv6 addresses

Tunneling -Tunneling is used as a medium to help the different IP versions  communicate with the transit network.

NAT Protocol Translation -  This helps the IPv4 and IPv6 networks communicate with each other since they do not understand the IP addresses of each other since, they are different IP versions.

The two technologies that are used when Internet Protocol (IP) v6 traffic travel on an IP v4 network are datagrams and ipv6.

A datagram can be defined as a transfer unit that is associated with a packet-switched network.

Internet Protocol version 6 (IPv6) is a protocol used for packet-switched inter-networking.

The IPv6 is a protocol used for end-to-end datagram transmission through multiple Internet Protocol networks.

In conclusion, the two technologies that are used when Internet Protocol (IP) v6 traffic travel on an IP v4 network are datagrams and ipv6.

Learn more in:

https://brainly.com/question/14851068

Soft skills are more likely to be transferable than hard skills?

True or false

Answers

Answer:

The correct answer is true.

Explanation:

Examples of Soft skills are

Communication TeamworkPositive Attitude etc.                              

These skill can be applied to any job. That is why we have said that soft skill are transferrable.

Now let look at hard skill,

Hard skill like programming in python. Making the architecture of computer. These skill can not be transferred to a new job like authoring a book.

so, hard skills are not easily transferrable.

Which of the following is an object-oriented language?

A. C
B. C++
C. BASIC
D. COBOL

Answers

Answer:

C++

Explanation:

Significant object-oriented languages include: (list order based on TIOBE index) Java, C++, C#, Python, R, PHP, Visual Basic.NET, JavaScript, Ruby, Perl, Object Pascal, Objective-C, Dart, Swift, Scala, Kotlin, Common Lisp, MATLAB, and Smalltalk.

The programs' structure is made obvious via OOP. OOP makes the C++ code easier to maintain, alter, and debug by encouraging “Don't Repeat Yourself” (DRY) programming practices. OOP allows for quicker development times and less code needed to create fully reusable apps. Thus, option B is correct.

What role of C++ as an object-oriented language?

The following are several justifications for calling C++ a partial or semi-object oriented language. The primary action is not a class action.

Object-oriented programming is supported by C++, but it is not a feature of the language itself. You don't even need to use an object once to construct a legitimate, well-coded, and brilliantly styled C++ program.

Therefore, Object-oriented programming can be implemented using C++'s core features. It contains classes and objects as well as the OOP principles of inheritance, encapsulation, abstraction, and polymorphism. It also has access to specifiers.

Learn more about language here:

https://brainly.com/question/29751978

#SPJ2

If you had three extra siblings, what would be your birth order and what personalities would you like them to have?

Answers

Answer:

mixed personalities l

that will be cool

Answer:

I already have 4 step brothers, 2 real brothers, 1 step sister, and a half sister, so 3 more people would be a lot. If I got to pick their personalities and gender, I would want 1 more sister and 2 more brothers. I would watn a more alt brother, a more fem brother, and an indie sister. Kinda just an aesthetic type for them.

which part of the brain controls the movement of muscles​

Answers

Answer:

PLEASE MARK AS BRAINLIEST

Explanation:

Cerebellum

Cerebellum. The cerebellum (back of brain) is located at the back of the head. Its function is to coordinate voluntary muscle movements and to maintain posture, balance, and equilibrium.

which of the following types of correspondence is used to inform the reader of new information such as a policy change

Answers

Answer: Memo

Explanation: Have a good day, pls mark me brainliest <3

If you would like to compare information on two different Web pages, you should _____.
scroll through the pages
the home page
use tabs
organize bookmarks

Answers

Answer:

Use Tabs

Explanation:

I had this lesson on odyessy ware and this was right the other guy is wrong

Answer:

Use Tabs is also correct on Edge nuity

Explanation:

i have Keyboarding and Apps

Major innovations made from the establishment of abucus to the 5th computer generation

Answers

Answer:

Cogs and Calculators

It is a measure of the brilliance of the abacus, invented in the Middle East circa 500 BC, that it remained the fastest form of calculator until the middle of the 17th century. Then, in 1642, aged only 18, French scientist and philosopher Blaise Pascal (1623–1666) invented the first practical mechanical calculator, the Pascaline, to help his tax-collector father do his sums. The machine had a series of interlocking cogs (gear wheels with teeth around their outer edges) that could add and subtract decimal numbers. Several decades later, in 1671, German mathematician and philosopher Gottfried Wilhelm Leibniz (1646–1716) came up with a similar but more advanced machine. Instead of using cogs, it had a "stepped drum" (a cylinder with teeth of increasing length around its edge), an innovation that survived in mechanical calculators for 300 hundred years. The Leibniz machine could do much more than Pascal's: as well as adding and subtracting, it could multiply, divide, and work out square roots. Another pioneering feature was the first memory store or "register."

Apart from developing one of the world's earliest mechanical calculators, Leibniz is remembered for another important contribution to computing: he was the man who invented binary code, a way of representing any decimal number using only the two digits zero and one. Although Leibniz made no use of binary in his own calculator, it set others thinking. In 1854, a little over a century after Leibniz had died, Englishman George Boole (1815–1864) used the idea to invent a new branch of mathematics called Boolean algebra. [1] In modern computers, binary code and Boolean algebra allow computers to make simple decisions by comparing long strings of zeros and ones. But, in the 19th century, these ideas were still far ahead of their time. It would take another 50–100 years for mathematicians and computer scientists to figure out how to use them (find out more in our articles about calculators and logic gates).

Explanation:

What is one way to make a presentation stand out by using PowerPoint Online?

Use different images and videos throughout the presentation.

Use a plain white background throughout the presentation.

Use the same font and font size throughout the presentation.

Use the same slide format throughout the presentation.

Answers

Answer:

Answer: Use different images and videos throughout the presentation.

Explanation:

I just took this test and got it correct :)

Answer:

give person on top brainlist they are right i got 100 percent

Explanation:

thank you

Name the stringed instrument that's known for its haunting sound, wide pitch capability, and large numbers in the orchestra.

A. Harp
B. Violin
C. Viola
D. Clarinet

The subject is Music Technology.

Answers

Answer:

VIOLIN

Explanation:

The VIOLIN is the stringed instrument that's known for its haunting sound, wide pitch capability, and large numbers in the orchestra.

I think the correct answer would be harp!! BRANLIEST plz

Match the image to its type.


Rgb messes up taking pics from a iPhone 11 to a computer sorry it looks bad

Answers

Warm Colors:

Red flowersOranges

Cool Colors:

Blue skiesPurple butterflies

Neutral Colors:

Brown woodWhite birds

Reds, oranges, and yellows are considered warm, and greens, teals, blues, and purples are considered cool. Colors such as white, black, brown, or gray are all neutral.

select the correct option
and thanks

Answers

M cucumber
Should be the ans

Answer:

Cucumber

Explanation:

Cucumber has the largest portion. .08 kg/tray/day. The entire graph equals 100%, and the cucumbers take up 17.8% of it.


An identifier that allows multiple elements in an HTML document to be
styled in the same way

Answers

Answer:

CSS , (Possibly Divs)

Explanation:

I have picked CSS, and possibly Div's as my main explanation and answer here is why.

CSS - Cascading Style Sheets, this allows you to edit multiple elements in a HTML document, such as the color or any CSS attribute.

If you would like to learn more about CSS, and the multiple options that CSS provides such as Internal Styles, External Styles, lastly In-line styles. I highly recommend the resource "W3Schools".

DIV's - Divs are basically like a container, where you can input styles into this container that can effect those elements such as if I want the background-color, of the div it would effect all the elements inside that div. However, I said this could be a possibility since it isn't CSS where it is styled however you can group these elements to one div. You can also edit the CSS of the Div to effect it.

Give short answers.
h.
How have computers affected education?
i.
What roles do computers play at home?

j.What effects have computers had on the practice and enforcement of law?

k. How have computers changed entertainment?

Answers

Answer:

H) Well it depends how you put it. I'm Doing virtual School for my education. And it is so easy when we have technology out their to provide the help that we need. So I think it has affected education pretty good. You can Also google the answers.

I) Looking up Answers at home

J) Parents can check up on their child's school work and see if they can help them. Also The law is involved in Education.

K) It depend's on how you put it

Explanation:

Short Answers

6
development with reference to Nepal.
Mention the objectives of sustainable development,
How can you relate the role of environment while can​

Answers

Answer:

objective of sustainable development are:

Explanation:

1.to help in poverty alleviation

2.to conserve the environment effectively

3.to gain human development and progress

4.to use resources and means carefully

If you got band from a local library, what would be the reason for it besides shouting and talking? You're answer has to fit you're personality?

Answers

Answer:

I would get a band from the library because I check out ten books and returned them in a week. I also would just be in the library all the time and they would get frustrated. That or I would spend hours talking to a librarian about my favorite books and they would get fed up with me.

Whenever you are designing a project for commercial use (making money) and need to use photographs with people in them you must obtain a__________release.

Answers

Answer:

Copyright

Explanation:

Debugging is finding and fixing problems in an algorithm or program. True
or False.
False
True

Answers

The correct answer is True

Debugging is finding and fixing problems in an algorithm or program is True statement.

Debugging is indeed the process of finding and fixing problems, errors, or bugs in an algorithm or computer program.

When a program does not produce the expected output or behaves unexpectedly, programmers use debugging techniques to identify and resolve the issues.

This involves analyzing the code, checking for syntax errors, logical errors, and unexpected behavior, and making the necessary corrections to ensure the program functions correctly.

Thus, the given statement is True.

Learn more about Debugging here:

https://brainly.com/question/9433559

#SPJ6

PLEASE HURRY!!
Look at the image below!

Answers

The answer would be 2&5 because this is correct
The answer should be 2&5 I’m not 100% sure on this but it makes the most sense

Could u give me brief summary of New Years

Answers

....................................

Answer:

happy new year friend

sorry for late..

Anyone know the logic notation of this following logic circuit?

Answers

Answer:

Concept: Logic Circuit

You have two variables A and B A and B go to the XOR logic command.B goes to the NOT operator Lastly the result of both XOR & NOT go to the OR operator Please rate positively and give brainlist

A common error by beginning programmers is to forget that array subscripts start with ________.
a. 0
b. the number of elements in the array
c. spaces
d. 1

Answers

Answer:.

Explanation:

The First Amendment of the Constitution is one of the most important parts of the Bill of Rights. What specific rights does this amendment guarantee to every American citizen?

Answers

Answer:

The First Amendment to the U.S. Constitution protects the freedom of speech, religion and the press. It also protects the right to peaceful protest and to petition the government

Explanation:

if this answer is correct make me as brainlelist

Answer:

its guarantees the freedom of speech, religion, and the freedom of the press.

Explanation:

Four students measured the mass of a piece of metal whose accurate mass is 34.75g. Their results are 34.2g, 33.75g, 35.0g, and 34.69g. Explain whether the results are precise or accurate​

Answers

Answer:

The given data are more precise than they are accurate

Explanation:

From the given measurements, we have;

The accurate mass = 34.75 g

The deviations from the accurate measurement is as follows;

34.2 g - 34.75 g = -0.55 g

33.75 g - 34.75 g = -1 g

35.0 g - 34.75 g = 0.25 g

34.69 g - 34.75 g = -0.06 g

For precision measurement, we find the average deviations as follows;

The sum of the deviations = -0.55 g - 1 g + 0.25 g - 0.06 g = -1.36 g

The average deviation = -1.36 g/4 = -0.34 g

For accuracy measurement, we find the average of the absolute deviations as follows;

The sum of the absolute deviations = 0.55 g + 1 g + 0.25 g + 0.06 g = 1.86 grams

The average absolute deviation = 1.86 g/4 = 0.465 g

Therefore, the magnitude of the average deviation is less than the magnitude of the absolute deviations, therefore, the given data are more precise than they are accurate

In which situation is coauthoring of presentations primarily utilized?

A reviewer must be able to make changes to a presentation after an author creates it.
Multiple authors must be able to simultaneously make changes to a presentation.
Multiple reviewers have to be able to view one another’s changes after they are made.
One author and one reviewer work on a presentation at different times.

Answers

Answer:

A i belive

Explanation:

Answer:

B) Multiple authors must be able to simultaneously make changes to a presentation.

Explanation:

Co indicates being part of a whole. So this means that two or more authors are working on this project simultaneously. Such as co-management; two bosses working together in an equal position.

can someone please help its late

Answers

Answer:

The correct answer to this question is given below in the explanation section.

Explanation:

The labels to AS engine are given below from left to right respectively.

FanCompressorCombustionTurbineMixer Nozzle

Fan: Drawer air into the engine

Compressor: Compressor spins the air very fast. This sequeezes or compresses the air

Combustion: Air and fuel are mixed together and ignited in the combustor and it gets super hot and gas expanded.

Turbine: The hot gases enter the turbine, causing the blade on it to spin.

Mixer: The mixer combines the hot air with outside air in the engine. This reduces the heat and noise that is coming from the engine.

Nozzle: nozzle is where the exhaust is coming out from the engine, creating thrust. It works according to newton's third law.

The Internet:

O A. only gives us access to our local communities.

O B. hinders our ability to influence people.

O C. limits us to local social networking sites.

O D. enables us to join global online communities.​

Answers

Answer:

D- it enables us to join global online communities.

Explanation:

Thanks to social media and other websites, content you produce can be seen all over the world.

Can someone help me I am coding.

Answers

Answer:

i will help u

Explanation:

what did you want

can some one please help

Answers

Answer:

the thing is black for me. retake?

Explanation:

Help with my Nintendo DS please I now it’s not school related but I need it for my little sister

Answers

Answer:Go to settings and do factory reset!

Explanation:

Other Questions
Use your knowledge of modern atomic theory and bonding to explain each of the following experimental observations. (Your explanations should be specific.) Refer to both substances when comparing. Within a family such as the alkaline earth metals, the ionic radius increases as the atomic number increases. The radius of the bromine atom is smaller than the radius of the bromide ion, Br-1. The first ionization energy of aluminum is lower than the first ionization energy of magnesium. Which statement is true? 7.117.1 7.11>7.1 7.11 Vhich statement describes an example of a limit on the power of the House of Representatives?The president can veto its bills.The Senate can oppose its bills.O The House can propose only revenue bills.The House cannot propose revenue bills.w While the new Americans imitated the classical Greekand Roman republics in many ways, they did use all aspects of this classical form of government. Why did Enlightenment thinkers who formed the U.S. government decide not to include certain aspects of Greek government in their system? Does anybody know how to make sure if your computer has a virus or not? but without the cost of money? 2. What was the major appeal of Andrew Jackson during the election of 1828? O He had won major battles in the Revolutionary War. A Andrew Jackson was from a wealthy family whom favored industrialization and capitalism. O He had been in politics a long time and new all about the system. He was seen as the common man who would listen to the people. Which of these statements about tags is false?Group of answer choicesTheir font is center-aligned by default.They serve as the label for a row or column.They automatically display as the first row or column.Their font is bold by default. For the Jewish people, religious life affected Family and... 9 1/12 = k/9 Solve for K A rabbit moves n times as fast as a squirrel . A fox moves m times as fast as a rabbit . The fox moves how many times as fast as the squirrel? which graph best models y>2x-4 A function, f left parenthesis x right parenthesis comma models the depth of water in a wading pool that is filling at a rate of 11 gallons per minute. Which of these describes why f left parenthesis x right parenthesis can be considered a linear function? I. For every 1 minute interval, the depth of water in the wading pool increases by the same amount. II. The function grows by equal factors every minute. III. The slope of the function is constant. Someone plz help its 11:30pm i cant think.what is salmonella? how can you avoid salmonella? The drama club at NAMS sells hot chocolate and coffee at the high school football games. At the last game, they had sales of $200. They need to keep track of how many of each type drink was sold so that they can make predictions for future sales. Monica knows that they used 275 cups that night. If the hot chocolate sells for 75 cents and coffee sells for 50 cents, how much of each type of drink were sold? 100 points!! word bank!ArticleHave you ever cut an apple in half and looked at the layers inside? When you cut something in half, the resulting view is called a cross section. When you look at the cross section of an apple, you see several layers: the skin, the pulp, the core, and the seeds. Much like the apple, Earth is made up of layers, too. If you could look at a cross section of our planet, you would see the crust. the mantle, the outer core, and the inner core. If Earth were an apple, the crust would be the apples skin. The mantle would be the apples pulp, making up most of the inside. Earth also has a central core, similar to an apples core, though Earths core does not contain any seeds! Of course, scientists cannot cut the whole planet in half to see a cross section the way you can with an apple. How do you think scientists know about Earths internal layers?Scientists divide Earths interior into distinct layers.Scientists can distinguish different layers in Earth depending on the properties used to identify each layer. For example, scientists identify the crust, mantle, and core based on each layers basic chemical composition. In other words, the crust, mantle, and core are each made up of different chemical elements. The crust and mantle are composed primarily of the elements oxygen and silicon. These are known as silicates. Silicates of the mantle contain heavier elements. This makes them denser than those found in the crust. The core is composed of the densest materials, primarily iron and nickel. Earths layers can also be identified by using each layers physical state of matter. The crust and the uppermost part of the mantle, together, make up a layer called the lithosphere. The lithosphere is the cool, rigid, outermost layer of Earth. The lithosphere is in the solid In a typical silicate molecule, a silicon atom is bonded to four oxygen atoms. The atoms form a crystal structure.Scientists use models to represent the different layers of Earths interior.When constructing a model of the layers of Earth, scientists need to consider the chemical composition, state of matter, and thickness of each layer. Just like the skin of an apple, Earths crust is very thin compared to the other layers. It is about 2570 km thick beneath the continents. Under the oceans, the crust is only about 57 km thick; however, it is much denser. The mantle is much thicker than the crust is, taking up most of Earths volume. The mantle begins directly beneath Earths crust. It reaches all the way to the outer core, about 2,900 km below the planets surface. In other words, Earth is about 1% crust, 83% mantle, and 16% core.The crust and uppermost mantle are solid. The rest of the mantle is solid with plasticity. The core is made of very dense iron and nickel. The outer core is liquid, because it is hot enough to melt the iron and nickel. The inner core is solid. Even though it is as hot as the outer core, there is so much pressure at the very center of Earth that the iron and nickel stay in a solid state.Looking to the Future: Exploring Earths InteriorDespite what you may have read in stories or seen in movies, scientists have never journeyed to the center of Earth. In fact, scientists have never made it through Earths crust! However, this has not stopped them from trying. The crust at the bottom of the oceans is much thinner than the crust of the continents. Therefore, drilling through the oceanic crust is the best chance that scientists have to make it to the mantle. Jacksons Bakery sold 102 ice cream cakes and 68 fruit tarts in one weekend. Ice cream cakes are $27 and fruit tarts are $15. How much did Jackson's Bakery make in one weekend what is gene?denfine gene What is the 8th term in the arithmetic sequence defined by the explicit formula An = 2n + 7 25 yd. 4 in. Divided by 8 An 18% commission on a video game sale is $63.81. How much is the video game?