Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Program 1- Tea Leaves Sales Report 1. Here is the sample of the text le (datale) for the tea sales (tea. You have to create this le yourself. Green...

This python program, I WANT TO KNOW how to add the total at last and the load the text with green tea( it always miss)

Program 1- Tea Leaves Sales Report 1. Here is the sample of the text file (datafile) for the tea sales (tea.txt). You have to create this file yourself. Green Tea:8580.0:7201.25:8900.0Earl Grey:10225.25:9025.0:9505.0Ceylon:6700.1:5012.45:6011.0Jasmine:9285.15:8276.1:8705.0Mint Teaz7901.25:4267.0:7056.5 The data reads as follows — tea_name:store1_Sales:stor92_Sales:store3_Sales 2. The output displayed as follows: >>> Ceylon 6700.10 5012.45 6011.00 17723.55Earl Grey 10225.25 9025.00 9505.00 28755.25Green Tea 8580.00 7201.25 8900.00 24681.25Jasmine 9285.15 8276.10 8705.00 26266.25Mint Tea 7901.25 4267.00 7056.50 19224.75 42691.75 33781.80 40177.50 >>> The last row is the store totals for all the kinds of tea leaves sold. The last column is the total sale foreach kind of tea leaves sales. 3. Write a program to read in the tea.txt textiile and then print the report as shown in #2 above.4. You must use dictionary. You can also use list, tuples, sets if necessary.
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question