In this exercise, you complete the Cranston Berries application from Exercise 3 in both Lesson A and

Question:

In this exercise, you complete the Cranston Berries application from Exercise 3 in both Lesson A and Lesson B. Open the VB2015\Chap02\Cranston Solution\Cranston Solution (Cranston Solution.sln) file.

a. The Calculate button should display the projected sales for each type of berry. Code the button’s Click event procedure using the Val function. Use the Format function to display the projected sales amounts with a dollar sign, a thousands separator, and two decimal places.

b. Code the Clear button. Send the focus to the projected increase’s 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 .05 (the decimal equivalent of 5%) as the projected increase, 25000 as the strawberry sales, 20200 as the blueberry sales, and 16750 as the raspberry sales. The projected sales amounts should be $26,250.00, $21,210.00, and $17,587.50. 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 letters as the projected increase and sales amounts.

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

Step by Step Answer:

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