So I have successfully completed the task, but I wanted to take it a step further and add some more orders so I could sit back and admire the beautiful program I wrote. However, when I entered a 4th order, my subtotal now reads $300 instead of $30.0 which seemed like it would throw off the total but it didn’t. Is there any way to make the subtotal read 30.0?
line 24, you do:
getSubTotal(orderCount) + 0, you join two strings here, so it will join 30 (returned by function) and 0, which is 300
I completely forgot I did that, thanks!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.