Code the problem in Python 2.

Problem 4

You've been hired to write a Python program for scanned items at a grocery mart. The scan is of the form [x, y, z] where x is the number of items purchased, y is the price of the item, and z is whether the item is taxable (7% tax on grocery items). For example, assume you were given the list below:

[[1, 1.45, 1], [3, 4.24, 1], [2, 14.00, 0], [4, 1.25, 1]]

This means the amount owed is:

amt=1(1.45)(1.07)+3(4.24)(1.07)+2(14.00)+4(1.25)(1.07)

=((1.45+12.72+5.00)1.07)+28.00

=19.17(1.07)+28.00

=20.51+28.00

=48.51

Be sure to add "comments" explaining what the code is doing.

Code The Problem In Python 2.Problem 4You've Been Hired To Write A Python Program For Scanned Items At

Answers

Answer 1

Answer:You've been hired to write a Python program for scanned items at a grocery mart. The scan is of the form [x, y, z] where x is the number of items purchased, y is the price of the item, and z is whether the item is taxable (7% tax on grocery items). For example, assume you were given the list below: [[1, 1.45, 1] ..

Explanation:


Related Questions

Which of the following gives one reason that explains why computers can solve logic problems? Computers can executes steps repeatedly without error. Computers follow instructions in a random sequence. O Computers evaluate criteria without direction. Computers are a good option for solving all problems.​

Answers

Answer:

Computers follow instructions in a specified sequence.

Computers can replace programmers.

Computers evaluate criteria as instructed and take the specified action.

Computers are capable of executing the same steps over and over without error or fatigue.

answer is A, C and D

2

Explanation:

Answer:

Computers can executes steps repeatedly without error.

Explanation:

or A

The first Tacoma Narrows Bridge in Washington crossed over a strait in Puget Sound. At the time the suspension bridge was built, construction workers noticed that it moved up and down in the wind. Measures to stop the bridge's movement were ineffective, but the bridge was opened to the public on July 1, 1940. The bridge collapsed on November 7, 1940. Luckily, no people were seriously injured. Determine which technological design criteria the Tacoma Narrows Bridge did and did not meet. Explain your answer.

Answers

Answer:

They failed to create, test, and retest a model.

Explanation:

Technological design refers to the series of steps involved in developing a technology for use. Steps involved in the technological design include; identifying the problem, making research on it, proffering certain solutions, and choosing the best, developing a model, testing and refining the model, and then presenting the final solution.

The construction workers opened up the bridge even when they knew that the measures were ineffective. They did not create a model and test it thoroughly to confirm that it would work and was effective before launching the final solution. This oversight led to the collapse of the bridge.

Answer: explained

Explanation:

Technological design refers to the series of steps involved in developing a technology for use. Steps involved in the technological design include; identifying the problem, making research on it, proffering certain solutions, and choosing the best, developing a model, testing and refining the model, and then presenting the final solution.

The construction workers opened up the bridge even when they knew that the measures were ineffective. They did not create a model and test it thoroughly to confirm that it would work and was effective before launching the final solution. This oversight led to the collapse of the bridge.

Which are effective thesis statements? Check all that apply.
In this paper, I will talk about healthy foods.
Adopting a positive attitude can reduce stress, prevent anxiety, and help you lead a better life.
Video games can teach important values such as teamwork, perseverance, and dedication.
This paper will show the many ways technology can help people lead healthier lives.
Electives classes are very popular in high schools.
O Sugary drinks, snacks, and desserts should be avoided.

Answers

Question:

Which are effective thesis statements? Check all that apply.

Options:

In this paper, I will talk about healthy foods. Adopting a positive attitude can reduce stress, prevent anxiety, and help you lead a better life. Video games can teach important values such as teamwork, perseverance, and dedication. This paper will show the many ways technology can help people lead healthier lives. Electives classes are very popular in high schools. Sugary drinks, snacks, and desserts should be avoided.

Answer:

B.) Adopting a positive attitude can reduce stress, prevent anxiety, and help you lead a better life.

C.) Video games can teach important values such as teamwork, perseverance, and dedication.

D.) This paper will show the many ways technology can help people lead healthier lives.

Explanation:

I just did the assignment on edge 202 and got it right!

The effective thesis statements are :

The adopting of the positive attitude can reduce the stress, Video games can teach us important values such as teamwork,technology can help people lead healthier lives. What is a thesis?

A thesis or a dissertation is research that is done by the candidate for taking an academic degree.

The research is usually done to find a solution to the problem or the hypothesis. The thesis is thus a work of art that explains the details of reaserach.

The above statement tells us that a positive attitude can reduce stress. Video games teach us teamwork and technology is making lives healthier.

Find out more information about the thesis.

brainly.com/question/17915079

In computer programming, what is a conditional?

Answers

Answer:

In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language, which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false. Apart from the case of branch predication, this is always achieved by selectively altering the control flow based on some condition.

Explanation:

Conditional (computer programming) In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language, which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false.

Conditionals essentially test for true and false.

For instance, in python:

if 1 > 0:

   the code does something.

Since 1 is greater than 0 the conditional is true, but if the if statement is false, for instance:

if 1 < 0:

   the code does something

else:

   the code does something else

The if statement is skipped because 1 is not less than 0 and the else statement runs.

What is an object?

a. An element on a Web page that contains data and procedures for how that item

will react when activated

b. An element on a Web page that expedites the downloading of Web pages

c. An element on a Web page that condenses the amount of space the page uses in

a computer's cache

d. An element on a Web page that interacts with all programming languages and

enables them to function universally with all browsers

Answers

Answer: I believe the answer is A.

yall how do you tell someone you like them
(I'm in high school so like)

Answers

Answer:

Write it down on paper and tell them or just hang out with them and flirt and maybe hint at them that you like them. That maybe will help if not tell me.

Explanation:

Keeping your lens clean will help you avoid smudges or spots on your photographs

Answers

Answer:

use a towel

Explanation:

Answer:

Yes the wipe should help on cleaning it and it will remove spots.

Explanation:

What is the purpose of a linear trendline?

graphically represent trend of current data and predict the future of a steady rate
graphically represent trend of current data rate in an up-down trend
graphically predict the future of an up-down rate
graphically represent trend of current data and predict the future of a sporadic rate

Answers

Answer:

graphically represent trend of current data and predict the future of a steady rate

Explanation:

Answer:

A. graphically represent trend of current data and predict the future of a steady rate

Explanation:

got it right

Add my ps4 account FG_Colut_ ωωω

Answers

free points ?
jfkdhsjfka

Answer:

i will

Explanation: for points on here bro

2.7 code practice question 1

Answers

Answer:

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

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

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

a = (max(x, y, z))

print ("Largest: " + str(a))

Explanation:

Let me know if this works!

hi. I am having trouble understanding what to do with this assignment. I don't understand what a personal style is and I asked a lot of people, but they are still not helping. I am not good at coming up with things to write about but this just makes it harder. can you please help me figure out what kind of things I should write about?​

Answers

Answer:

U need to make a truly awesome web page that says you

Explanation:

what can technology tools help you as a student at the present time?
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.​

Answers



it doesn’t let me type it in, click on my photo attachment tho:)

help hurry isap ILL mARK BRAINLEST!!!!!


Which character is often used to identify registered trademarks and is available on the Insert tab and Symbols group?


?

>



±

Answers

Answer:

Explanation:

the tm stands for TradeMark

Which of the following would be studied using an Earth-observing satellite?
tracking changes in land used for corn production
tracking heat and energy being released by the earth
O tracking atmospheric changes resulting from volcanic eruptions
tracking cloud cover and its relationship to global warming
Help plz will give BRAINLYIST

Answers

Answer:

climate is what you expect and weather is what you get. More formally, climate is the long-term average of temperature, precipitation, and other weather variables at a given location

Explanation:

Answer:

Geography

Explanation:

Leila was writing an article in which she used stock market data extracted from Yahoo Finance. She was about to complete it. She has mentioned in the article that she extracted data from Yahoo finance. If she sends it to some journal for publication, then will it be necessary to get permission letter from Yahoo? Is it against the copyright rules? Explain your answer​

Answers

Reusing Yahoo's data is not a violation of copyright, especially when applied under a "fair use" case like Leila's paper (because it is merely citing a previous work and creating an original response to it). However, even if her paper did not fall under fair use guidelines, data is not copyrightable because it does not meet the US copyright threshold of "creativity and originality." In fact, even if she used bar charts or other data visualizations from Yahoo Finance, these are not original enough to give Yahoo any sufficient claim of copyright ownership, so Leila need not ask for permission.

Please mark as Brainliest.

I Have a Kodak pixpro camera and I put my memory card in (sandisk) but it keeps on saying "card is not formatted" then it gives me the option of "format" "doing so will clear all data" "yes or no" but i barely bought the memory card and the camera , so What do i do ? I never used the camera or the memory card . (PLEASE HELP )

Answers

If you've never used the camera, and you're fairly certain there aren't any pictures on the memory device, then it's safe to format the disk so that you set up the table of contents properly. That way the computer can read the data in the right sectors and so on. I would choose the option "yes" and follow the instructions on the screen. It should lead you to a blank disk so you can then fill it up with future pictures down the road.

If you think there are pictures on the card and you want to retrieve them, then try putting the card into a different memory reader and see if the same message pops up. Chances are there are slightly different formats that aren't being compatible in some way if this is the case.

Which should you consider when selecting a highlighting color?
size
equality
alignment
contrast

Answers

Answer:

contrast

Explanation:

Answer:

I'm pretty sure it's contrast

Explanation:

It would be contrast because when you're looking for a highlighting color, you'd want to use colors that stand out from the rest. This helps you find what you want to see again very easily.

I'm sorry if this is wrong, but if it's right pls vote me brainliest

An represents how you look or appear online

Answers

Answer:

Explanation:

what is the question

Answer:

we cant help if you dont give us all the info

Explanation:

Please help!! I need a correct answer

Answers

Answer:

I believe the correct answer is D

Explanation:

Answer:

c

Explanation:

Note: For Python 2
The problem says, “Monthly Minimum Payment Calculator that calculates a month’s minimum credit card payment based on the following two parameters; Minimum required percentage and Credit card balance.” (This is what we need to code in Python 2)
Then, there is a resource that can be used to help with the problem, “Credit cards also use fairly simple math, but it may take some legwork to find out which numbers to use. Lenders typically use a formula to calculate your minimum monthly payment. For example, your card issuer might require that you pay at least 2% of your outstanding balance each month. 1 They might also have a dollar minimum of $25 (so you pay whichever is greater). It’s usually wise to pay more than the minimum (ideally, you pay off the entire balance every month), but the minimum is the amount you must pay to avoid late charges and other penalties.”
Then it gives us an example: “Example: Assume you owe $7,000 on your credit card. Your minimum payment is calculated as 3% of your balance:
Payment=MinRequired x Balance
Payment=0.03 x $7,000
Payment=$210

Answers

In python 2:

def monthlypayment(min_required, balance, dollar_minimum):

   if dollar_minimum > min_required * balance:

       return "Your minimum payment is $" + str(dollar_minimum)

   else:

       return "Your minimum payment is $" + str((min_required * balance))

What makes a sequence of database operations a transaction? All database operations must either complete in its entirety or have no effect Atomicity, Consistency, Isolation, Durability All results must conform to existing constraints in the database Database operations cannot be transactions

Answers

Answer:

All database operations must either complete in its entirety or have no effect Atomicity, Consistency, Isolation, Durability

Explanation:

A database transaction must be atomic in the sense that it must either be complete in its entirety or would have no effect. Consistent-it should be by conforming to the constraints that are found in the database. Isolated - in the sense that it must not be seen to affect other transactions. Durable – there must be possibility for it to be written to a storage that is persistent.

The sequence of the database operations is made as a transaction as all the database operations must either complete in its entirety or have no effect Atomicity, Consistency, Isolation, Durability.

What is database transaction?

The database transaction must fulfill all four characters, that is must be atomic- it should be complete within itself; it should be consistent- conforming to the existing database; it should have isolation- not affecting other transactions; and should have durability- for longer storage.

Therefore, option A. is correct.

Learn more about database, here:

https://brainly.com/question/1160209

#SPJ5

Use the file format if you need to create macros in an Excel file.

Answers

Answer:

Use the xlsm file format if you need to create macros in an Excel file.

Explanation:

Answer:

E

Explanation:

xlsm file

Which of the following will NOT correctly increment the value by one of a previously initialized integer variable named counter?


counter + 1;

counter++;

counter = counter + 1;

counter += 1;

All of the above will correctly increment the value by one.

Answers

counter + 1; will raise the value by one but it will not set the value of counter to itself + 1, therefore,

counter + 1; is the correct answer

According to an article published by the University of Missouri Extension Service, the United Nations credits U.S. animal agriculture as being responsible for 18 percent of the greenhouse gases in the environment. The Environmental Protection Agency disputes that data, suggesting that the percentage should be closer to 8 percent for animal agriculture. Follow up on these articles. Can agriculturalists reduce the number of greenhouse gases being released? Write a persuasive paper to convince the reader that 1) agriculture cannot possibly be responsible for all these greenhouse gases and bears no responsibility in cleaning up the environment, OR 2) agriculture is responsible for these gases and needs to voluntarily clean up their act. Your paper should be at least 300 words long.

Answers

Answer:

A greenhouse gas  is a gas that absorbs and emits radiant energy within the thermal infrared range. Greenhouse gases cause the greenhouse effect on planets. The primary greenhouse gases in Earth's atmosphere are water vapor, carbon dioxide, methane, nitrous oxide, and ozone . Without greenhouse gases, the average temperature of Earth's surface would be about, rather than the present average of . The atmospheres of Venus, Mars and Titan also contain greenhouse gases..

Human activities since the beginning of the Industrial Revolution  have produced a 45% increase in the atmospheric concentration of carbon dioxide, from 280 ppm in 1750 to 415 ppm in 2019. The last time the atmospheric concentration of carbon dioxide was this high was over 3 million years ago. This increase has occurred despite the uptake of more than half of the emissions by various natural "sinks" involved in the carbon cycle.

The vast majority of anthropogenic carbon dioxide emissions come from combustion of fossil fuels, principally coal, petroleum  and natural gas, with additional contributions coming from deforestation and other changes in land use. The leading source of anthropogenic methane emissions is agriculture, closely followed by gas venting and fugitive emissions from the fossil-fuel industry. Traditional rice cultivation is the second biggest agricultural methane source after livestock, with a near-term warming impact equivalent to the carbon-dioxide emissions from all aviation.

At current emission rates, temperatures could increase by 2 °C, which the United Nations' Intergovernmental Panel on Climate Change  designated as the upper limit to avoid "dangerous" levels, by 2036.

Gases in Earth's atmosphere  

Non-greenhouse gases  

The major constituents of Earth's atmosphere, nitrogen, oxygen, and argon, are not greenhouse gases because molecules containing two atoms of the same element such as and have no net change in the distribution of their electrical charges when they vibrate, and monatomic gases such as Ar do not have vibrational modes. Hence they are almost totally unaffected by infrared radiation. Some molecules containing just two atoms of different elements, such as carbon monoxide  and hydrogen chloride, do absorb infrared radiation, but these molecules are short-lived in the atmosphere owing to their reactivity or solubility. Therefore, they do not contribute significantly to the greenhouse effect and often are omitted when discussing greenhouse gases.

Greenhouse gases  

Greenhouse gases are those that absorb and emit infrared radiation in the wavelength range emitted by Earth. The proportion of an emission remaining in the atmosphere after a specified time is the "airborne fraction" . The annual airborne fraction is the ratio of the atmospheric increase in a given year to that year's total emissions. As of 2006 the annual airborne fraction for was about 0.45. The annual airborne fraction increased at a rate of 0.25 ± 0.21% per year over the period 1959–2006.

Indirect radiative effects  

Explanation:

describe how technological development has been evolutionary. cite examples of how products have evolved

Answers

Answer:

Technology spawns new generations of products by using existing components, a phenomenon he calls combinatorial evolution. The change in 'species' can thus be quite radical in a short period of time. The rules of Technological evolution thus make a strong argument for accelerating evolution.

Some are The Internet,  Genetic engineering, Digital media, Personal computers, Space flight, Mobile phones, Nuclear power, and Electronic funds transfer.

Explanation:

Evolutionary trend describes the changes undergone by a particular component or phenomenon over a certain period of time.

The concept of evolutionary change can be attributed to the technological changes or development whigh has been witnessed over time as preexisting concept are modified and revamped to increase capability and productivity.

Communication as gone from postal services to fax ; mail and even instant messaging

Transportation as eclipsed from the use of animals to cars ; ships, airplane and now hyperloops on the horizon

Therefore, modification to already existing technological footprints marks evolution.

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

Use the drop-down menus to complete the statements about creating a table of authorities.
Before inserting a table of authorities, you must first create or mark
To insert a table of authorities, look under the command group in the
tab.

Answers

Explanation:

1st drop down: citations

2nd drop down: References

Answer:

Use the drop-down menus to complete the statements about creating a table of authorities.

Before inserting a table of authorities, you must first create or mark  

✔ citations

.

To insert a table of authorities, look under the command group in the  

✔ References

tab.

Explanation:

Which of the following are valid variable names? Select 3 options.

Answers

Answer:

Correct Answers:

playerscore

player_score

num1

Explanation:

got it correct on the instruction assignment on edge

The valid variables' names are player_score, player score, and, num1. The correct options are b, c, and e.

What are variable names?

The underscore character or a letter must come first in a variable name. A number cannot come first in a variable name. The underscore (_) can be used in variable names to separate words. It is used in place of prohibited spaces.

The variable length has no maximum limit; any appropriate length above 10 characters, such as 11 or 12, is acceptable. There is no minimum need for variable length; it may be any logical length, even just one character.

Python language names for variables cannot contain keywords, since those terms have additional uses.

Therefore, the correct options are b, player_score, c, player score, and e, num1.

To learn more about variable names, refer to the below link:

https://brainly.com/question/14061989

#SPJ5

What the function of a css page

Answers

Answer:

Css is used to define styles for your Web pages including the design layout and variations in display for different devices in screen sizes

How t f did i get this wrong

Answers

Answer: #3 is 3/4, just subtraction I believe, and for #4, triangles aren't my strong pint, but I think 2.625. Again, you may need to double check

What is Web 2.0 in the Internet ?

Answers

Answer:

Anser Below

Explanation:

Web 2.0 (also known as Participative (or Participatory) and Social Web) refers to websites that emphasize user-generated content, ease of use, participatory culture and interoperability (i.e., compatible with other products, systems, and devices) for end users.

Other Questions
Write 3 Examples of Chemical weathering and Physical weathering PLEASE HELP Which best describes what a works-cited list includes?sources found during researchsources cited in a papersources quoted in a papersources examined during research Describe the influences from China, India, and the Middle East that were imparted on the kingdoms of Indochina and the islands in Southeast Asia. (150 - 200 words) Candidate A receives 1 million votes in Washington State. Candidate B receives 3 million votes in Washington State. How many electoral votes does each candidate receive in Washington State? whats donald trumps political platform? While stretching you should never bounce or feel pain.A. TrueB. False Whats the standard for What's the value of r? 6 - 1 + 6r = 11 what is the equation of a line that is parallel to 2x+3y=3 and passes through the point (3, -4). Which of the following expressions would represent a class of 24 students divided equally into 6 groups? PLS HELP ME!!! Graph each inequality on the xy-plane below it. Due today The body should incline with the rear wheel and maintain the same plane with it, becoming as much as possible a part of the wheel, as though united by a straight bar going from the base of the tire to the top of the head. The Common Sense of Bicycling,Maria E. WardWhich sentence best paraphrases the instructions in the passage?The rider should lean back toward the rear wheel, so that his or her head is above the wheel. The rider should check the rear wheel to make sure that it is attached to the frame. The rider should remain in line with the rear wheel, leaning with it and not against it.The rider should keep as steady as the bar that connects the rear wheel to the handlebars. Seala algunas palabras que le denotan objetividad al texto. El origen del hombre ayudenme molecules of air heated by the sun that causes them to speed up is calleda. precipitation b.condensation c.runoffd.evaporation Plz help and show work A chef can finish a catering job in 9hrs. His student can do the same job in 18hr. How long will it take them to do the job if they work together? Fie multimea:A={a,b,c}; B={c,d,e}; C={a,c,e}. Caror multimi le apartine: a) elementul a b) elementul b Which one of these rhythms uses syncopation?(View attachment) 5/12 equals 0.416...right A firm requires an investment of $30,000 and borrows $10,000 at 8%. If the return on equity is 14% and the tax rate is 21%, what is the firm's WACC