This is an introduction for Generics concept. For part 1 you need to use all knowledge you have (function, binding, variables...)
After the correction, you will have introcudtion of an powerful concept call "Generics" !
For part 2 you must refactored your code to implement this brain new concept.
Create your own calculator with the following operator : addition, substraction, multiplication and division.
What you're app must have :
- place to display the result of what you tape and the result of your operation
- numeric panel (0 to 9)
- one button for each operation
- one AC button to clear all operations
- a "dot" button for operation with decimal number
- an equal button to validate your operation
Here is the final view of your app
As you can see, Generics is a powerful concept. Refactoring your code and use it for your beautiful Calculator App