Question: Project 1 2 Write a Python application which reads data from three input files into three lists: products.txt: stores the names of products, one per

Project 12
Write a Python application which reads data from three input files into three lists:
products.txt: stores the names of products, one per line.
prices.txt: stores of the prices of products, one per line.
quantitites.txt: stores the currenct quantity on hand of a product, one per line.
The data in each of these input files is stored in sequence, so that the first line of each file refers to the same product, the second line of each file refers to the same product, etc.
The product name is stored as a string. Remove the final character from the string using [:-1] when storing it in the list.
The prices are all real number (float) data.
The quantities are all integer (int) data.
Find the extended value for each product by multiplying its price by its quantity.
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 2 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!