Question: Folder: hw 0 2 Overview: Write a program to process an xml file of purchasing information. The structure of the xml file is shown below:

Folder: hw02
Overview: Write a program to process an xml file of purchasing information. The structure of the xml file is shown below:
purchaselist>
The data file can be found here darr.
Your program should loop though this file of items, and for every item that has "quantity" greater than 0, add it to a table, and running totals for # of items ordered, and total spent. The output should resemble:
\table[[Item,Price,Quantity,Line Price],[Circuit Board Business Card Case,28.99,3,86.97],[Mega Man Air Freshener,1.79,4,7.16],[Origami Sticky Notes,4.99,3,14.97],[Shocking Pen,5.99,2,11.98],[Red Swinglife Stapler,24.99,1,24.99],[8-bit Flower Bouquet,14.99,1,14.99],[42 Utility Towel,12.99,1,12.99],[Monty Python Killer Rabbit Slippers,39.99,2,79.98],[Totals:,17,254.03]]
Hint: You can use "colspan" for tags for the last row in the table.
 Folder: hw02 Overview: Write a program to process an xml file

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