subject

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(1 4.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 4
You've been hired to write a Python program for scanned i

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
question
Computers and Technology, 24.06.2019 09:30
What is the definition of digital literacy?
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
If you add the following to the query grid in an access query, what is it called? salestaxamt: [salestaxrate]*[totalsale] formula calculated field total calculation
Answers: 2
question
Computers and Technology, 24.06.2019 15:00
When a presentation is being planned, it is important to ensure that it covers all available information. appeals to the audience. uses multimedia tools. entertains the audience.
Answers: 1
You know the right answer?
Code the problem in Python 2. Problem 4

You've been hired to write a Python program for...
Questions
question
Mathematics, 24.02.2021 06:40
question
World Languages, 24.02.2021 06:40
question
Health, 24.02.2021 06:40
question
Mathematics, 24.02.2021 06:40
Questions on the website: 13722367