Assignment #5 15 Points

CISB 119

Objectives: This assignment provides you with experience using the If/Then/Else/Endif statement, InputBox, relational operators, logical operators, frames, option buttons and check boxes, timer controls, standard modules, and calling procedures.

Problem: You have been hired Polly's Pizza Palace to assist the owner in automating order taking. Polly needs an application that will allow her employees to enter all of the order information including customer information, size, crust, and toppings for pizzas, and whether the user wants delivery or to pick it up themselves. Polly also wants the application to calculate the total price and print the order.

Customer info: First and last name, street address, city and telephone number. {Street address and city are for delivery orders only.}

Pricing info: 1) Pizza sizes include 9 inch ($4.00), 12 inch ($5.00), 16 inch ($6.00).

2) Delivery costs $1.50.

3) Premium toppings ($2.00) sausage, pepperoni, ham, and extra cheese.

4) Regular toppings ($1.50) include peppers, onions, and mushrooms.

5) Crusts (no charge) include cheese, regular, and whole wheat.

6) A Polly,s Special (16" cheese crust, sausage, ham, extra cheese, and mushroom) costs $9.00 plus delivery charge if applicable.

Special

Considerations: 1) You should allow the Polly to print the order (without buttons showing). Use ButtonMagic to clear and restore your buttons from the form. This Sub is stored on the network, you simply need to add the standard module to your project and call it according to the directions provided in the internal documentation.

2) Control the focus so that Polly can Tab in sequence from one field to the next.

3) Use option buttons and check boxes when appropriate.

4) Clear the text boxes so Polly can easily enter another order for the next customer.

5) Have the program ask for street address and city for delivery orders only (use InputBox) or see the extra challenge below.

6) If the user selects a Polly’s Special the application should check all the appropriate choices automatically. If the user picks all the options for a Polly"s Special, the program should automatically check the Polly’s Special box and give the customer the special price. (Note: A Polly’s Special allows NO additional toppings or substitutions.)

7) Using a timer control, add a real time clock to your form that is updated each second.

Turn In: 1) TOE chart.

2) Print outs of form and code, output with test data.

3) Flowchart of Calculate procedure.

Test Data: Order 1: Sherlock, Holmes, delivery, 221B Baker St, London, 485-2212, 12 inch, whole wheat, sausage, extra cheese, mushrooms.

Order 2: Joe, Blow, pickup, 694-2123, 16", cheese crust, sausage, ham, extra cheese, mushroom.

 

Extra Challenges: 1) Set up your program so that it automatically calculates the prices as the data is entered rather than waiting for a Calculate button to be clicked.

    1. Use text boxes for the street address and city information. Have the text boxes appear only after the user selects the delivery option.
    2. Using ButtomMagic as a guide, can you create your own sub that will clear the contents of all of your textboxes for you. Note: This type of routine is well beyond the scope of your textbook so you won’t find any help there. This is more typical of the concepts covered in the advanced class.
Hosted by www.Geocities.ws

1