Step-by-step Instant Solution
I am having trouble. I don't know how to print out the lines in the text file in ascending order of the total cost. Since the total cost is not part of the array or the text file. Ive tried everything. I have been working on this for 9 hours. A lot of trial and error. I commented out stuff that almost work.?
After everything is printed out. I am suppose to then print out all the product name (element) with the total cost next to it.
Product1name - totalcost
Product2name - totalcost
and so on. I got to where I could print the product names out but I don't know how to get the total cost value next to them. Can you please guide through this?
Paper#9256327 | Written in 27-Jul-2016Price : $17.85