vendredi 10 décembre 2010

VB Mail Order Case Study, Chapter 12 | Studies in USA (Study in USA, usa study)





Modify your VB Mail Order project from chapter 5 to separate the user interface from the business logic. Create two new classes: one for customer information and one for order item. The order item class should perform the calculations and maintain the the summary information. (done)
Add a menu option to display the customer information. Display the properties of the customer object on a separate form.(done)
Display the about box and the summary information on forms, rather than message boxes.(done)
Optional extra: Use visual inheritance for the forms.(done)
Need a bigger challenge? Create an inherited class for preferred customers. Preferred customers receive an automatic 5 percent discount on all purchases. Use a check box to determine the appropriate class. Maintain and display separate totals for preferred customer.(done)
Note: for help in basing a new project on existing project, see “Copy and Move Projects” in Appendix C.