Office Equipment & Supplies Logo

Related Topics:

Posted on Jan 08, 2011
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

The calculator we made in visual basic can't function all four operations consecutively

1 Answer

MiB8888

Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

  • Master 457 Answers
  • Posted on Jan 08, 2011
MiB8888
Master
Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

Joined: Feb 06, 2010
Answers
457
Questions
1
Helped
274141
Points
1430

You really have to give a lot more information in order to enable me to help you. However, by wild guessing, I am trying to nudge you into the right direction.

I assume you are trying to program a simple + - * / = infix calculator with or without a graphical user interface.

To get operators and operator precedence right, it is a good idea to create to a data structure of type stack. Stacks are abstract containers with operations push(), pop() and isempty().

  • Push() puts a new object to the stack,
  • Pop() removes one object from the stack and returns it, unless the stack is empty, in which case an error is generated,
  • isempty() is a boolean function that checks if the stack is empty.
A nice-to-have convenience extra is an operation top(). It returns the topmost stack element without removing it (you can emulate by a pop(); push() sequence at some performance costs, so its not a strict requirement for a stack).
only
Stacks are LIFO memories, Last In, First Out, so what you push most recently will get returned by pop first. Just like a stack of cards where you can put a new card only to the top and take away from the top, too.

Processing of the input is done according to the "Shunting-Yard Algorithm", invented by Edsger Wybe Dijkstra. The link directs you to the Wikipedia page of the algorithm, which does an extensive discussion, much nicer than what I could do here on FixYa.

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer

The Sum of 2 integers from 1 to 9 that are four consecutive numbers. Show that either one or three of the numbers on the counters were even

I need some help here. If we take the sum of 2 integers from 1 to 9, and they can be the same number, the maximum number is 18. I don't know how you are supposed to get four consecutive digits, unless you pad the number with zeros. Am I missing something?

Good luck,

Paul
0helpful
1answer

I dont know how to use it..

For the basic functions it is exactly like any calculator. Press keys to enter a number, press an operation symbol (+, -, x , /) then the equal sign.
For the more advanced functions and functionalities I am afraid you will have to consult the manual. The appendix has examples for each type of advanced calculations.
1helpful
1answer

Is there a guide of how to use this calculator i do not under stand how to work this

Here's a link to a pdf of the manual. The basics are that you have 12 white keys near the bottom, which include the 10 digits, a decimal, and the negative sign. On the right, you have the four operating keys, division, multiplication, subtraction, and addition. You also have the Enter key which will solve the expression. You'll notice that the buttons have blue and green lettering above them, and those are for the 2nd and alphabet functions. So if you press the 2nd key on the top-left, then the on key in the bottom left, then it'll turn it off, because it also functions as the off key. The Alpha key is used to input letters which are in green above each number. Good luck!
0helpful
1answer

How do i solve matrix equations on my calculator

This calculator does not support matrix equations/operations. You can either purchase a more expensive calculator with matrix functions, or you can do it by hand. Here is a basic tutorial on matrices: http://www.miislita.com/information-retrieval-tutorial/matrix-tutorial-2-matrix-operations.html
The TI-83 Plus is a calculator which will do matrix manipulation and is easily found used on sites like eBay.
1helpful
1answer

Calculator won't do basic math operations. Keep getting f(x)=. How do reset it to basic computations?

The computational MODE of your calculator is set to TABLE: It generates a table of values for a function you define in response to the prompt F(X)=?

To get out of TABLE MODE, press MODE and select 1:COMP, and the calculator will revert to the general computational mode.
3helpful
1answer
2helpful
1answer

Can i get source code for calculating arithmetic operations of vb

just take a look to this site:
http://www.codeproject.com/
you'll get all your answers about VB and totally .NET there by a simple search
enjoy it!
Not finding what you are looking for?

188 views

Ask a Question

Usually answered in minutes!

Top Office Equipment & Supplies Experts

k24674

Level 3 Expert

8093 Answers

Brad Brown

Level 3 Expert

19187 Answers

ADMIN Andrew
ADMIN Andrew

Level 3 Expert

66931 Answers

Are you an Office Equipment and Supply Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...