Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions