Question: 11. Open the Shiloh Solution (Shiloh Solution.sln) file contained in the VB2012Chap03Shiloh Solution folder. If necessary, open the designer window. At the end of the
11. Open the Shiloh Solution (Shiloh Solution.sln) file contained in the VB2012\Chap03\Shiloh Solution folder. If necessary, open the designer window. At the end of the year, each salesperson at Shiloh Products is paid a bonus of 1% of his or her annual sales.
a. Open the Code Editor window. In the General Declarations section, enter your name, the current date, and the three Option statements. Use variables and the TryParse method to code the Calculate button. Use the Format function to display the bonus with a dollar sign, a thousands separator, and two decimal places.
b. Save the solution and then start the application. Enter the following valid ID and sales amount: DB12 and 9500. The bonus should be $95.00. If your computer is connected to a printer, print the interface.
c. Clear the screen. Now test the application using invalid data. More specifically, test it without entering any data. Then test it using a letter as the sales amount.
d. Close the Code Editor window and then close the solution.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
