this is a basic calculator you can use on a android device
- The user can press the number buttons to have a number appear on the calculator
- when a user hits a plus button for example the number stays the same until the user enters a new one
- the user then can enter a new one
- if the user presses the equals button after entering the new number it will run the equation
- if the user instead pushes another equation number it will do the previous equation then make a new one with the newly selected equation
- C button clears everything and sets it back to the original state
- +/- makes a number positive or negative
- % divides the number by a hundred and displays it at the top
- . turns the number into a decimal
- made so the calculator doesnt immeditaly always go into double unless the user selcets the deciaml button
- at first i was struggling to get the pos and neg button to work because i was making it too complicated then i just made it very uncomplicated
Copyright 2023 Trevor Peevers
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.