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

  Determine the activation barrier for the reaction

Use an Arrhenius plot to determine the activation barrier for the reaction. Express your answer using three significant figures. (units = kJ/mol)

  Illustrate what is the empirical formula of the compound

What is the empirical formula of the compound if a 5.56 mg sample of a compound containing carbon, hydrogen, and oxygen underwent combustion producing 12.64 mg of CO2 and 5.16 mg of H2O

  Explain the frequency of radiation whose wavelength

What is the frequency of radiation whose wavelength is 13.40 Å? s-1 (b) What is the wavelength of radiation that has a frequency of 1.0 1012 s-1? m (c) Would the radiations in part (a) or part (b) be detected by an X-ray detector

  State complex formation and potential redox reactions

At what pH will this occur? Ignore complex formation and potential redox reactions.

  Difference in the chemical formulae

Explain how a disaccharide is formed from 2 monosaccharide molecules, hence explaining the difference in the chemical formulae

  What mass of nitrogen must be added for final pressure

Problem- What mass (in g) of nitrogen must be added to 8.12 g of argon at 24.08oC, and in a 120 L contain for a final pressure of 894 mmHg

  225ml of 383 molar h2so4 is required to completely

22.5ml of .383 molar h2so4 is required to completely neutralize 20ml of koh solution. what is the molarity of the koh

  Consider the voltaic cell

Consider the voltaic cell , which is based on the following cell reaction. Zn(s) + Cu2+(aq) Zn2+(aq) +Cu(s) Under standard conditions

  Explain sodium iodate and potassium hydroxide

A .sodium iodate and calcium nitrate B. sodium nitrate and potassium hydroxide C. sodium iodate and iron (III) chloride D. sodium iodate and potassium hydroxide.

  What is the % ionization and the ka value

A weak acid is placed in a beaker of pure water. At equilibrium, HA has a concentration of .05 M and it conjugate base has a concentration of .01 M, as well as [H3O+]. What is the % ionization? And the Ka value?

  Explain the atomic radius of a helium atom

the atomic radius of a helium atom is 31 pm. what is the diameter of one helium atom in centimeters?

  An aqueous solution has a vapor pressure of 840 at 50 the

an aqueous solution has a vapor pressure of 84.0 at 50 . the vapor pressure of pure water at this temperature is 92.6 .

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