Ask Chemistry Expert

For this assignment you will create a program for calculating and displaying the receipt for a furniture manufacturer.

Part 1

A furniture manufacturer makes two types of furniture - chairs and sofas. The cost per chair is $350, the cost per sofa is $925, and the sales tax rate is 5%. The customer name is input with the last name first, followed by a comma, a space, and the first name.

-  After the data on the left side of the following figure are entered, the user can display an invoice in a list box by pressing the Process Order button.

o The button click event procedure for the Process Order button will perform the following tasks:

-  Declare all variables of appropriate types to store inputs, intermediate results, and final result.

-  Retrieve inputs from the text boxes.

-  As long as the customer name is not input correctly (last name, followed by a comma, a space, and the first name), show an error message in a message dialog box and ask the user to enter the name in the correct format.

-  As long as any of the text boxes where the user is expected to enter inputs are left blank, show an error message in a message dialog box prompting the user to enter that information.

-  Call a function procedure named GenerateInvoiceNumber and pass the necessary information to that function procedure. Store the result returned by that function in a variable named InvoiceNumber.

-  Call a function procedure named ReverseName and pass the necessary information to that function procedure. Store the result returned by that function in a variable named RevName.

-  Calculate cost, sales tax, and total cost

-  Format and display the invoice in the list box (use zones and pay attention to currency formatting).

o Define a function procedure named GenerateInvoiceNumber that will generate and return an invoice number consisting of the capitalized first two letters of the customer's last name, followed by the last four digits of the zip code.

o  Define a function procedure named ReverseName that will reverse the customer name (last name, followed by a comma, a space, and the first name) in the proper order (first name, a space, and last name). It will return the properly ordered name to the calling procedure.

- The user can click on the Clear Order Form button to clear all text boxes and the list box.

- The user can click on the Quit button to exit the program.

Chemistry, Academics

  • Category:- Chemistry
  • Reference No.:- M91348463
  • Price:- $40

Guranteed 36 Hours Delivery, In Price:- $40

Have any Question?


Related Questions in Chemistry

Question 1bonding energyi draw an energy level diagram for

Question 1: Bonding Energy i. Draw an energy level diagram for a single Na ion and Cl ion. ii. Explain what is happening to the energy level between these two ions in terms of the Potential Energy. iii. Which process uti ...

Wat is the molarity to the hundredths place of 50 g hpo3

What is the molarity, to the hundredths place, of 5.0 g HPO3 in 300. mL of solution?

Describe how to assign anbspoxidation number from

Describe how to assign a Oxidation number from the text: The oxidation number of an atom in an elemental substance is zero. The oxidation number of a monatomic ion is equal to the ion's charge. Oxidation numbers for comm ...

How many grams of h2so4 must be dissolved into 0709 l of

How many grams of H2SO4 must be dissolved into 0.709 L of solution to generate a concentration of 0.303 M?

What could a source of error be during a titration lab that

What could a source of error be during a titration lab that is not a humans fault?

How many moles of magnesium ion are present in 525g

How many moles of magnesium ion are present in 5.25g Mg 3 (PO 4 ) 2 ?

What is the volume of a solution with a concentration of 12

What is the volume of a solution with a concentration of 1.2 M that contains 12 g of NaOH?

What is the molarity of a solution made by dissolving 200 g

What is the molarity of a solution made by dissolving 20.0 g of CrCl2 in 0.150 L of solution?

What is the mass of naoh present in grams given that a 100

What is the mass of NaOH present in grams, given that a 100. mL solution has a concentration of 0.125 M?

What is the volume of a solution in milliliters that

What is the volume of a solution, in milliliters, that contains 1.5 g LiNO3 and has a concentration of 0.40 M?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As