Lab Supervisors: Dan Bissell and Sidharth Kudige
Your Name(s): ______________________________________________________________
Important: You are encouraged to work in teams of two, and also to use a significant portion of the two 50 minute lab periods for this exercise. Since this lab will be divided over two weeks work first on the design of the program and then on the implementation. If you feel you wont get this lab done during the two lab periods then have discussions in your group during the interim week.
If you are one of the few teams who finish the lab quickly, please work on the extra credit portion of the exercise. Hand in one lab assignment per team!
Your third and fourth Lab Assignments are to design and implement an addition calculator. You must implement the addition functionality of the Windows calculator in standard mode (shown below and found in the menu Start -> Programs -> Accessories -> Calculator). Thus, you should make sure to understand the functionality in the Windows calculator. It is suggested that you "play" with the windows calculator. The following lists what should and should not be implemented for this lab:
- The Edit, View, and Help menus are not to be implemented (this can be done in Visual Basic, but we haven't learned the tools to do that yet).You may use the Windows accessories calculator layout as a model or you can design your own layout.
- Implement only the following command buttons MC, MR, MS, M+, numbers (0 1 2 3 4 5 6 7 8 9), +/-, '.', +, =, CE, and C. All other command buttons are to be DISABLED.
- You need not use the keyboard to input numbers or other command functions. Clicking the various command buttons with the mouse will suffice.
Note: You have two lab sessions to
complete this project.
- Explore the Windows calculator and write down explicitly what each button does.
- Use "proper programming techniques."
- You can Right click on a Windows calculator button to find out exactly what that button does. You shouldn't implement this right-click functionality.
Important! Aligning Controls Neatly: This is especially important in this project. To align a group of controls (e.g., text boxes, buttons), hold down the CTRL key while clicking each. You will see handles around both. Select the Format menu choice to look at the choices. You can align the positions or sizes of the controls. They will be aligned to the settings of the last control selected in the group.
1. Print a text listing of your form as follows: In Visual Basic, select File/Print and check the box: Form as Text. This printout will display the properties of the controls in English.
2. Print a text listing of your program code as follows: In Visual Basic, select File/Print and check the box: Code.
3. Run the program and print a series of calculations. To do this, do a screen dump (ALT-Print Screen) and Paste into WordPad (Start/Programs/Accessories/WordPad). Select File/Print in Wordpad to print your document.
Extra Credit: Implement the total functionality of the Windows Calculator in Standard Mode. This means all command buttons.
Last Updated: 9/30/99