Hi, this is kind of silly request, can anyone help me with these three C++ progs:
I - Predefined number of operation Calculator:
e.g.
5 + 12 - 3
10 / 3 - 5 /12
The program should ask for the following
1- number of operations
2- the equation
for example
please enter the number of operations
2
Please Enter equation in the form num [op num] then press enter
6 / 2 * 3
9
II - Unknown number of operation Calculator:
accept an equation of any number of operatoins ending with the equal (=) operator.
e.g.
6 + 9 - 3 / 2 =
6
2 * 3 + 3 * 2 / 6 =
3
III - Priority Calculator:
caculate the (*, /) operations first then (+, -).
e.g.
6 + 2 * 9 - 3 / 2 =
processing
[6 + 18 - 3/2]
[6 + 18 - 1.5]
[24 - 1.5]
22.5
2 * 3 + 3 * 2 / 6 =
processing
[6 + 3 * 2 / 6]
[6 + 6 / 6]
[6 + 1]
7
I really hope that you help me, thanx in advance