July 23, 2014

Homework Help: Visual Basic - Computer Science

Posted by Dylan on Sunday, December 19, 2010 at 3:20pm.

I'm trying to right a program with Multidimensional Arrays.

These are the instructions for the program:
The Valley Boulevard (VB) Auto Center management is pleased with your progress in developing their system. They require you to develop a new feature for their system.

Main Form. The main form for this project is shown below. VB Auto sells its own brand of spark plugs. In order to allow system users to cross-reference to major brands, the firm keeps a table of equivalent part numbers. You are to computerize the process of looking up part numbers in order to improve customer service.

Requirements. Name the project VBAutoLab8 + YourLastName – for example, if your last name is Bock, name the project VBAutoLab8Bock.

System Startup. The system will start up with the Their Part Number textbox blank (this currently displays RJ6) and NO Brand selected by default (none of the radio buttons are checked). Likewise, the Our VB Part Number display label (this currently displays the value PR223) for output will be blank. On startup, the cursor (focus) should be set to the textbox. The tab order should be Their Part Number textbox, Brand radio buttons, Lookup button, Clear button, then Exit button.
Lookup button – system operation. The system user will:
Enter the competitor's part number for that brand into the input textbox that is provided on the form shown above.
Select the brand by clicking one of the radio buttons.
Click the Lookup button - the system should display the equivalent VB Part Number to the output label shown above.
The lookup should work even if Their Part Number is NOT entered in capital letters.
Your code must use a search technique taught in the chapter, not simply a long series of IF statements. The program code for the lookup procedure must use a condition-controlled loop.
Display an appropriate error message such as “Reenter Their Part Number and Check Brand” if the lookup fails to find a match. Also display the OK button and Critical Error icon as part of the message box.
Clear button. When this button is clicked, clear the brand radio button selection so that none of the radio buttons are selected, clear the textbox and output display label, and set the focus back to the textbox.
Exit button. When this button is clicked, end the application.
Data Storage. Store the part numbers in a two-dimensional table (array). The data for the system may be loaded during the Form_Load event or you may wish to declare the array as a module-level array. Using the module-level array is probably easier as the approach will be similar to that used at the end of the Chapter 8 notes for the multi-dimensional array. The data for this application are given in the following table. Do not store the header row (Brand A, Brand C, etc) in the table as this is not part of the data.

I was able to create the table and set up the form part. But I can't actually figure out what code I'm suppose to use to make it execute properly. I've tried different methods and I just don't know how to call the index number and make the proper part show up in the VBAuto box!


Thank you for any and all help in advance!

Answer this Question

First Name:
School Subject:

Related Questions

Computer - Write the program that will calculate and display the career ...
visual basic - in visual basic, notes in a program which explain what the ...
Visual Basic - Notes in a program which explains what the program is doing are ...
visual basic - notes in a program which explain what the program is doing are ...
COMPUTER PROGRAMMING - Could you please help me write a program using basic or ...
Business Accounting/Operations Management - Two years have passed since the ...
Programming (Visual Basic) - Im seem to be having trouble with this Exercise. ...
visual basic 2010 - I am totally lost with arrays. I have a program that needs ...
computer science - write a program to select the classes that you are taking(Ex...
hsm 270 - Identify where the program planning and evaluation process can provide...