Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You went to your favorite coffeeshop in town. You had a cup of coffee, a muffin, and a glass of orange juice, for the posted

image text in transcribed

image text in transcribed

You went to your favorite coffeeshop in town. You had a cup of coffee, a muffin, and a glass of orange juice, for the posted prices of 1.000 OMR, 1.200 OMR, and 2.000 OMR respectively. However the municipality applies local taxes. The local tax rate is fixed to 5%. Write a program that takes in the list of the posted items' prices pricelist then computes the list of added taxes taxList to each one of the items consumed in the coffeeshop, and finally the new list of prices after adding the taxes. Expected output: Items price (before tax): [1.0, 1.2, 2.0] Added tax: [0.1, 0.12, 0.2] Items price (after tax): [1.1, 1.3199999999999998, 2.2] To answer the question, drag and drop the statements (below) to their correct position in the code (above). TAX_RATE= 5 taxList.append(tax) print("Items price (before tax):", L1) L1 = [1.0, 1.2, 2.0] priceList[i] = priceList[i] + tax for i in range(len(priceList)): taxList = 0) tax = priceList[i]* TAX_RATE/100 print("Acided tax:", L2) tax = priceList[i]* TAX_RATE*100 return taxList W def addTax(priceList): print("Items price (after tax): ", L1) priceList[i] = priceList[i] * tax

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions