Assigned to you by the best instructor
you will ever meet.
You have previously sold 100 watermelons. You know the total sales amount. That's all good...
But the you need to keep a sales log that records all the transactions, which means that you need to know how much EACH watermelon was sold for.
All you need to do is to put all the watermelon transactions into one array.
The end goal of this homework is...
Using console.log() while looping through the array to print out the watermelon index, the sales price, and the total sales so far.
The end output of the program looks something like this:
Watermelon #1 - Price: $5 | Total Sales: $5
Watermelon #2 - Price: $5 | Total Sales: $10
Watermelon #3 - Price: $5 | Total Sales: $15
Watermelon #4 - Price: $5 | Total Sales: $20
Watermelon #5 - Price: $5 | Total Sales: $25
......
Watermelon #96 - Price: $9 | Total Sales: $729
Watermelon #97 - Price: $9 | Total Sales: $738
Watermelon #98 - Price: $9 | Total Sales: $747
Watermelon #99 - Price: $9 | Total Sales: $756
Watermelon #100 - Price: $9 | Total Sales: $765