Define a function procedure named generateinvoicenumber


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.

Request for Solution File

Ask an Expert for Answer!!
Chemistry: Define a function procedure named generateinvoicenumber
Reference No:- TGS01058733

Expected delivery within 24 Hours