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

Vb script basics, This section will discuss the fundamentals of VBScript an...

This section will discuss the fundamentals of VBScript and define concepts such as datatypes, loops and others. VBScript Data Types VBScript contain only one data type called

Coding, Write an event procedure to automate the billing system of a superm...

Write an event procedure to automate the billing system of a supermarket. Give the details of database tables, forms, controls and menu design (if any). Make assumptions, wherever

Adding records - data control, Adding Records: 1. As in the earlier ca...

Adding Records: 1. As in the earlier case Set the DatabaseName property as "C:\ex.mdb", now Set the Record Source for the data control as Customer and Set the Record Type to 0

Student record management system, i need your help in designing and coding ...

i need your help in designing and coding a student record management system

Genetics, GENETICS 1.         The branch genetics started in 1900 after...

GENETICS 1.         The branch genetics started in 1900 after rediscovery of Mendel's work. 2.         Gregor Johann Mendel is called Father of genetics. 3.         The t

Conditional statements, You can control the flow of your script with condit...

You can control the flow of your script with conditional statements & looping statements.  By using conditional statements, you can write VBScript code which makes decisions and re

Sdi application - types of project using visual c++, SDI Application T...

SDI Application The SDI application uses the main frame window to exhibit a document. Only one document can be opened at a particular time.

Investment loan program, I have all my program done except the loan part th...

I have all my program done except the loan part that I am having a lot of troubles with

Variable scope, Variables must always be described with the smallest scope ...

Variables must always be described with the smallest scope possible. VBScript variables can have the given scope. Scope Where Variable is Declared

Vb program for simple image processing, A program needs to be written that ...

A program needs to be written that is capable of simple image processing. All the images that are available for you to use, can be found on Blackboard in the Assignments section. T

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