Project #7, VB Auto
Center
The Valley Boulevard (VB) Auto Center
management has asked you to develop a system that can be used to compute the commission
to be received by a salesperson, and the profit on the sale of a vehicle.
Salespeople sell used cars and are paid a commission based on the sales price
and cost of a vehicle. The formula to compute the commission is:
Commission
= CommissionRate * (SellingPrice
- VehicleCost)
The profit on a vehicle is the vehicle
selling price less the total of the vehicle cost and the commission paid to the
salesperson. The formula used to compute the profit is:
Profit
= SellingPrice - (VehicleCost
+ Commission)

Requirements. Develop a
form that is similar to the one shown below.
You may have minor differences.
- Name the project VBAutoLab7
+ YourLastName – for example, if your
last name is Bock, name the
project VBAutoLab7Bock.
- Within the Customer Information group box are three labels with
Text properties of "Name:", "Selling Price:", and
"Vehicle Cost:". These labels do
not have to be named as they will not be manipulated in program
code. There are also three text boxes. Name the text boxes with appropriate
names.
- The textbox to display the name should left
justify the data.
- The two textboxes to display the Selling Price
and Vehicle Cost should be right justified.
- Within the Commission and Profit Information group box are two
labels with Text properties of "Commission:" and "Profit;". These labels do not have to be named as
they will not be manipulated in program code. There are two
additional labels that display the amount of commission to be paid to the
salesperson and the profit on the sale of the vehicle. Name
the labels with appropriate names. Both of these two labels should be
displayed "3 dimensionally" as shown. The labels should
also right justify the commission and profit amounts and display the
commission and profit amounts formatted as currency with two digits to the
right of the decimal sign.
- Add three buttons with captions and "hot key"
combinations as shown.
- On Startup, the Calculate and Exit buttons should be enabled.
- Compute the proper commission and profit and
display these amounts to the appropriate output labels.
- When the Clear
button is clicked, your program code should:
- Clear the three text boxes that are used to
input data.
- Clear the two output labels that display the
commission and profit amounts.
- Set the focus to the Salesperson Name text box.
- When the Exit button
is clicked, your program code should close the form.
- Set the form StartPosition
property so that the project displays the form in the center of the
screen.
- Set the form and group box Text
properties as shown.
- Set the TabIndex
property for the controls such that the form starts up with focus on the
Salesperson Name textbox.
- The system should tab to the following controls
in order: Salesperson Name textbox, Selling Price textbox, Vehicle
Cost textbox, then back to the Salesperson Name
textbox.
- The system should NOT tab to any
of the buttons.
- The commission rate should be declared as a constant and set to 15%
(0.15D).
- Include appropriate comments.
Visual Basic Project
Assessment Plan For Project #7
Assessment
of Project. I will only grade projects that are labeled
correctly and function properly. If a
program looks like it should work, but doesn’t, I’ll give you a
“B” grade. Debugging often
takes more time than writing a program, so I cannot make myself responsible for
debugging your program. Sometimes
deleting something and typing it exactly as it appeared on the screen will make
it work correctly. Most often, it seems
controls that are labeled incorrectly are the problem that prevents many
programs from running.