Advertisement
English transcript
And here's the solution.
We call the display method, and then in parentheses, we put the math expression.
We want 77 people, times 2 for the total number of coffees for
the 77 Android developers, and then we want to add 1 for that straggler.
We also remember the ; at the very end of the line.
Now I can enter this into Android Studio.
I'm going to highlight what was all ready in parentheses and delete that,
and then I'm going to type 77 * 2 + 1.
Then, I'll run the app.
When the app launches, then I just hit the Order button and
then it automatically tells me how many cups of coffee I need for
all those developers.
We call the display method, and then in parentheses, we put the math expression.
We want 77 people, times 2 for the total number of coffees for
the 77 Android developers, and then we want to add 1 for that straggler.
We also remember the ; at the very end of the line.
Now I can enter this into Android Studio.
I'm going to highlight what was all ready in parentheses and delete that,
and then I'm going to type 77 * 2 + 1.
Then, I'll run the app.
When the app launches, then I just hit the Order button and
then it automatically tells me how many cups of coffee I need for
all those developers.