Question: Please complete in C++ Problem B: Big (bad) integer calculator (20 points) Write a calculator that ignores order of operations and just goes left-to-right. The

Please complete in C++

Please complete in C++ Problem B: Big (bad) integer calculator (20 points)

Problem B: Big (bad) integer calculator (20 points) Write a calculator that ignores order of operations and just goes left-to-right. The format will always be: [integer] [operator] [integer] [operator] ... [integer] [# symbol]. You can assume that they will enter in this format and you should be able to output an answer (your program should handle any type of spacing, such as 1+2# or 1+ 2 #). The only operators you need to handle are: +, -, / and *. This should still do integer division, so if they enter 1+4/6# it would then compute the addition (no order of operations) and get 5/6 then do integer division and get O as the final output (example 1). Example 1 (user input underlined): Enter a formula: 1+4/6# Example 2 (user input underlined): Enter a formula: 2+3*2/5000+9-4# Example 3 (user input underlined): Enter a formula: 2#

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!