diff --git a/collins_apollo/README.md b/collins_apollo/README.md index 4e3f1e1..efd8f7b 100644 --- a/collins_apollo/README.md +++ b/collins_apollo/README.md @@ -1,3 +1,34 @@ -# A simple calculator that perfoms mathematic operation +# BASIC ARITHMETIC CALCULATOR +--- +### Introduction. +This is a basic calculator that when compled, allows user to perform basic mathematical +expression such as Addition, Subtraction, multiplication and division.The program can be +executed on the Shell Terminal. -

This is a basic calculator That runs in the commandline.It was created by collin Apollo in C language.Open README file in the C directory for more information

+--- +### Arithmetics. +1. Addition '+' eg. 5 + 6 = 11.
+1. Subtruction '-' eg 6 - 1 = 5.
+1. Division '/' eg 12 / 2 = 6.
+1. Multiplication '*' eg 4 * 5 = 20. + +--- +### Usage. + Exiting the calculator :-Press 'q' to exit calculator.
+ clear screen :-Press 'c' to clear the screen + +--- +### Compilation.
+ +1. clone the repository +1. Go in to the repository ie. cd +1. Navigate further in to the collins_apollo directory. +You can run the command below to compile and execute + +```bash + gcc main.c main.h calculator.c errorhandler.c errorhandler.h -o calc && ./calc +``` +--- +### Contact + +You can reach me on my email at [bristarcollins@gmail.com] diff --git a/collins_apollo/c/README.md b/collins_apollo/c/README.md deleted file mode 100644 index 7f9d283..0000000 --- a/collins_apollo/c/README.md +++ /dev/null @@ -1,34 +0,0 @@ -# BASIC ARITHMETIC CALCULATOR ---- -### Introduction. -This is a basic calculator that when compled, allows user to perform basic mathematical -expression such as Addition, Subtraction, multiplication and division.The program can be -executed on the Shell Terminal. - ---- -### Arithmetics. -1. Addition '+' eg. 5 + 6 = 11.
-1. Subtruction '-' eg 6 - 1 = 5.
-1. Division '/' eg 12 / 2 = 6.
-1. Multiplication '*' eg 4 * 5 = 20. - ---- -### Usage. - Exiting the calculator :-Press 'q' to exit calculator.
- clear screen :-Press 'c' to clear the screen - ---- -### Compilation.
- -1. clone the repository -1. Go in to the repository ie. cd -1. Navigate further in to the C directory. -You can run the command below to compile and execute - -```bash - gcc main.c main.h calculator.c errorhandler.c errorhandler.h -o calc && ./calc -``` ---- -### Contact - -You can reach me on my email at [bristarcollins@gmail.com] diff --git a/collins_apollo/c/calculator.c b/collins_apollo/calculator.c similarity index 100% rename from collins_apollo/c/calculator.c rename to collins_apollo/calculator.c diff --git a/collins_apollo/c/errorhandler.c b/collins_apollo/errorhandler.c similarity index 100% rename from collins_apollo/c/errorhandler.c rename to collins_apollo/errorhandler.c diff --git a/collins_apollo/c/errorhandler.h b/collins_apollo/errorhandler.h similarity index 100% rename from collins_apollo/c/errorhandler.h rename to collins_apollo/errorhandler.h diff --git a/collins_apollo/c/main.c b/collins_apollo/main.c similarity index 100% rename from collins_apollo/c/main.c rename to collins_apollo/main.c diff --git a/collins_apollo/c/main.h b/collins_apollo/main.h similarity index 100% rename from collins_apollo/c/main.h rename to collins_apollo/main.h