Question: Project 1 5 Write a Python application which reads data from input file, ProdData.txt into three lists: productList: stores the names of products, as

Project 15
Write a Python application which reads data from input file, "ProdData.txt" into three lists:
productList: stores the names of products, as string data.
priceList: stores of the prices of products, as float data.
quantityList: stores the current quantity on hand of a product, as int data.
Each line of the input file stores data about one product. The fields are separated by commas. The data for the first product is: Li Hing Mango, 2.29,12
Find the extended value for each product by multiplying its price by its quantity. You may decide to store the extended value of each product in its own list.
Find the grand total of the inventory by adding together the extended values.
Produce the following output by accessing data from your lists:
\table[[Li Hing Mango,2.29,12,27.48],[Wet Lemon Peel,3.39,18,61.02],[Red Iso Peanut,2.79,23,64.17],[Salty Seed,2.89,17,49.13],[Mixed Arare,3.19,16,51.04],[Shredded Ika,3.39,17,57.63],[Imperial Mix,2.79,22,61.38],[Mini Mori Maki,2.79,19,53.01],[Taro Chips,2.99,22,65.78],[Banana Chips,3.19,17,54.23]]
Grand Total: 544.87
Project 1 5 Write a Python application which

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!