Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ please. Can you build off of this code, this is what I have. As in, use my given code that reads one string of

C++ please. Can you build off of this code, this is what I have.
As in, use my given code that reads one "string" of formulas, to build the new code that reads the semi colon (;) as the end of a formula and moves on to the other. The code that I provided is only able to read one formula, im supposed to edit it to make it be able to read multiple formulas. image text in transcribed
image text in transcribed
10 #include using namespace std; int main() { int s, sum = 0; cin >> sum; char op: while(cin >> op >> s) { // While the reading operation is a success if(op-''){ sum - sum + s; else if (ope'-'){ sum - sum -3; cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

When can an offeror revoke or withdraw an offer?

Answered: 1 week ago