Question: I really need help on this python homework. I have included the template as well as the input_data.txt which is need for this homework. Thank

I really need help on this python homework. I have included the template as well as the input_data.txt which is need for this homework. Thank you and please respond back!!

hI really need help on this python homework. I have included thetemplate as well as the input_data.txt which is need for this homework.Thank you and please respond back!! h Input File: - The input

Input File: - The input file (input_data.txt) contains a header and rows of item information as following: Item Category Price Unit Butter Dairy 2.99lb Cheese Dairy 4.99lb Egg|Dairy 1.99 dozen - Each row consists of several fields separated by ' '. The fields represent each item's name, category, unit price, and unit. What to do: 1. Check the attached template file (firstname_lastname_HWA5.py) and write your code after the specified 2. start by reading the input data file a. parse each line and get the item's name and category (ignore header line) b. create 6 lists representing the existing categories (Dairy, Fruit, Vegetable, Seafood, Meat, and Poultry). c. add each item to the corresponding list per category (e.g., Milk is added to Dairy). 3. Create the GUI Frames and add actions to buttons a. create the main frame with a welcome text label and two buttons, as shown in Figure 1. The Exit button will terminate the program. The List Categories button will display the second frame. b. create the second frame by adding a title label and a button for each category. c. if the user clicks on a specific category button, then display a list of items from the category in the final frame, as shown in Figure 1. Test output: - You should test your code by going through the GUI interface and selecting every category to display the final item list. - include a screenshot for every frame (Welcome frame, Categories List, and 6 Items list frames) Figure 1: An example of the displayed output frames when clicking on "List categories" "Dairy" buttons. Note that we will only display a single output frame each time. Input File: - The input file (input_data.txt) contains a header and rows of item information as following: Item Category Price Unit Butter Dairy 2.99lb Cheese Dairy 4.99lb Egg|Dairy 1.99 dozen - Each row consists of several fields separated by ' '. The fields represent each item's name, category, unit price, and unit. What to do: 1. Check the attached template file (firstname_lastname_HWA5.py) and write your code after the specified 2. start by reading the input data file a. parse each line and get the item's name and category (ignore header line) b. create 6 lists representing the existing categories (Dairy, Fruit, Vegetable, Seafood, Meat, and Poultry). c. add each item to the corresponding list per category (e.g., Milk is added to Dairy). 3. Create the GUI Frames and add actions to buttons a. create the main frame with a welcome text label and two buttons, as shown in Figure 1. The Exit button will terminate the program. The List Categories button will display the second frame. b. create the second frame by adding a title label and a button for each category. c. if the user clicks on a specific category button, then display a list of items from the category in the final frame, as shown in Figure 1. Test output: - You should test your code by going through the GUI interface and selecting every category to display the final item list. - include a screenshot for every frame (Welcome frame, Categories List, and 6 Items list frames) Figure 1: An example of the displayed output frames when clicking on "List categories" "Dairy" buttons. Note that we will only display a single output frame each time

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 Accounting Questions!