Simple calculator that have some basic function and made with Java and Kotlin as Language, JavaFX and TornadoFX as GUI Framework, and also Gradle App Builder.
- Basic Operation (+, - , x, /)
- Sqrt and power operation (sqrt, ^)
- Logarithm function (log)
- Trigonometric function (sin, cos, tan)
- Memory functionality (MR, MC, Ans)
- Deleting functionality (<-, CE, AC)
To run this project, you must have at least:
- JDK, here I use JDK 14, but it should be safe as long you use JDK version newer than 11.
- Kotlin, I used version 1.3.70
- IntelliJ IDEA 2019 as IDE, I've used another IDE as VSC, but it fail.
- Gradle, use version 6.2.2, as I use this version.
-
Run IntelliJ IDEA, then open the project
-
Wait for a while, it should installing some dependencies, as JavaFX and TornadoFX, it might be installing gradle, too.
-
After finish installing dependencies, on IntelliJ embedded terminal, try execute
gradle clean build
after finish building, then execute
gradle run
to run the program
-
Wait, and the calculator screen should've appeared
This calculator is so simple
- Press the button to make equation you want to solve
- Press = to calculate
- To use memory feature you can press MC button to save the value, and MR button to use it. Remember this is using Queue DS.
- If you make mistake, you always can press <- button to delete the last char you typed, or press AC one to return teh calculator to it's initial state as it's first condition
- This is actually support input by keyboard, but still beta-testing, so not recommended as some key might leading to crash
- This only support a operation at once, one unary operator or one binary operator
- Not a pure bug, but after calculating result, we must clear the screen that contain result/answer with CE button manually, if not the screen look will be joined with previous result and would trigger further error.
- Naufal Prima Yoriko - Github : primayoriko
- Lionarta Savirandy - Github : Lionnarta
- Michelle Theresia - Github : michellethr