Download Creating a Room Furnishings Application using Visual Studio: Lab 13 and more Lab Reports Information Technology in PDF only on Docsity! IST 256 Lab 13 – March 3, 2008 1. Writing a Module with a Procedure Open a new project in Visual Studio and call it something like RoomModule. This application will sell furnishings for a room. It will have two types of items for sale, rugs and wall art. a. Create a main form that has three buttons: one to go to the rug form, one to go to the art form, and one to close the application. Name these three forms and add navigation. b. Create the form to sell rugs of different sizes. There should be two textboxes, one for the user to type in the width of rug that they want and one to type in the length of rug, where both measurements are in feet. The rugs sell for $20.00 per square foot. There will be a button to compute the price of the rug and a label to show the result. There will also be a button to go back to the main form. c. Create the form to sell wall art of different sizes. Again, there should be two textboxes, one for width and one for length of the art in feet. And there should be a button to compute the price and a label to show the result, where the price of the art is $15.00 per square foot. (Note that you can copy textboxes, buttons, and labels from the first form to the second form, and just change the text to make sense.) There will also be a button to go back to the main form. d. Create a Module: Go to the Project Menu in Visual Studio, and select Add Module. In the Add Module box, type in a name for your module, call it RoomModule or leave it as Module1. In the module, write a procedure with a heading that starts Public Sub ComputePrice( … ) Inside those parentheses, put the formal parameter list. There should be: A TextBox parameter to get the width of the item A second TextBox parameter to get the length of the item A price per square foot, as a Single A Label to show the resulting price In the body of the procedure, declare a variable to hold the total price and declare variables to hold the width and the length. Get the width and the length from the two TextBoxes. Assign the total price variable to be the width multipled by the length multiplied by the price. Put a string showing the total price into the Text attribute of the Label.