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


ADVERTISEMENT

Keystroke Binding - Adding Number Pad Into Calculator?

Dec 9, 2009

I am fairly new to programming and I am completing the Step by Step by Microsoft for Visual Basic 2008, but I am not finding anything in the book about binding keystrokes for a program. I want to add the Number Pad into my Calculator Program so that every keystroke on it would correspond to a button in my program but I am unsure how to do this take.

View 1 Replies

Change Calculator And Is Supposed To Calculate The Number Of Dollars?

Sep 16, 2011

I am trying to learn how to use the modulus operator.this excersise is a change calculator and is supposed to calculate the number of dollars , qtrs, dimes, nickels and pennies from the change that is calculated.

in the form if i put a value in for owed = 30.00 and paid 34.25 my dollars returned = 4 and that is correct but the number of qtrs = 0 and should be 1. I am not sure how to correctly use this - any assistance you can provide is great - this is purely educational

Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click
Dim owed As Decimal
Dim paid As Decimal
Dim change As Decimal

[Code]...

View 8 Replies

Make A Special Calculator Will Fall In Number In The Link Provided On The Website

Feb 14, 2011

I'm new to the forum and new to programming with Visual Basic Express 2010.I would like to built a special calculator.Calculator will fall in number in the link provided on the website.

[Code]...

View 16 Replies

Standard Deviation Calculator - Random Number Of Numbers Input By User

Feb 19, 2011

Im working on writing a program for doing standard deviation and as of right now im running into one slight issue with subtracting my mean from the original numbers. I will post most of my code so you can get an over view but i mostly just want help on this one little part for now. Im going to be making a website for school and put some programming stuff on it so i wanted to make just some random programs for it so this is school related but not really homework. It's line 26 and 27 that this is relating to. When i put a stop in my code and look at the result of arrayDifferences it gives me 0.0 when it should be -1. I know i can go this route and say arrayDifferences(1) = arrayDifferences(1) - arrayAvg but seeing as how i want this to be a random number of numbers input by the user i cant do that.

CODE:

View 4 Replies

PayRoll Calculator On Vb - Program That Accepts Input Of Employee Name, Employee Type, And Number Of Hours Worked

Sep 30, 2009

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 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:

-The employees name without trailing or leading spaces

-Regular hours worked

-Regular pay

-Overtime hours worked

-Overtime pay

-Total pay

The Problem that i am having right now is "Displaying " the overtime hours on my "FORM VIEW" i mean i did the math right its just when i type (lblOverHrs.Text = CDec(CDec(OvrHrsWrkWeek1.Text) + CDec(txtOvrHrsWrkWeek2.Text))

Its says the "OvrHrsWrkWeek1 and 2" are not Declared which are..im not really sure where i went wrong..

Heres my code

CODE:

View 4 Replies

Forms :: Use A If Statement To See If Fosters Button And Number 1 On The Number Pad Are Both Pressed Then Multiply Constant By Quantity Number?

Mar 4, 2011

I am doing a bar cash register and I want to use a if statement to see if fosters button and number 1 on the number pad are both pressed then multiply constant by quantity number

View 1 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

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

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

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

Creating A Backspace Key For A Calculator?

Dec 2, 2010

i am creating a backspace key for a calculator. first of all a currency needs to be chosen by clicking a button, when for example the is clicked the text is entered into the texbox. But when i use the backspace it deletes here is my code..

Private Sub btn_pound_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_pound.Click
'Enable the keypad when the pound sign is clicked,Disable the curency buttons after'
pnl_numbers().Enabled = True[code]....

View 4 Replies

Add A Minus Function To My Calculator

Jul 22, 2010

I am new to the MSDN forums and was wondering if you could kindly help me with a learning project.I have created a calculator with a simple addition function button and was wondering if the method I used to create it is efficient and how I may go about adding additional functions such as a minus function.Will my current code allow m to implement a minus, multiplication, or division function easily?How do I add a minus function and would adding a multiplication or division function? Also would can I use the same global variables to do this.[code]

View 1 Replies

Build A Scientific Calculator With Vb?

Aug 11, 2009

I'm trying to build a scientific calculator with vb .net, except it is vista glass :-p

I basically want the user to be able to enter an equation like SQRT(5 * 6) / (2 ^ 4) and then I want vb to use system.math to solve it. If I write this in my code, vb is able to do it, so how could I do this at runtime.

View 4 Replies

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

Calculator - Cannot Add/subtract/multiply By 0

Jan 11, 2011

I have built a small VB.NET Calculator but whenever I add, subtract or multiply by 0 the answer is always 0. Here is my code:

Spoiler
Option Explicit On
Public Class Calculator2

[Code]....

View 13 Replies

Code For Simple Calculator?

Jul 12, 2009

code for calculator using vb.net

View 2 Replies

Context Menus For Calculator?

Feb 15, 2011

calculator similar to the Standard Windows Calculator. Your calculator should perform the same operations as the standard calculator.

I JUST WANT TO KNOW HOW MAKE Context menus

- FOR THESE Memory buttons: MC, MR, MS, M+

View 3 Replies







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