Program 2

advertisement
CITA140 – Introduction to Programming
Name:____________________
Lab Exercise 2: Emphasis on Chapter 3
Before beginning this Lab Exercise, please close all applications and files on your computer
(including IM and Email) except for Visual Basic 2008. Having any application or file, other
than Visual Basic, open on your computer will result in a grade of zero (0) on the Lab
Exercise.
You may use your textbook, the Notation Conventions document, and the Variable Naming
Conventions document while doing this Lab Exercise.
Use Hungarian Notation to name all objects. Use proper Variable Naming Conventions to
name all variables.
Problem: Smith Outdoor Shop would like an application to help the owner track the financial
account balance. The application will allow the owner to enter the account balance at the beginning
of the month, the amount of money the store received in sales during the month, and the amount of
money the store paid out for bills during the month. The application will then calculate and display
the financial balance at the end of the month. A financial balance is money, so remember to display
appropriately!
1) Draw a TOE chart for the above problem and write appropriate pseudocode for the event
procedures on the attached sheet.
2) Using Visual Basic 2008, create a solution. Name the solution <your last name> Outdoor
Solution and name the project Outdoor Project. Create the required form, name it appropriately,
and place the appropriate controls on the form. Arrange the controls in a manner consistent with
the style recommendations discussed in your textbook. Remember to set the properties of the
controls to make the interface user-friendly and programmer-friendly. In addition, set an access key
for each button control you create.
3) Comment your Visual Basic 2008 code as appropriate, including a comment block at the top of
the code. Include the appropriate Option statements in your code.
4) Run the application and make sure it works correctly. Raise your hand and show me. Print out
your program and hand it in.
Page 1 of 2
Version C - Fall 2014
CITA140 – Introduction to Programming
Draw TOE Chart(s) and Write Pseudocode Below:
Page 2 of 2
Version C - Fall 2014
Download