Create a program that reads data from https://www.w3schools.com/xml/cd_catalog.xml and
builds parallel arrays for the catalog items, with each array containing the
title, artist, country, price, and year, respectively. Program should be able
to handle errors. After reading the data and building the arrays, display the
menu items similar to the following:
title - artist - country - price
- year
At the bottom, display the total number of
catalog items and the average price per item similar to:
0 items - $0.00 average price
You may use sting
functions or regex to finish this project.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |