shopping list
alicelinlin (0)

I'm trying to make this shopping list for school, basically, 1st section: the customer needs to enter their details and they will get what fruits are available to buy 2nd section: they then need to enter what fruits, the amount, and the cost. Then it should calculate and give them a total. But the code is not starting from the beginning, it's starting from the section where the customer enters what fruits, the amount, and the cost. how do i fix this?

one more question, for the second section, if i want to automatically calculate how much the total cost is for the customer from the price list, how do i do that instead of them having to enter the cost themselves?

here is the code:

You are viewing a single comment. View All
SixBeeps (5627)

I see you already fixed the first issue. For the second issue, are you familiar with arrays?