From the course: Programming for Non-Programmers: Android & Kotlin
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Multiplication button
From the course: Programming for Non-Programmers: Android & Kotlin
Challenge: Multiplication button
- [Instructor] For the last challenge in this course, I want to put to the test everything you've learned throughout the course. So what we're going to do is implement the multiplication button. For a more challenging version of this challenge, stop right now and go try to implement it. If you'd like some tips, however, I'll give you some. You're going to need to update the name of the button in your user interface, update the enum values to add multiplication, connect the button to the changeMode method, and multiply the number in the didPressEquals method. This challenge is a little bit more involved than the previous challenges and therefore should take a little bit more time, up to about 20 minutes. Good luck.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
Set up properties and methods6m 15s
-
(Locked)
Connect all of the visual elements to code4m 43s
-
(Locked)
Display tapped numbers in the calculator6m 27s
-
(Locked)
Make the Clear button clear all values2m 3s
-
(Locked)
Set the calculator to add or subtract5m 10s
-
(Locked)
Show the total when the equals button is tapped6m 59s
-
(Locked)
Format the number3m 42s
-
(Locked)
Challenge: Multiplication button53s
-
(Locked)
Solution: Multiplication button3m
-
-