In this exercise, you create an application that calculates the number of single rolls of wallpaper required
Question:
In this exercise, you create an application that calculates the number of single rolls of wallpaper required to cover a room. Create a Windows Forms application. Use the following names for the project and solution, respectively: Wallpaper Project and Wallpaper Solution. Save the application in the VB2017\Chap06 folder.?
a. Create the interface shown in Figure 6-61. The four combo boxes have the DropDown style. Display numbers from 8 through 30 in the combo boxes that get the room?s length, width, and height. Display numbers from 30 through 40, in increments of 0.5, in the combo box that gets the roll coverage. When the interface appears, the numbers 10, 10, 8, and 37 should be selected in the Length, Width, Height, and Roll coverage combo boxes, respectively.?
b. The Calculate button?s Click event procedure should calculate and display the number of single rolls of wallpaper required to cover a room. Use a Sub procedure to make the calculation. The number of single rolls should be displayed as an integer.
c. The number of rolls should be cleared when a change is made to a combo box.d. Save the solution and then start and test the application. (If the roll coverage is 38.5 square feet and the room?s length, width, and height are 14, 20, and 8, respectively, the number of single rolls is 15.)?
Step by Step Answer: