Assignment #4 15 Points

CISB 119

Objectives: This assignment provides students experience using variables, access keys, writing expressions, timer controls, symbolic constants and developing applications using multiple forms.

Problem: You have been hired by Harry's Hardwood Floor shop to assist them in estimating the materials required to lay oak flooring. Harry wants a program that will allow him to enter the customer's name and the dimensions (length and width) of up to 3 rooms and a hall in inches. Your program should then calculate and display the amount of flooring, finish, and nails necessary to lay the floor as well as the material estimate for the customer. Harry would like the program to begin by displaying a "splash" screen for five seconds before the regular form loads.

Formulas: 1) Oak flooring is measured in whole square feet. There are 144 sq. inches in a sq. ft. Allow 5% extra flooring for waste.

2) Oak flooring costs $2.25/sq. ft.

3) Each gallon of finish covers 250 sq. ft of flooring. A gallon of finish costs $15.95.

4) It takes 12 nails to secure 1 sq. ft. of flooring. Nails come in boxes of 500.

5) Each box of nails costs $4.75.

Special

Considerations: 1) Allow the Harry to print the estimate (without buttons showing).

2) Control the focus so that Harry can Tab in sequence from one field to the next. Set up access keys for all fields.

3) Allow Harry to use Access keys for the command buttons.

4) Clear the text boxes so Harry can easily enter the information for the next customer.

    1. There are no partial square feet, gallons, or boxes of nails. Use whole units only.
    2. Format all costs for currency.
    3. You may design your own splash screen containing just about anything you think is appropriate.

Turn In: 1) TOE chart.

2) Print outs of forms & code (not form text), output using required test data.

3) Logic diagram of Calculate routine.

Test Data: Room Length Width

1 140 120

2 120 96

3

Hall 140 35

Extra Challenge: Allow Harry to specify different species of wood as follows walnut($3.50), hickory($2.75), cherry($3.25), maple(2.95), and ash($2.50).

Allow mileage ($.60/mile) and optional finishing costs of ($1.75/sq. ft.) .

Add icons to your command buttons.

Hosted by www.Geocities.ws

1