I need some assistance with this for some reason the output is not coming out correctly. I am missing the Department one label at the beginning and then at the end I am missing the total sales volume. I also notice that it shows the wrong department in the department 1 through 4 areas under total value and merchandise sold. Can anyone point me in the right direction as to what I did wrong here.
Missing Department 1 here
Item Description Total Sold
Stereos 150.00
Cameras 130.00
Videos 30.00
Department 2 Total Sales Volume: 310.00
Department 2 Total Merchandise Sold: 145
Department 2
Item Description Total Sold
Socks 4.00
Shirts 6.00
Pants 8.00
Department 3 Total Sales Volume: 18.00
Department 3 Total Merchandise Sold: 190
Department 3
Item Description Total Sold
Perfume 50.00
Makeup 75.00
Eyeliner 15.00
Department 4 Total Sales Volume: 140.00
Department 4 Total Merchandise Sold: 125
Department 4
Item Description Total Sold
Sockets 70.00
CarWax 20.00
Wipers 30.00
Department 5 Total Sales Volume: 120.00
Department 5 Total Merchandise Sold: 190
Department 5
Item Description Total Sold
Plates 70.00
Forks 30.00
China 120.00
Department 5Total Sales Volume:
Department 5Total Merchandise Sold: 950