In this exercise, you complete the Jordan Sports Store application from Exercise 2 in both Lesson A

Question:

In this exercise, you complete the Jordan Sports Store application from Exercise 2 in both Lesson A and Lesson B. Open the VB2015\Chap02\Jordan Solution\Jordan Solution (Jordan Solution.sln) file.

a. The Calculate button should display two amounts: the weekly gross pay and the biweekly gross pay. Employees paid weekly receive 52 paychecks; employees paid biweekly receive 26 paychecks. Code the button’s Click event procedure using the Val function. Use the Format function to display the gross pay amounts with a dollar sign, a thousands separator, and two decimal places.

b. Code the Clear button. Send the focus to the Annual salary text box.

c. Add a print form control to the application. The control should send the printout to the Print preview window. Code the Print button, being sure to hide the buttons before printing, and then display them after printing.

d. Add appropriate comments in the General Declarations section and in the coded procedures.

e. Save the solution and then start the application. Test the application using 75000 as the annual salary. The gross pay amounts should be $1,442.31 and $2,884.62. If your computer is connected to a printer, print the interface.

f. 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 annual salary.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: