Answered step by step
Verified Expert Solution
Question
1 Approved Answer
IN VISUAL BASIC PLEASE!!! CS2453: Visual Basic VB3: Shopping Cart System Objectives Create and display multiple forms. Efficiently use standard modules. Create and code menus,
IN VISUAL BASIC PLEASE!!!
CS2453: Visual Basic VB3: Shopping Cart System Objectives Create and display multiple forms. Efficiently use standard modules. Create and code menus, submenus and context menus Situation The Shopping Cart program is an adaptation of 2. Shopping Cart System on p. 488-490. You are to also include a ContextMenu on the main form. The Context Menu should include the options for Print Books and Audio Books. The program must also begin from a Standard Module and not a form. Specifications 1. Recurring Specifications that are required for all programs. 1. The form must be renamed and the text changed to Shopping Cart by YourFirstName YourLastName. (If Pat Programmer was creating this program, it would be Shopping Cart by Pat Programmer) 2. Code must be grouped and commented in compliance with this course's programming standards. 3. ALL files, forms, and controls MUST be renamed. 4. Option Strict must be ON 5. An AcceptButton and a CancelButton must be assigned appropriately. 6. ALL controls on the form must be in logical TabOrder. 7. All buttons and labels (before TextBoxes) must have AccessKeys. 8. Form's StartPosition property must be CenterScreen. 9. Values from the input fields MUST be assigned to variables and the variables used in calculations. 10. The text property of Labels must be changed so that Label1 (or similar name) does not appear at runtime. 11. No class level variables unless specifically allowed. 12. Data types for variables and constants must be the most efficient. 13. Use With..End With if and when appropriate. 14. Use ToolTips when possible. 15. Various erroneous inputs will be tested during the grading process. If any of them result in the program halting of crashing, the maximum credit will be 50%. If submitted by the initial deadline, it may be resubmitted until the final deadline. Work that is late or resubmitted is subject to a 10% penalty, but that might be better than 50% or a 0. 2. Recreate the user interface shown above. For this program, your forms must replicate the examples. 3. Constants are to be used for the book price values shown on p 488 and for the tax and shipping charge. Declare these in the Standard Module so that if they need to change them in the future, they would all be in one location and easy to find. 4. The StartUp object (where the program begins) must be the Standard Module and not the main form. 5. Add menus as shown in the images above. At this point, only the main form is required to have a menu. 6. The ContextMenu should be included with the Print Books and Audio Books options. Do not rewrite the code for these menu items: either call the Event Handlers or modify the Handles Clause. 7. The About menu will bring an About Box with the name of the program and the programmer's name. 8. Currency values should all be formatted as currency values and right aligned in the output labels. 9. The main form's StartPosition property must be CenterScreen. The subforms (Print Books and Audio Books) must have a StartPosition of CenterParent. 10. An AcceptButton and CancelButton cannot be set (at least not easily at this point) for the main form because of our use of menus. Only set these properties on the subforms. 11. Since the user is not making any input, only Labels are to be used. 13. ListBoxes are to be used on each of the subforms. The user can click on one of the items to select. 14. Coding must be EFFICIENT. It is suggested that you flowchart the validations and calculations to determine all of the possibilities before actually writing the code. (Note: This week's assignment includes a few things you will learn by researching topics. Some of them are using the Main Module as a startup object, use of the About Box, and use of the Handles Clause of event methods) 2. Shopping Cart System Design an application that works as a shopping cart system. The user should be able to add any of the following items to his or her shopping cart: Print Books (books on paper): I Did It Your Way $11.95 The History of Scotland $14.50 Learn Calculus in One Day $29.95 Feel the Stress $18.50 Audio Books (books on tape): Learn Calculus in One Day $29.95 The History of Scotland $14.50 The Science of Body Language $12.95 Relaxation Techniques $11.50 The application's main form should appear similar to the one shown in Figure 7-65. Figure 7-65 Shopping Cart main form Shopping Cart X File Products Help Products Selected Subtotal: Tax Shipping Total RemoveStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started