Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

VB Mail Order Chapter 4 Visual Basic Calculate the amount due for an order. For each order, the user should enter the following information into

VB Mail Order Chapter 4 Visual Basic

Calculate the amount due for an order. For each 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, weight, and price into text boxes.

You will need buttons for Add This Item, Update, Summary, Clear,Print, and Exit. For the Add This Itembutton, validate the quantity, weight, 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 weight into the appropriate totals, but do not display the summary until the user clicks the Update Summarybutton. Do not calculate shipping and handling on individual items; rather, calculate shipping and handling on the entire order. When the user clicks Add This Itemfor a new order, the customer information should be disabled so that the state cannot be changed until the next customer.

When the Update Summarybutton is clicked, calculate the sales tax, shipping and handling, and the total amount due for the order. Sales tax is 8 percent of the total charge and is charged only for shipments to a California address. Do not charge sales tax on the shipping and handling charges. The shipping and handling should be calculated only for a complete order.

Optional: Disable the Add This Itembutton when the Summarybutton is pressed.

The Clearbutton clears the data and totals for the current customer.

The shipping and handling charges depend on the weight of the products. Calculate the shipping charge as $.25 per pound and add that amount to the handling charge (taken from the following table).

Weight Handling
Less than 10 pounds $1.00
10 to 100 pounds $3.00
Over 100 pounds $5.00

Display the entire amount of the bill in controls titled Dollar amount due, Sales tax, Shipping and handling, and Total amount due.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions