File | Date | Author | Commit |
---|---|---|---|
.idea | 2021-03-31 |
![]() |
[a2ac99] used combobox instead of multiple constant buttons |
fonts | 2021-03-31 |
![]() |
[15e416] used roboto thin instead of digital7. changed l... |
out | 2021-03-31 |
![]() |
[a2ac99] used combobox instead of multiple constant buttons |
src | 2021-04-05 |
![]() |
[bf76cf] updated README.md and improved calc "history" |
.gitattributes | 2021-03-28 |
![]() |
[206cc5] Initial commit |
.gitignore | 2021-03-28 |
![]() |
[206cc5] Initial commit |
LICENSE | 2021-03-28 |
![]() |
[206cc5] Initial commit |
README.md | 2021-04-05 |
![]() |
[c1abf4] fixed stupid mistake |
Scientific Calculator.iml | 2021-03-28 |
![]() |
[206cc5] Initial commit |
icon.png | 2021-03-28 |
![]() |
[e8d338] Created basic GUI for the calculator |
A scientific calculator written in Java
Instructions on how to compile and run the calculator program
In order to compile the program, it is necessary to have JDK installed on your system.
To run the compiled program, you need to have JRE (if you already have JDK installed JRE need not be installed)
First, clone the repository by:
git clone https://github.com/kush018/Scientific-Calculator.git
Then, change the directory to the directory where the repository got cloned by:
cd Scientific-Calculator
Now, to compile the code:
javac -d ./ src/*.java
To run the code:
java Main
After typing the above command, the calculator should be running on your computer
Although this works, its an inconvenient way of running the program as one would have to open the command line everytime he/she wants to calculate something
To solve this problem, we can create a .jar (Java Archive) which can just be double clicked to run the application
To create the .jar file, type the following command:
jar mfcv "out/production/Scientific Calculator/META-INF/MANIFEST.MF" calc.jar *.class
You may replace calc.jar with a name of your choice. (this is the name of the .jar file)
While running, make sure that the folders "fonts" and the file "icon.png" are in the same directory as the .jar file.
If these files are not present in the same directory as the .jar file, the program will run unexpectedly or fail to run altogether
A guide to anyone who wants to use the calculator program
To make the user's life easier, keyboard shortcuts have been added.
These shortcuts have been given below.
Required to make sure the program is up-to-date with all the latest updates
To update the source code in your local clone of the repository, type:
git pull https://github.com/kush018/Scientific-Calculator.git
Then, you will have to execute the commands given above to compile the program
This project is licensed under the MIT License - see the LICENCE.md file for details