Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 01-10-2007, 04:15 PM   #1 (permalink)
 
Ultra Techie

Join Date: Dec 2005

Posts: 928

dawizhacker is on a distinguished road

Send a message via MSN to dawizhacker
Default Visual Basic Calculator

I need a the code for a very basic calculator or how to make one.

Must include: Clear + - / * = 1-9 and 0.

A link or the code would be nice.
__________________
Casual (AMD 4000+ x4) (Stock mobo) (750 Gig + 8 TB Xternal) (150 RAPTOR) (9800GT OC x2)
(OCZ PowerStream 800 Watt) (2G OCZ) (XP/Vista)
____________________________________________
Torrenter (1.05GHZ) (Stock mobo) (250GiG) (9200 Radion) (Stock PSU) (768MB) (XP)
____________________________________________
Laptop (Intel Core 2 Duo @ 2.8Ghz) (2G) (8600GT) (XP/Vista) (500GiG)
dawizhacker is offline  
Old 01-10-2007, 05:31 PM   #2 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default

Do your own homework.
jaeusm is offline  
Old 01-10-2007, 07:27 PM   #3 (permalink)
 
Ultra Techie

Join Date: Dec 2005

Posts: 928

dawizhacker is on a distinguished road

Send a message via MSN to dawizhacker
Default

Lol who said it's homework?
I quess it's quite easy to make it myself but I'm just way, way to **** lazy.
__________________
Casual (AMD 4000+ x4) (Stock mobo) (750 Gig + 8 TB Xternal) (150 RAPTOR) (9800GT OC x2)
(OCZ PowerStream 800 Watt) (2G OCZ) (XP/Vista)
____________________________________________
Torrenter (1.05GHZ) (Stock mobo) (250GiG) (9200 Radion) (Stock PSU) (768MB) (XP)
____________________________________________
Laptop (Intel Core 2 Duo @ 2.8Ghz) (2G) (8600GT) (XP/Vista) (500GiG)
dawizhacker is offline  
Old 01-10-2007, 10:27 PM   #4 (permalink)
 
Newb Techie

Join Date: Jan 2007

Posts: 25

ryno

Default

Well, what you could do is create four functions for each mathematical operator (multiplication, addition, subtraction, division) which takes in two integers (or doubles, floats, whatever you need to calculate).

The user will enter the first number and click on a mathematical operator. When that operator is clicked you will know which function to use. The user will enter the second number and click on either another operator or the equals button. At this point you will pass the two numbers to the pertinent function and return the result to the user.

Easy as pi.

PS: This is a very common homework question, so don't expect anybody to give you any code.
ryno is offline  
Old 01-11-2007, 08:50 PM   #5 (permalink)
 
Ultra Techie

Join Date: Dec 2005

Posts: 928

dawizhacker is on a distinguished road

Send a message via MSN to dawizhacker
Default

Yea... I kinda did it already, but Thx for the info
__________________
Casual (AMD 4000+ x4) (Stock mobo) (750 Gig + 8 TB Xternal) (150 RAPTOR) (9800GT OC x2)
(OCZ PowerStream 800 Watt) (2G OCZ) (XP/Vista)
____________________________________________
Torrenter (1.05GHZ) (Stock mobo) (250GiG) (9200 Radion) (Stock PSU) (768MB) (XP)
____________________________________________
Laptop (Intel Core 2 Duo @ 2.8Ghz) (2G) (8600GT) (XP/Vista) (500GiG)
dawizhacker is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On