Simple calculator program that can handle big numbers, using C. (Programming class assignment, June 2018)
- Compile calculator.c
- Enter a sequence of a mathematical expression, made up of integers and +, -, *, /
- Enter 'stop' to stop.
-
The input expression is decomposed into an array of numbers and an array of operators.
-
Each number is a struct which contains the sign and the string itself.
-
Each operation is done very similarly to how we would do it in hand, using carry and borrow.
Program structure is explained in more detail at Document.docx
and Presentation.pptx
.