VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Equation Calculator

E P  (1 Submission)   Math/Dates   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This is a QuickBasic program, but I thought it might be useful in your VB projects. It calculates any given numeric equation.

Inputs
In DOS, it will ask you to give any numeric equation containing parentheses, power, multiplication, division, addition, subtraction, and/or negation. Check the screen shot to see an example. You can add it in your VB project, and just pass the equation to the program.

Returns
In DOS, it will print out each step of solving your equation according to the priority of the operations (check out the screen shot). If you add it in your VB project, you can change it so that it returns an array of the steps or a final answer only.

Side Effects
Like any other program, it has limits as a calculator. Do not try to have a number with an exponent. Do not use 3(4-5), instead, use 3*(4-5).

Rate Equation Calculator (3(3 Vote))
Equation Calculator.bas

Equation Calculator Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters