The shopping cart application should list the names of 10 different DVDs in a list box and
Question:
The shopping cart application should list the names of 10 different DVDs in a list box and store the associated prices in a one-dimensional array. (Use at least four different prices for the DVDs.) To purchase a DVD, the user needs to click its name in the list box and then click an Add to cart button. The button’s Click event procedure should display the DVD’s name and price in another list box, which will represent the shopping cart. A DVD can appear more than once in the shopping cart. The interface should also provide a Remove from cart button. (Research the Items collection’s Remove and RemoveAt methods for a list box. Or, complete Exercise 17 in Chapter 5.) It should also provide a button that clears the shopping cart and prepares the application for the next customer’s order. The application should display the subtotal (which is the cost of the items in the shopping cart), the sales tax, the shipping charge, and the total cost. The sales tax rate is 4%. The shipping charge is $1 per DVD, up to a maximum shipping charge of $5.
Step by Step Answer: