Create a calculator application, Visual Basic Programming

Assignment Help:

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


Related Discussions:- Create a calculator application

Explain class module and standard module, Difference between Class Module a...

Difference between Class Module and Standard Module? Standard module: -This place for variable declarations,procedures etc.& it can accessed these procedures in whereve

Repeating statements while a condition is true, Use the While keyword to ve...

Use the While keyword to verify a condition in a Do...Loop statement. You can verify the condition before you enter the loop (as illustrated in the following ChkFirstWhile instance

If - else statement, A variation on the If...Then...Else statement lets you...

A variation on the If...Then...Else statement lets you to choose from various alternatives. By adding up Else If clauses expands the functionality of the If...Then...Else statement

Accelerators - intrinsic control, Accelerators: The Accelerators are s...

Accelerators: The Accelerators are short cut keys. The Accelerators are formed by placing an ampersand before any of the characters of the Caption. As a product the letter fol

Array Program, Would it be possible to see an example of an array program t...

Would it be possible to see an example of an array program that tracks rent in different apartment buildings and is modular?

For next repetition - control statement, For ..... Next Repetition Statemen...

For ..... Next Repetition Statement: To demonstrate the working of for .. next control statement, put a command button and a label control on the form. The Handle clicks the e

Menus and tool bars in visual basic, MENUS AND TOOL BARS   The Menu op...

MENUS AND TOOL BARS   The Menu options can be checked, enabled, disabled, and popped up on an object. The Menu Object: The Menu control is used to generate a menu in

Switch 2 images, I have a problem with Visual Basic: exchangeable 2 image...

I have a problem with Visual Basic: exchangeable 2 images of place I have 2 picturebox''s placed a button when I click on the button, the 2 pictures of this place change with e

Control statements, CONTROL STATEMENTS   The conditional expression us...

CONTROL STATEMENTS   The conditional expression uses a comparison operator that results in true or false value. If the comparison is valid the outcome is true, or else the out

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd