Define a function procedure named reverse name

Assignment Help Chemistry
Reference no: EM13778300

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.

Reference no: EM13778300

Questions Cloud

Write an essay about the case for birthright citizenship : Write a argumentative essay about article "The Case for Birthright Citizenship" by Linda Chavez.
Communications-expressing feelings-having understanding : What do you think are the biggest adjustments a person has to make when entering a marriage? Can you think of any strategies that could be used to minimize the stress associated with these adjustments?
The responsibility of the cio : Do we really need a major change in the way the IS function is structured...are the necessary changes just minor modifications to accommodate normal growth in computer uses...what are your thoughts / research in this regard?
Communication and negotiation strategy : What cultural and ethnic considerations should steer your team's communication and negotiation strategy? How would you integrate those considerations into your negotiation?
Define a function procedure named reverse name : Define a function procedure named GenerateInvoiceNumber that will generate and return an invoice number consisting of the capitalized - Define a function procedure named Reverse Name that will reverse the customer name.
Rationale for and potential bias in qualitative research : A rationale for using qualitative research methods instead of quantitative research. A statement of how the worldviews and paradigms of the researcher may create bias when applying qualitative research to the given scenario.
Develop a system security plan for an information system : Develop a sample System Security Plan for an information system. Select and incorporate appropriate management, technical, and operational security controls into a system security plan.
Sympathetic division of the autonomic nervous : A work-related accident left Bob with a paralyzed left arm and an inability to recognize the left side of his visual field. Bob's condition is called:
Develop the flow diagram : Develop the flow diagram of the information and any control elements needed to ensure proper access for the information.Submit a draft PowerPoint presentation with the following elements

Reviews

Write a Review

Chemistry Questions & Answers

  Steps in the mechanism for the following reaction

Show all the steps in the mechanism for the following reaction, When benzene is mixed with deuterated sulfuric acid, deuterium is slowly incorporated onto the ring. Show the mechanism for this reaction and explain how this relates the sulfonation of ..

  Prior to placing piece of metal into the graduated cylinder

This assignment inhibits chemistry Laboratory Questions.

  Write the structures of the saytzeff elimination

Write the structures of the saytzeff elimination

  Calculate ph - chemistry questions

Chemistry Questions on Calculate P H

  How many mols of hydrogen can produce

how many mols of H 2 can produce

  Analysis of corrosion mechanisms

Analysis of corrosion mechanisms and preventative measures

  Chemical and pharmaceutical science

Write an equation for the formation of an acetal from reaction of excess methanol with benzaldehyde in the presence of an acid catalyst.

  Calculate the approximate sulphur

Calculate the approximate SO 2 mass emission in lb/day.

  What is the structure - stereochemistry

What is the structure (including functional groups)? Stereochemistry (racemic or single enantiomer)?

  Design a qualitative analysis scheme

Design a qualitative analysis scheme

  What will be the resultant pressure

What will be the resultant pressure when the stopcock is opened?

  The 1h nmr spectrum

Integrals for some of the resonances in the 1H NMR spectrum are higher than they should be due to the shear number of hydrogens in this compound

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd