Question: This is the code I created for an homework assignment. XSL and XML are two separate files. Hwk2.xml Hwk2.xsl Weekly Food Purchase Total Number of

This is the code I created for an homework assignment. XSL and XML are two separate files.

Hwk2.xml                                  
Hwk2.xsl       

I need assistance in displaying "Which day of the week the total spent was the highest?".

This should be under Cheese Purchase, before Entire week. See the output that I have so far.

I would really appreciate the help.

Output:

This is the code I created for an homework assignment. XSL and

Weekly Food Purchase Total Number of Purchased Items: 70 Eggs: Total Number of Eggs: 36 Total Amount Spent: 71.64 Purchase Days: 3 Cheese Purchase: Monday, Wednesday, Entire Week: Weekday: Sunday items: name: bread, qty: 1, price: 3.00, total: $3.00 name: egg, qty: 12, price: 1.99, total: $23.88 name: milk, qty: 1, price: 3.80, total:$3.80 Weekday: Monday items: name: butter, qty: 1, price: 2.50, total:$2.50 name: lettuce, qty: 1, price: 1.50, total:$1.50 name: cereal, qty: 2, price: 3.50, total:$7.00 name: chicken, qty: 1, price: 5.00, total:$5.00 name: olive oil, qty: 1, price: 3.20, total:$3.20 name: sardines, qty: 2, price: 1.20, total:$2.40 name: cheese, qty: 1, price: 4.50, total:$4.50 Weekday: Wednesday items: name: yogurt, qty: 1, price: 3.00, total: $3.00 name: apples, qty: 6, price: 2.99, total: $17.94 name: potato, qty: 6, price: 0.80, total: $4.80 name: egg, qty: 24, price: 1.99, total: $47.76 name: onion, qty: 6, price: 0.30, total:$1.80 name: parsley, qty: 1, price: 0.70, total:$.70 Weekly Food Purchase Total Number of Purchased Items: 70 Eggs: Total Number of Eggs: 36 Total Amount Spent: 71.64 Purchase Days: 3 Cheese Purchase: Monday, Wednesday, Entire Week: Weekday: Sunday items: name: bread, qty: 1, price: 3.00, total: $3.00 name: egg, qty: 12, price: 1.99, total: $23.88 name: milk, qty: 1, price: 3.80, total:$3.80 Weekday: Monday items: name: butter, qty: 1, price: 2.50, total:$2.50 name: lettuce, qty: 1, price: 1.50, total:$1.50 name: cereal, qty: 2, price: 3.50, total:$7.00 name: chicken, qty: 1, price: 5.00, total:$5.00 name: olive oil, qty: 1, price: 3.20, total:$3.20 name: sardines, qty: 2, price: 1.20, total:$2.40 name: cheese, qty: 1, price: 4.50, total:$4.50 Weekday: Wednesday items: name: yogurt, qty: 1, price: 3.00, total: $3.00 name: apples, qty: 6, price: 2.99, total: $17.94 name: potato, qty: 6, price: 0.80, total: $4.80 name: egg, qty: 24, price: 1.99, total: $47.76 name: onion, qty: 6, price: 0.30, total:$1.80 name: parsley, qty: 1, price: 0.70, total:$.70

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!