Hello this is what has occurred to me.
And in this YouTube video you're going to actually allow the user to see the calculations that occur
when the user interacts with the app.
So first of all we need to create an instance variable inside our calculator class Soviero private strange
and the name is going to be calculations.
Q relations streak semi-colon.
Now we are going to go inside this uncreate method and initialize this calculation String instance variable.
So we are going to see calculations strained assignment operator and here we just assign an empty string
value to this variable.
Now that be initialized our instance rowdier Bell calculations streambed you need to inside the switch
statement here.
And here we have this billion plus.
Right.
So for this case PTEN Plus I'm going to say calculations thrain plus assignment operator plus assignment
operator two quotes space plus space semicolon.
OK.
So it's going to add to the current value of the calculation string to this.
I created this operator to this text so we could also instead of saying plus are equal we could say
assignment operator calculation string plus And then this string value.
It's the same.
So let's find the subtract operator here.
So now we can again say calculation is streambed assignment operator calculation strange plus two quotes
minus semicolon.
And here we have to find another operator in what application.
Operator.
So here we're going to say calculations.
Strange assignment operator recalculations has three in plus two coats a multiplication of roter semicolon.
Now we're going to go for this PTEN divide.
So I can triangulations strange as an assignment operator reachout relations three plus two quotes a
divide operator two codes and then we're going to put a semicolon at the end of our statement.
So again after the ending curly brace or a switch statement and a before the end and curly brace of
Yankel.
If you're going to say TXI the calculations that said text calculations think semicon.
So now I need to scroll down here and inside this in say this operator is tapped Meffert.
Are we going to go after the Indian curly brace of the switch statement and here after this line that
says t see results that said text string number right left.
We're going to say calculations textes calculations.
Strange assignment operator and then you're going to say string number.
So if you're going to assign the value of these three numbers are left to these two these calculations
screen valuable so that we can show this value to the user.
When this operator is actually depressed when a specific operator is pressed we can actually update
the value of the calculations 3 and variable.
Now we're going to go inside the number is tappet method here.
After this line of code we're going to say calculations strange assignment operator currents number
semicolon anti-X the triangulations that said text calculations string.
In this way we can actually run the app.
Let me show you the emulator so we can see for example number 8 and multiplied.
So you can see this multiplication of Reutter here.
And for example number six.
And here it is now number six.
Right.
So OK it works fine.
You can see that it works perfect and it's fine.
So now in the next tutorial we're going to work on these equal operator and we're going to make it work.
So thank you very much for watching.
If you have any questions please post the discussion of the course and then I will do my best to answer
all of your questions.
I'll see you in the next two or three odd.