Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garethgeorge/calculator-c-
Fraction calculator with order of operations implemented in C++
https://github.com/garethgeorge/calculator-c-
Last synced: about 1 month ago
JSON representation
Fraction calculator with order of operations implemented in C++
- Host: GitHub
- URL: https://github.com/garethgeorge/calculator-c-
- Owner: garethgeorge
- Created: 2014-12-27T21:14:24.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-27T21:18:07.000Z (about 10 years ago)
- Last Synced: 2023-02-26T20:56:31.622Z (almost 2 years ago)
- Language: C++
- Size: 203 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Calculator-C-
=============Fraction calculator with order of operations implemented in C++
The program is based on my Java implementation done for my AP Computer Science course. The code is written entirely in C++ and is largely a learning exercise.
### Usage
Type an expression consisting of fractions and operators and the program will evaluate it to a single fraction value.Fractions are entered as \_\/\ ex:
```
1_1/2
```### Example Output
```
Using expression evaluator V1.0 C++ by Gareth George
> 1_1/2 + 3_4/5 * 3 / 1/2
Compiler: 1_1/2, 3_4/5, 3, *, +, 1/2, / -> ((1_1/2+(3_4/5*3))/1/2)
Result: 25_4/5
```