Your Order:

<%! String [] items = {"Music CD","Book","Software","Video"}; double [] prices = {12.95,6.90,29.99,17.97}; double total = 0; %> <% for(int i=0; i < items.length; i++) { %> <% total += prices[i]; } %>
Item Name Price
<%= items[i] %> $<%= prices[i] %>
Total $<%=total%>