Question: help w/ c++ Problem B: Big (bad) integer calculator (20 points) Write a calculator that ignores order of operations and just goes left-to-right. The format
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 "0" 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
Get step-by-step solutions from verified subject matter experts
