Simple Calculator

Download Category:

SimpleCalculator_VB2010.zip - (72.05 KB)
[
SimpleCalculator_VB2010/
SimpleCalculator_VB2010/Form1.vb
SimpleCalculator_VB2010/Form1.Designer.vb
SimpleCalculator_VB2010/My Project/
SimpleCalculator_VB2010/My Project/AssemblyInfo.vb
SimpleCalculator_VB2010/My Project/Application.myapp
SimpleCalculator_VB2010/My Project/Application.Designer.vb
SimpleCalculator_VB2010/My Project/Resources.resx
SimpleCalculator_VB2010/My Project/Resources.Designer.vb
SimpleCalculator_VB2010/My Project/Settings.settings
SimpleCalculator_VB2010/My Project/Settings.Designer.vb
SimpleCalculator_VB2010/App.config
SimpleCalculator_VB2010/SimpleCalculator_VB2010.vbproj
SimpleCalculator_VB2010/bin/
SimpleCalculator_VB2010/bin/Debug/
SimpleCalculator_VB2010/bin/Debug/SimpleCalculator_VB2010.vshost.exe.manifest
SimpleCalculator_VB2010/bin/Debug/SimpleCalculator_VB2010.vshost.exe
SimpleCalculator_VB2010/bin/Debug/SimpleCalculator_VB2010.exe
SimpleCalculator_VB2010/bin/Debug/SimpleCalculator_VB2010.pdb
SimpleCalculator_VB2010/bin/Debug/SimpleCalculator_VB2010.xml
SimpleCalculator_VB2010/obj/
SimpleCalculator_VB2010/obj/x86/
SimpleCalculator_VB2010/obj/x86/Debug/
SimpleCalculator_VB2010/obj/x86/Debug/TempPE/
SimpleCalculator_VB2010/obj/x86/Debug/TempPE/My Project.Resources.Designer.vb.dll
SimpleCalculator_VB2010/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
SimpleCalculator_VB2010/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache
SimpleCalculator_VB2010/obj/x86/Debug/SimpleCalculator_VB2010.Form1.resources
SimpleCalculator_VB2010/obj/x86/Debug/SimpleCalculator_VB2010.Resources.resources
SimpleCalculator_VB2010/obj/x86/Debug/GenerateResource.read.1.tlog
SimpleCalculator_VB2010/obj/x86/Debug/GenerateResource.write.1.tlog
SimpleCalculator_VB2010/obj/x86/Debug/SimpleCalculator_VB2010.vbproj.FileListAbsolute.txt
SimpleCalculator_VB2010/obj/x86/Debug/SimpleCalculator_VB2010.pdb
SimpleCalculator_VB2010/obj/x86/Debug/SimpleCalculator_VB2010.exe
SimpleCalculator_VB2010/obj/x86/Debug/SimpleCalculator_VB2010.xml
SimpleCalculator_VB2010/Form1.resx
SimpleCalculator_VB2010.sln
]

Create a simple calculator
1.For this project, you’ll create a form that accepts two

operands and an operator from the user and then performs the

requested operation.
The design of the Simple Calculator form
Operation
•The user enters two operands and an operator and clicks the

Calculate button or presses the Enter key to perform the

calculation.
•If the data is valid, the program performs the requested

operation.
•If the data is invalid, the program displays an appropriate

error message.
Specifications
•Before performing the calculation, the application should check

that both operands are numeric and that the operator is one of

the following:
+ add
– subtract
* multiply
/ divide
It should also check that both operands are between 0 and

1,000,000 (non-inclusive). To perform this data validation, code

IsPresent, IsDecimal, and IsValidData procedures as described in

chapter 7 of the book. In addition, code an IsOperator procedure

that checks for a valid operator.
•Code a private procedure named Calculate that performs the

requested operation and returns a decimal value. This procedure

should accept the following arguments

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.