Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

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

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions