Store

Watch this video to learn how to click and download the store.zip file linked here and then to use that project as a starting point for this project.

The user will be able to input a quantity of an item and click a button to calculate the total cost of the purchase with PA sales tax included. The program should be decorated with a professional, easy-to-understand interface. Use PictureBoxes to illustrate your item and to decorate the form. Use labels to include the name of your store and describe the product that you sell. Use a text box to obtain the user's input of a quantity. Display the final cost in a label. The final price must be rounded to the nearest dollar using the Math.Round() method that you can learn on your own or by studying the source code link below. Your program must use variables and constants where appropriate, even though this program could be written without using variables. You are guaranteed as a precondition that the customer will input reasonable numbers (i.e. less than or equal to 50 and greater than or equal to zero) into the textbox.

You must first complete a test plan in Excel. You may download and use this file as a template filling in the shaded areas. Your test plan only has to test items purchased at the base price without any additional charges that you may have included as extra credit.

It is important for your code to be easy-to-understand and easy to upgrade. So use blank lines, comments, and variables with good descriptive names and capitalization. Provide Clear and Exit buttons and make sure that the focus moves correctly when the customer presses the Tab key. Review the Programming Assignment Check-Off Sheet and make sure that your program follows the Coding Standards before your project is graded.

Here is an example of a former student's project.

Optional, possible extra-credit:

  • add textboxes for the user to type his/her name, shipping address, & credit card payment information.
  • add an additional variables and/or constants to add shipping or gift-wrapping charges to the total price.

    See Mr. Minich's video of a version that includes these optional features.
    Here is the source code for this version with optional features. You may study this code and use any techniques that you find and understand.

Upload the following files to DropItTo.Me/minich_vb. Your first name and last initial should replace "JohnD" in the filenames.

  • a screen capture graphic named StoreJohnD.png.
  • a screencast video named StoreJohnD.mp4. Be sure that the video displays at least one test case, the use of the Clear button, and the use of the Exit button.
  • a pdf of your source code named StoreJohnD.pdf
  • your test plan after renaming it as StoreTestPlanJohnD.xlsx