Outside back cover 1.40 Table 2 – Markup by Location
Step 1: Create the Project: Create a Visual Basic Project using the project name “BuzzAdvertising”.
Step 2 – Design the Form: Design the form as shown in Figure 1. You will need three button controls, eight radio buttons, two group boxes, seven labels, and one picture box. Load the downloaded bee.jpg image into the picture box. Remove the control box because this program will run in a kiosk.
Step 3 – Create the Ad class Add a Class file named Ad to the project. The Ad class should have the following properties: company, telephone, run date, size, location, and price. Create a method in the Ad class that calculates the final price of an ad.
Step 4 – Write code in the main form: Set the size and location based on the radio button selections. Create a new Ad object, passing in the required data values to the constructor. After the Ad object has been created, call the Ad object’s calculate method to obtain the final price. Display the final price with appropriate formatting.
Step 7 – Finish up:Be sure to add the code for the Clear and Exit buttons.
Step 8: Save and run Save all files, then start the application. Figures 2 and 3 show sample runs of this program demonstrating the restrictions.