https://github.com/omrawaley/geometry-calculators
A bunch of geometry-related calculators—surface area, volume, hypotenuse, etc—written in Java, Python, C#, C++, and Haskell.
https://github.com/omrawaley/geometry-calculators
calculator cpp csharp css geometry haskell html hypotenuse java javascript python surface-area volume
Last synced: 2 months ago
JSON representation
A bunch of geometry-related calculators—surface area, volume, hypotenuse, etc—written in Java, Python, C#, C++, and Haskell.
- Host: GitHub
- URL: https://github.com/omrawaley/geometry-calculators
- Owner: omrawaley
- License: apache-2.0
- Created: 2023-05-11T21:59:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T01:43:19.000Z (about 2 years ago)
- Last Synced: 2025-01-11T12:46:47.613Z (over 1 year ago)
- Topics: calculator, cpp, csharp, css, geometry, haskell, html, hypotenuse, java, javascript, python, surface-area, volume
- Language: C#
- Homepage:
- Size: 13.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Calculators
A bunch of geometry-related calculators—surface area, volume, hypotenuse, etc—written in Java, Python, C#, C++, and Haskell.
Java, Python, C#, C++, and Haskell versions available in the `Java`, `Python`, `C#`, `C++`, and `Haskell` folders.
## For Java
`.jar` files are available in the `out > artifacts > _jar` folder.
Run `java -jar "path-to-jar"` in your command line!
## For Python
Executables available in the `exec` folder! (Created via [PyInstaller](https://pyinstaller.org/en/stable/))
Run `python "path-to-py"` in your command line when using source code. Double click the executable or cd into the directory with the executable and run `./main` to run the executable!
Note: You may have to use either `python` or `python3` depending on your installed version of Python.
## For C#
Run `mono "path-to-Program.exe"` in your command line!
Note: Only tested on MacOS.
## For C++
Double click the executable (`calculator`) to run. You can alternatively `cd` into `CylinderCalculator` and run `./calculator` in your command line!
Makefile is included and to recompile, `cd` into `CylinderCalculator` and run `make -B calculator` in your command line after editing!
## For Haskell
Run `ghc Main.hs` to compile the program for your system.
Run `./Main` to run the executable.