Calculate the amount due for an order. For an order, the user should enter the following information into text boxes: customer name, address, city, state (two-letter abbreviation), and ZIP code. An order may consist of multiple items. For each item, the user will enter the product description, quantity, and price into text boxes.
Include radio buttons for ground or express shipping.
You will need buttons for Next Item, New Order and Exit.
For the Next Item button, validate the quantity and price. Each must be present and numeric. For any bad data, display a message box. Calculate the charge for the current item and add the charge and quantity into the appropriate totals.
After you have calculated the charge for the current item and added the amounts to the running totals, calculate the shipping amount (from the table below), and add that to the total amount due for the order. (Do not calculate shipping on individual items use the order total.)
The shipping charges depend on the subtotal of the products, taken from the following table (express shipping is just $10 higher than ground shipping).
Less than Ground Shipping Express Shipping
Less than $15.00
50.00 – 99.99
100.00 - 199.99
200.00 or more
Display the address information and the summary in a large text box using concatenation.
For the New Order button clear the customer fields and reset the running totals to zero.
Test Data Output
Anywhere, CA 99999
Items ordered: 3
Modify the case study above to use menus and a function procedure. Refer to question one specifications. Once the menu has been added, remove the buttons from the form.
Use a function procedure to calculate the shipping amount for the entire order. (Do not calculate shipping on individual items, use the order total.)
Add an Order Complete item to the menu that clears the running totals and textboxes and begins a new order. Also add a font and color menu commands to the edit menu that changes the text in the large summary text box.
The Help menu About choice should display a message box with information about the programmer.