Introduction to Programming with Visual Basic
The Sneaker Project
After hearing about the great work you did with the Bullina China Shop, the owners of the Sneaker Shop, a store that
sells only sneakers, has contacted you. They would like you to write a computer program like the China Shop
program that will permit their customers to obtain price quotes.
As is the case in the real world, the requirements for the Sneaker Shop are similar to the China Shop, but vary just
enough to make the program a challenge for you. For instance, instead of three brands of china, the shop sells five
brands of sneakers. Instead of six possible china items, there are five types of sneakers that the shop sells. And there
are two twists to this program:
First, the shop sells both adult and children's shoes, and the prices vary for each.
Secondly, not every item is available for each brand. For instance, Converse does not sell Cross-Trainers.
The basic requirements for the program are these:
1. Permit the customer to choose among five (5) brands of Sneakers: Adidas, Reebok, Nike, Etonic, and Converse.
The customer can select only 1 brand per quotation. My recommendation: A list box
2. Permit the customer to choose from a variety of types of sneakers. In general, each brand has Cross-trainers,
Basketball, Fitness, Running and Walking sneakers. My recommendation: Check Boxes
3. Permit the customer to choose a quantity for each sneaker. My recommendation: Your choice
4. Permit the customer to choose Adult sneakers or Children Sneakers. They are priced differently. The customer
may not mix and max Adult and Children's sneakers in the price quotation. That is, they cannot select two pairs of
adult converse running sneakers, and 3 pairs of children's converse running sneakers in the same price quotation. My
recommendation: Option Buttons
5. When the customer chooses the components necessary to compute a price, calculate and display the price based on
the tables below.
6. If the customer forgets to select any of the components necessary to computer a price, display a user friendly
7. Because of your wealth of experience with System Design, you decide that the color of the form should be
customizable. As you will do in the China Shop project, use a common dialog control to permit the colors to be
8. The program should have menu to permit the exit of the program only with a password. The menu should also
include an option to change colors, and optionally to display a Help About form saying something nice about the
programmer. (I'll discuss menus in Chapter 12 and Help About forms in Chapter 15).
9. The main form of the program should display a running date and time.
Instructors Note: These instructions are not terribly specific because I want to encourage you to be as creative as
Begin your project by designing a user friendly interface. After you've done that, observe the default behavior of
the controls, and make sure that they will permit you to solve the problem of displaying a price for the customer's
After that, begin filling in the gaps with program code.
The project can be completed in phases. Phase 1 will make the proprietors of the shop (and your instructor) very
happy. Any more than that is icing on the cake!
Phase 1: Calculate the price correctly
Phase 2: Add a menu
Phase 3: Use disk files to read price information into your program
Phase 4: For the really ambitious, generate a sales receipt to the customer
Here is the price matrix for Adult Sneakers.
Adidas Reebok Nike Etonic Converse
Cross-trainers 75 70 80 - -
Basketball 65 60 70 75 35
Fitness 55 50 60 65 -
Running 60 55 65 70 50
Walking 45 40 50 - -
Here is the price matrix for Children's Sneakers.
Adidas Reebok Nike Etonic Converse
Cross-trainers - - - - -
Basketball 60 50 60 65 30
Fitness - - - - -
Running 55 45 55 60 45
Walking 40 30 40 - -