Add Tax On A Simple Calculator?

Oct 11, 2009

I am doing a tutorial for a simple calculator. My question is how can I add code to make a botton that add my tax % to the total amount I have.

Option Explicit On
Public Class Form1
Dim firstnumber As Single

[Code]......

View 1 Replies


ADVERTISEMENT

Build A Simple Calculator In VB?

Mar 20, 2006

how to build a simple calculator in VB; i got the interface with buttons and text box alredy and i figured out how to put more then one number using buttons alredy(Disp.Text = Disp.Text & 1) , Looking at the windows calc, how do you store the number u just entered into a text box and alowe user to enter another to performe calculations, what code should i use for equal button and etc.

View 10 Replies

Code For Simple Calculator?

Jul 12, 2009

code for calculator using vb.net

View 2 Replies

Making A Simple Calculator In VB?

Oct 1, 2005

how to make a simple calculator using vb?

View 11 Replies

Create A Simple Calculator Using Only 1 Textbox?

Mar 29, 2011

I want to create a simple calculator using only 1 textbox , 1 button and 1 label, but I don't know how to create the code.

for example if i write : 53+35-33=

and if i press the button it will calculate and the answer the label will show the answer (55).

View 3 Replies

Creating A Simple Function Calculator?

Dec 8, 2010

i am going creating a simple function calculator, but I had to first do a design documentation proposal. I now have to update the project proposal with a storyboard or list of menu and screen items to delineate my proposed user screen and menus.aside from the calculator itself there will not be any menus.I also have to list any user data inputs and outputs my application will require and produce, which i assume i can put any numbers that the user inputs into the calculator and their results.

View 5 Replies

Forms :: Trying To Develop A Simple Calculator

Jun 16, 2011

I am new in programming, I am trying to develop a simple calculator but I am unable to connect the addition, subtraction and equal sign buttons.[code]

View 1 Replies

Multiple Operations With A Simple Calculator?

Jul 31, 2011

I've got the bulk of a calculator up and working, however it doesn't like multiple operations. For example 3x5+2= brings up 10 (i.e. 3+5+2) and even doing it in two parts doesn't help, if I enter 3x5= I get 15 then +2= gives me 32 (i.e. 3x5=15 15x2=30 30+2=32). Also I am getting trialing zeros in my command line I can't debug.Note that lblcommandline displays the whole function and lbldisplay just displays the current imputted number.

Public Class frmSimpleCalc
'This code is run when the program starts. Here we 'declare' or basically, define which variables we want, what they are and such.
'So, for this example, we need two variables. The number we are CALCULATING and the one which we will CALCULATE FROM.
Dim lCalcNumberMaster As Long 'The master number is the solution, the number stored and displayed when we click equals.

[code]....

View 3 Replies

Simple Calculator - How To Work With Print

Jun 11, 2011

I am making a calculator Program to start off on visual basic. I got it to work with MsgBox, but now I'm trying to get it to work with the Print.

MsgBox Example
Public Class Form1
Private Sub Button1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseClick
Dim Pizza As Integer
[Code] .....

Say I type in 6 and 6 I'm getting errors saying Example: Conversion from string "youranswer is 12" to type 'Integer' is not valid. I've tried many things, but it's not working. I want to know what I need to do to get it to print out how I want it. Do I need to do some conversions properly somehow?

View 2 Replies

Simple Calculator Multiplication And Division?

Jan 30, 2010

Simple Calculator multiplication and division Trying to make a simple calculator. My program inputs numbers and arithmetic operations thru commandbuttons. The numbers, num(n-+1), are odd and the operations, op(n), are even. The code is based on the even op string. Every time a op occurs it is stored in numop(n) to be accessed later. I have all the other operations in sequential order: "*"," "/, "+" and "-". The other similar For-Next loop are the same just interchange the two * for /, +and -. The "+" and "-" work fine in this configuration.

My problem is the multiplication and division does not occur. The numbers and operations line up. The numop(m)=g*h should yield numop(m)=num(1)*num(3). Is there some sort of code to be inserted to accomplish these multiplication and division operations?

[Code]...

View 7 Replies

Make A Simple Resistance Calculator For Practice?

Nov 21, 2009

I am trying to make a simple resistance calculator for practice. I use text boxes to let the user input the current and voltage, and then a combo box for the units and then a list box to display the results. For some reason no matter which units I select it doesn't convert at all. For example 1/2 will always show up as 0.5 in the list box no matter which units are selected from the combo box. Here is my code.....I know that there is more cases but I only put one to see if it works before I write all of the cases.

Public Class Form1
Dim unitsA As String
Dim unitsV As String

[code]....

View 1 Replies

Develop A Simple Math Calculator That Will Allow The User To Input The Right-hand-side (RHS) Of An Equation Into A Textbox?

Dec 12, 2011

I am trying to develop a simple math calculator that will allow the user to input the right-hand-side (RHS) of an equation into a textbox on the application and have the application evaluate the expression for a given value of x, which is also input
into the application by the user via another textbox.For example, if the user wants to evaluate the following expression,

y = 3 + 4*x + 5*x^2

then they would input into the textbox the RHS of the equation

3 + 4*x + 5*x^2

and then enter a value of x into the another textbox and click on the calculate button.I tried this:

answer = EquationTextBox.Text

but it doesn't work.

View 6 Replies

Post A Simple Code Using VB That Start Building Simple Games?

Jun 10, 2011

Is there anyone can post a simple code using vb,that start building a simple games ?

View 2 Replies

Make A Simple Browser With Some Simple Addon's?

Dec 9, 2011

Trying to make a simple browser with some simple addon's. What Ive done is setup a menu(forum) for the user to enter their email providers web address and it will save it in a xml file. When they click on the email link, it should load the email xml iformation and place that info in the tb_html.text and navigate. I keep getting a null exception and im not sure what going on here. Here is the code:

Browsers:
Private Sub btn_Email_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Email.Click
'Load Action
Dim SavedEmailObj As Storage

[code].....

View 2 Replies

Calculator / Add A Beep?

Jan 22, 2010

I have this:

If (TextBox1.TextLength > 16) Then Return

But I want to add a beep to how can I do it? I mean I can only Return and I want to use Beep() too.

View 6 Replies

Add Numbers In A Calculator?

Jan 29, 2009

I've made a simple calculator, everything works except for the adding (+) function. Such as 3 + 4 = 34 (which it doesn't). It takes it as a string, rather than a number.

Here's what I have so far:

CODE:

Again, the problem is the adding is not functioning.

View 1 Replies

Calculator - Comma / Dot Appear Only Once

Dec 7, 2009

The comma/dot may appear only ones. How do I modify that within this code??
bpuntingedrukt as boolean
Private Sub VoegCijferToe(ByVal sCijfer)
If Len(lblDisplay.Text) > 15 Then Exit Sub
If sCijfer = "0" And lblDisplay.Text = "0," Then
[Code] .....

View 24 Replies

Calculator And Exe.file?

Jan 11, 2011

Okay, i have two questions i will merge into one.I am using Express, just in case its important

First of all, i am trying to create a calculator using Visual Basic, which will end up being a lot like the 'Calculator' application built into all Microsoft computers.

I am having trouble however, with adding more than one thing to a text box.

[Code]...

View 13 Replies

Cannot Get A Calculator To Work

Jun 18, 2012

i have to finished a cacluator, all my code seems to be working apart from the equals button and i do not understand why..i've tried several different things such as a case too but nothing seems to work to get the equals button working. This is my code, no need for all the buttons they are the same and ive declared variables.

[Code]...

View 2 Replies

Day Of Week Calculator?

Mar 30, 2012

Sorry in advance. I emailed myself my coding since I don't have vb on my personal computer. Sooo, the format is going to be off. But my program allows the computer to generate a random date. The user has to guess what day of the week the random date lands on. I have written the whole code. It all works except when user checks his/her answer. The answer always comes up as incorrect. Here is the coding:

[code]...

View 5 Replies

Dosage Calculator In C#.net?

Jul 13, 2009

I want Dosage Calculator in c#.net for my module completion.

View 2 Replies

How To Build A Calculator

Dec 17, 2009

I want to build a calculator, i want to learn vb.net myself so i contacted you.

View 2 Replies

How To Code The Calculator

Apr 3, 2009

how to code the calculator?

View 2 Replies

How To Design A Calculator

Jun 22, 2010

How can i design a calculator?

View 2 Replies

How To Make A Calculator

Nov 26, 2009

does anyone know what i need to do? if you do make a youtube video and post it in this post.

View 1 Replies

Odd And Even Number Calculator?

Mar 27, 2011

I need to do a programme that checks if the number a user enters is odd or even and then adds together all the odd numbers and all the even numbers seperately and displays the total in a label. My code just displays "0".

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oddNumber As Integer

[code].....

View 1 Replies

PayRoll Calculator On VB?

May 22, 2010

You need to design and create a program that accepts input of employee name, employee type, and the number of hours worked each week for two weeks.You must be able to select an employee type. An employee of type Trainee makes $10 per hour. An employee of type Regular makes $15 per hour. An employee of type Manager makes $20 per hour.The program should calculate the employee�s pay for the week. The employee should receive 1 � times the regular pay for any hours worked over the prescribed 40 hours in a week. The program should output the following information:

Option Explicit On
Public Class Form1
Private Sub GroupBox2_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code].....

View 3 Replies

Polynomial Calculator In Vb?

Nov 14, 2009

VB.pdf (69.13K)Number of downloads: 72 VB.pdf (69.13K) Number of downloads: 72

View 1 Replies

Tip Calculator Using 2 Classes?

Dec 7, 2011

So Im having trouble taking the code i have and being able to break it down into a tip class and a total class along with the main form. i did the whole code in on form and now im so confused on how to break it down.this is what i have! its alot because im using radio buttons.. on and im using visual

Option Strict On
Option Explicit On
Imports System.Convert

[code].....

View 3 Replies

VB Console App Calculator?

Oct 26, 2011

I need a little help in programming a console calculator.I'll start by saying that VB is a new programming language for me. I started a class in school that uses VB to teach an introduction to computer logic and programming. It's not the first language i have learned, but it the first one that i have gotten in depth with in console apps.I have a basic set up of asking the user for the first number, then the operator, then the second number.I'm currently using a Select Case statement to start the calculation area of the program, a Do Until at the beginning of the Select Case for a repeat, then it proceeds to getting the numbers and operators.

I'm also wanting to get all the possible math operators that VB provides included.What i'm hoping for is to clean up my code and make it to where the program asks the user for the equation itself. Example.

Console.WriteLine("Enter the equation")
equation = Console.ReadKey()

View 15 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved