Presentation is loading. Please wait.

Presentation is loading. Please wait.

Program 03 Fall 2014 VB Auto Center Problem Purpose: VB Auto Center has ask you to write a program that will calculate the typical values involved in the.

Similar presentations


Presentation on theme: "Program 03 Fall 2014 VB Auto Center Problem Purpose: VB Auto Center has ask you to write a program that will calculate the typical values involved in the."— Presentation transcript:

1 Program 03 Fall 2014 VB Auto Center Problem Purpose: VB Auto Center has ask you to write a program that will calculate the typical values involved in the sale of their cars. It must calculate the following: 1.The total amount for Accessories and External Finish. Accessory Prices: - Stereo System = $400.00 - Leather Interior = $600.00 - Computer Navigation = $1,000.00 Exterior Finish Prices: - Standard Finish = No additional charge - Pearlized Finish = $500.00 - Customized Detailing = $300.00 2.Sales Tax -10% of (Selling Price + Accessories + External Finish – Trade-in Allowance) 3.Subtotal Subtotal = (Selling Price + Accessories + External Finish – Trade-in Allowance 4.Amount Due Total Price= (Subtotal + Sales Tax) Your Form must closely resemble this one: See the next slide for additional requirements. Note: You may use module level variables and constants. Radio buttons Check Boxes Don't forget this: VB Auto Center. TOTAL POINTS: 50 DUE: OCTOBER 28

2 FOR THIS ASSIGNMENT IGNORE item 1 BELOW. WE WILL ADD THIS FOR THE NEXT ASSIGNMENT. 1. Limit "Car's Sale Price" to $100,000. If $100,000 is exceeded, trigger an appropriate MessageBox and have the value re-entered. Limit "Trade-in Allowance " to $50,000. If $50,000 is exceeded, trigger an appropriate MessageBox and have the value re-entered. 2.Use good internal documentation. See class notes, and examples in this assignment. 3.Be sure to use the FormatCurrency function for dollar amounts and FormatNumber for other amounts. 4.Be sure to use the supplied values for module level variables and constants. 5.Use Option Strict On in your code. 6. You must use appropriate three-letter prefixes for variables, constants, and objects, such as Buttons, TextBoxes, etc. 7.Use good identifiers (constant names, variable names, object names, etc.). These should be as meaningful as possible and as short as possible, but as long as necessary. 8. Follow the outline for the program on the next three pages. You must use REGIONS. 9. Be sure to use effective test data. This will insure that the program works correctly. 10.Set up two click events that clear the appropriate input text box when clicked. This will allow easy re-entry of values if a typo is made. The click event must clear the textbox and reset the background color to white. 11. Declare all constants at the module level of the code. 12. Declare all variables at the module level. 13. Validate Data module must do the following: Set the textbox backgrounds to yellow when an error occurs. You must have a separate TRY/CATCH for each textbox Appropriate error messages must be given for invalid casts. The user must be informed as to which textbox caused the error. 14.The Prices below must be CONSTANTS. ItemPrice Stereo System400.00 Leather Interior600.00 Computer Navigation1000.00 Standard FinishNo additional charge Pearlized Finish500.00 Customized Detailing300.00 SalesTax Rate10% Programming Assignment 02 PART-2 VB Auto Center Problem

3 Program 03 VB Auto Center Problem Ignore this line. It is from an older version of VB. You must use these modules and regions. TOTAL POINTS: 50 Change this to: “EXTERIOR FINISH CHARGE” because there is only one charge.

4 Programming Assignment 02 PART-2 VB Auto Center Problem You must use these variable names. You must use these constant names and values. Add this constant.

5 Programming Assignment 02 PART-2 VB Auto Center Problem You must use these names for the procedures. Change this to: ExteriorFinishCharge

6 Use this code for your Validate Data Module

7 Programming Assignment 02 PART-2 VB Auto Center Problem This is the procedure for selecting an Exterior Finish Charge Students: Note the Case Structure

8 DOCUMENTATION EXAMPLE ONLY YOU MUST FOLLOW THE DOCUMENTATION CHARACTERISTICS OF THE PROGRAMS ON THE NEXT FOUR SLIDES. DOCUMENTATION EXAMPLE ONLY

9

10

11 Below is an example of how documentation must be done. Don't forget to add comments in the code where appropriate. Don't forget to document all button subroutines (sub-procedures). DOCUMENTATION EXAMPLE ONLY

12 NAME of team leader: (Print) Last ___________________________First__________________ MIS 15 section: Noon Class Team number:1 2 3 4 5 6 7 8 9 10 11 12(Circle) GRADING STANDARDSALL OR NOTHING POINTS Form-A Program 3 VB Auto Center Problem Documentation was done according to guidelines: (0 TO 3 points) __________ GUI is reasonably correct:(0 TO 2 points) __________ Followed rules for forming constant names & variable names:(0 TO 2 points) __________ Used option strict on in the code:(0 TO 8 points) __________ ALL calculated values are correct under ALL checkbox and radio button conditions:(0 TO 15 points) __________ Exit and All Clear buttons work correctly:(0 T0 5 points) __________ Validation module works correctly(0 TO 10 points) __________ Textboxes were only referenced in the Validate Data module(0 TO 5 points) __________ TOTAL POINTS: 50 __________ Program fails to compile for any reason: -50 Program not on CD: - 50 Failure to follow submission guidelines: -10 50 percent off of each class day late Program is late if not handed in during the first 10 minutes on the due date. Grader Comments:

13 Program #2 Fall 2011 13 Form-B STUDENT FILLS IN THESE BLANKS: LAST NAME:_______________________________ FIRST NAME:________________________ PROGRAM (Circle) 1 2 3 4 5 6 7 8 DATE DUE:_________________ DATE SUBMITTED:__________________ PLACE A CHECK NEXT TO THE FOLLOWING: 1.____Saved the Program on a CD using the following directory and sub-directory: Your Name\Program 03 2.____Printed your full name and program number on the CD using a permanent black marker. 3.____Submitted the CD in required envelope style not much larger than the CD. 4.____Placed the CD in the envelope. 5.____Cut out this form along dotted edges and TAPE it to the envelope. (You can also use a DVD-R) CUT OUT THIS FORM ALONG THE DOTTED EDGES AND TAPE IT TO THE ENVELOPE. YOU MUST USE THIS STYLE THAT IS ABOUT THE SIZE OF YOUR CD or DVD. Note: You can also use a self- sealing seal. Do not lick to seal. Use metal clip or self-sealing envelope. Program 3 VB Auto Center Problem


Download ppt "Program 03 Fall 2014 VB Auto Center Problem Purpose: VB Auto Center has ask you to write a program that will calculate the typical values involved in the."

Similar presentations


Ads by Google