Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help with c++ please Problem B: Big (bad) integer calculator (20 points) Write a calculator that ignores order of operations and just goes left-to-right. The

help with c++ pleaseimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions