Ask Experts Questions for FREE Help !
Ask
    sheenie's Avatar
    sheenie Posts: 1, Reputation: 1
    New Member
     
    #1

    Oct 5, 2009, 09:52 PM
    Code for a simple calculator
    Hello everyone,
    Please...
    Who can help me making code in simple calculator?.
    I really don't know how to make a code, I just design a simple calculator in Vb 6.0 it has a basic functions...
    Thanks.
    Perito's Avatar
    Perito Posts: 3,139, Reputation: 150
    Ultra Member
     
    #2

    Oct 7, 2009, 02:36 PM

    Here's an answer I gave some time ago for this same problem:

    https://www.askmehelpdesk.com/visual...ng-369748.html

    Basically you drop 10 buttons on a form and label them 0 through 9. Drop 5 more buttons on the form and label them +, -, *, /, and =. Drop a textbox on a form for the result. Put two more buttons on the form and label them "C" and "CE" for clear and clear entry. You have to write code to handle the pushing of the buttons. You have to figure out the "state" of the calculator. There are at least these states:

    1. The first number has not been entered or is being entered.
    2. The first number has been entered and a function key has been pressed (not =)
    3. A second number has been entered and another function key has been pressed (not =)
    4. At least two numbers have been pressed and the = button has just been pressed.

    Are you just supposed to design this without actually writing code?

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Visual basic code for calculator [ 8 Answers ]

I am a student at college in somaliland. One of my instructors told me to write a small programme for a calculator in visual basic 6.0. so, I'm stuck with this. Help me with the codes.

Vb code for calculator [ 1 Answers ]

Help me to solve the code for calculator in visual basic.. I really really need it urgent.. Thanks... :(

Code for financial calculator [ 1 Answers ]

I need code to design a financial calculator please kindly help me

A simple to code forum [ 1 Answers ]

I would like to make a simple forum, not one advanced like, say VBulliten or anything, but something VERY simple. Just like the one here: http://azjherben.org/forum.php Basiclly something I can edit easily without breaking anything, and users can use easily.

My wrong calculator code. [ 2 Answers ]

i did a very simple calculator http://img176.imageshack.us/img176/7314/52886418qe8.png And this is my code http://aycu30.webshots.com/image/47789/2003224651406407843_rs.jpg


View more questions Search