Create a calculator application, Visual Basic Programming

Create a VB calculator application that appears as in the screen shots below.

79_calculator.png

1349_calculator 1.png

The user enters numbers in the textboxes labelled Number 1 and Number 2. When a calculation button (Add, minus etc.) is pressed, the result for the appropriate calculation appears in the textbox labelled Answer and the appropriate operation symbol (+, - etc.) appears between the number textboxes.
Whenever the user starts to enter a new number (Number 1 or 2), the operation symbol +, -, etc. is to disappear and the Answer and operation symbol are to be blanked out to prevent the display of incorrect results, as shown below:

Whenever the user clicks or tabs to the textboxes labelled Number 1 and Number 2, the field is to be blocked so that a completely new number can be entered.
The Answer textbox is to be locked to prevent manual editing of any displayed results. Also code is required to provide appropriate error checks for the entry of non-numeric (including blank) Number 1 and Number 2 fields, and to prevent a divide by zero error (for both Divide and Modulo). Any detected errors should be accompanied by an appropriate error message with focus being given to the textbox containing the erroneous value to facilitate correction.
Meaningful variable/control names and appropriate comments should be provided.

552_calculator 2.png

Posted Date: 2/18/2013 5:38:05 AM | Location : United States







Related Discussions:- Create a calculator application, Assignment Help, Ask Question on Create a calculator application, Get Answer, Expert's Help, Create a calculator application Discussions

Write discussion on Create a calculator application
Your posts are moderated
Related Questions
For reason of readability & consistency, employ the following prefixes along with descriptive names for variables in your VBScript code. S ub type Prefi

i want to use two forms in vb.net. when the progress bar in form1 reaches on a specific value then disable form1 and progress bar will stop and the second Form2 will popup which wi

DDX - Dialog Data Exchange: The Data members can be related with specific controls in the dialog box. When the dialog box is displayed, the DDX will transfer the values into t

Associating Images to Toolbars: 1. Add an Image list to your form from the tool box. 2. Pick the custom property of the image list. 3. Click the images tab. 4. Select

DEVICE CONTEXT The device context provides the essential drawing tools and the platform to draw. It helps to draw the text, shapes, lines etc. To create the device context, the

A Project to Display a Database: 1. Suppose that there are 5 fields describing a customer. Id, address, name, city & state. 2. Put 5 text boxes on the form to exhibit the r

Software That Is Obscure: The Software hides the intensions, meaning and actions from the user. For illustration, if a user is asked whether a full installation, the custom in

Methods: VBScript Err Object Clear Method Clears every property settings. Raise Method Generate a run-time error.

DATA CONTROL The data control is used to connect to the database. Three properties are very necessary to connect to the database. The primary property is the database name. You

Methods: VBScript Dictionary Object Method D escription Add Method Adds a key, item pair. Exists Method