Create a Windows Forms application. Use the following names for

Create a Windows Forms application. Use the following names for the project and solution, respectively: Translator Project and Translator Solution. Save the application in the VB2017Chap06 folder.
a. Create the interface shown in Figure 6-59. The combo box should display the following words: French, Italian, and Spanish. When the interface appears, the first item in the combo box should be selected. 

b. The user will select a radio button in the English group and also select a language from the combo box. The Translate button should use three functions (one for each language) to translate the English word into the desired language. If necessary, use the Internet to find the corresponding French, Italian, and Spanish words. The Translate button should then display the translated word in the label. Code the functions and the button’s Click event procedure. (If the Code Editor indicates that a String variable is being passed before it has been assigned a value, assign the String.Empty value to the variable in its Dim statement.) 

c. Use an event-handling Sub procedure to clear the label. Also, verify that the user wants to exit the application before closing the form. 

d. Save the solution and then start and test the application.

In this exercise, you create an application that calculates a

In this exercise, you create an application that calculates a customer’s cable bill. Create a Windows Forms application. Use the following names for the project and solution, respectively: Cable Direct Project and Cable Direct Solution. Save the application in the VB2017Chap06 folder.

a. Create the interface shown in Figure 6-60. Display numbers from 0 through 20 in the lstPremium control. Display numbers from 0 through 100 in the lstConnections control. When the interface appears, the first item in each list box should be selected. 

b. The Calculate button’s Click event procedure should calculate and display a customer’s cable bill. The cable rates are included in Figure 6-60. Business customers must have at least one connection. Use two functions: one to calculate and return the total due for business customers, and one to calculate and return the total due for residential customers. 

c. The form’s FormClosing event procedure should verify that the user wants to close the application. 

d. The total due should be cleared when a change is made to a radio button or list box.
e. Save the solution and then start and test the application. (The total due for a business customer with 3 premium channels and 12 connections is $254.50. The total due for a residential customer with 3 premium channels is $49.50.)

In this exercise, you create an application that calculates the

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 VB2017Chap06 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.) 

In this exercise, you modify the application created in Exercise

In this exercise, you modify the application created in Exercise 9. Use Windows to make a copy of the Translator Solution folder. Rename the copy Translator Solution-Sub. Open the Translator Solution.sln file contained in the Translator Solution-Sub folder. Change the three functions to Sub procedures. (If the Code Editor indicates that a String variable is being passed before it has been assigned a value, assign the String.Empty value to the variable in its Dim statement.) Save the solution and then start and test the application appropriately. 


Data from Exercise 9.

Create a Windows Forms application. Use the following names for the project and  solution, respectively: Translator Project and Translator Solution. Save the application in the VB2017Chap06 folder.

The Donut Shoppe sells four varieties of doughnuts: Glazed ($1.05),

The Donut Shoppe sells four varieties of doughnuts: Glazed ($1.05), Sugar ($1.05), Chocolate ($1.25), and Filled ($1.50). It also sells regular coffee ($1.50) and cappuccino ($2.75). The store manager wants you to create an application that displays a customer’s subtotal, 6% sales tax, and total due. Create a Windows Forms application. Use the following names for the project and solution, respectively: Donut Project and Donut Solution. Save the application in the VB2017Chap06 folder. Create the interface shown in Figure 6-57. When coding the application, use one independent Sub procedure to determine the subtotal, which is the total cost without the sales tax. Use a function to determine the sales tax. Use an event-handling Sub procedure to clear the output. Save the solution and then start and test the application.

Mats-R-Us sells three different types of mats: Standard ($99), Deluxe

Mats-R-Us sells three different types of mats: Standard ($99), Deluxe ($129), and Premium ($179). All of the mats are available in blue, red ($10 extra), and pink ($15 extra). There is also an extra $25 charge if the customer wants the mat to be foldable. Create a Windows Forms application. Use the following names for the project and solution, respectively: Mats Project and Mats Solution. Save the application in the VB2017Chap06 folder. Create the interface shown in Figure 6-58. Use a function to determine the price of the mat before any additional charges. Use a Sub procedure to calculate the total additional charge (if any). Use an event-handling Sub procedure to clear the price. Also, verify that the user wants to exit the application before closing the form. Save the solution and then start and test the application appropriately.

In this exercise, you modify one of the Seminars applications

In this exercise, you modify one of the Seminars applications from Chapter 4’s Apply lesson. Open the Seminars Solution.sln file contained in the Seminars Solution-CheckBox folder. Create an event-handling Sub procedure named ClearAmountDue and associate it with each check box’s CheckChanged event. Then, create a function that determines which (if any) check boxes are selected and then adds the associated fee to the total due. The function should return the total due to the statement that invoked it. Also, make the necessary modifications to the btnCalc_Click procedure’s code. Save the solution and then start and test the application.

In this exercise, you modify the Proper Case application from

In this exercise, you modify the Proper Case application from Exercise 6. If necessary, complete Exercise 6. Then, use Windows to make a copy of the Proper Case Solution folder. Rename the copy Proper Case Solution-Middle. Open the Proper Case Solution.sln file contained in the Proper Case Solution-Middle folder. Modify the application to allow the user to also enter his or her middle name or middle initial. The btnProper_Click procedure should display the full name, which might include a middle name or middle initial, in proper case. Save the solution and then start and test the application. (If the user enters “john smith” as the name, the application should display “John Smith”. If the user enters “john thomas smith”, the application should display “John Thomas Smith”. If the user enters “carol g. jones”, the application should display “Carol G. Jones”. If the user enters two spaces, “pam”, two spaces, “grace”, three spaces, “darwin”, and two spaces, the application should display “Pam Grace Darwin”.) 

Data from Exercise 6.

Open the Proper Case Solution.sln file contained in the VB2017Chap07Proper Case Solution folder. The interface provides a text box for entering a person’s first and last names. The btnProper_Click procedure should display the first and last names in the proper case. In other words, the first and last names should begin with an uppercase letter and the remaining letters in each name should be lowercase. If the user enters only one name, display the name in proper case. Be sure the btnProper_Click procedure works correctly if the user inadvertently enters more than one space between the first and last names. After displaying the name, the procedure should send the focus to the txtName control. Code the procedure. Save the solution and then start and test the application. (If the user enters “john smith” as the name, the application should display “John Smith”. If the user enters “carol” followed by three spaces and then “jones”, the application should display “Carol Jones”. If the user enters three spaces followed by “jack” and another three spaces, the application should display “Jack”.)

In this exercise, you modify the Password application from this

In this exercise, you modify the Password application from this chapter’s Apply lesson. Use Windows to make a copy of the Password Solution folder. Rename the copy Modified Password Solution. Open the Password Solution.sln file contained in the Modified Password Solution folder. The btnCreate_Click procedure inserts a number immediately after the first character in the password. The number represents the length of the string before the number is inserted. Modify the procedure so that the number always contains two characters. For example, if the length of the string is 6, insert “06” (a zero and the number 6). Save the solution and then start and test the application. (If the user enters “May the Force be with you”, the Create password button should display M06tFbwy.)

Open the Shipping Solution.sln file contained in the VB2017Chap07Shipping Solution

Open the Shipping Solution.sln file contained in the VB2017Chap07Shipping Solution folder. The interface provides a text box for entering a shipping code, which should consist of two numbers followed by either one or two letters. The letter(s) represent the delivery method, as follows: MS represents Mail – Standard, MP represents Mail – Priority, FS represents FedEx – Standard, FO represents FedEx – Overnight, and U represents UPS. The btnDelivery_Click procedure should use the Like operator to determine the delivery method to select in the list box. For example, if the shipping code is 73mp, the procedure should select the Mail – Priority item in the list box. The procedure should display an appropriate message when the shipping code is not valid. Code the procedure. Save the solution and then start the application. Test the application using the following valid codes: 73mp, 34fs, 88FO, 12u, and 34ms. Then, test it using the following invalid codes: 9fo and 78hs.