This is an application comprising : Student Grades Generator Speed Limit Detector Net Salary Calculator
In order for you to use the content on this repo ensure you have the following:
- A computer that runs on either of the following; (Windows 7+, Linux, Mac OS)
- nodejs 9.0
To use this repo on your machine requires some simple steps
-
Open a terminal / command line interface on your computer
-
Clone the repo by using the following:
git clone https://[email protected]:godwinoyindo/code-challenge.git
-
Be patient as it creates a copy on your local machine for you.
-
Change directory to the repo folder:
cd code-challenge
-
(Optional) Open it in
Visual Studio Code
code .
-
(Alternate Option) Open it in any editor of your choice.
Running the application is very straight forward. You can use the following steps to run the app.
All the challenges were solved and are contained in the index.html file. A user interface has been created to test all the challenges. Run the index.html on an the open live browser for the tests to be prompted on the browser. Each challenge has its own prompt where the main functions have been exported and compiled in one file index.html. The following prompts will appear on your browser for your inputs;
One main function was created to solve the challenge switch was used to check for various conditions A range of 0 - 100 was set at the begining of the function to avoid grading invalid scores
One main function was created to solve the challenge Switch was used to check for various conditions A speed range of upto 400km/hr was set to avoid unrealistic speed
The function had several conditions to check. Therefore, a couple of helper functions were created. Switch was used to check for various conditions Minimum deductable income for NHIF is set to ksh. 1000 The NSSF deduction calculation assumes a rate of 6% through out Minimum deductable income for NSSF is set to ksh. 3000 The payee calculation incorporated pension relief and checked for conditions to match as much as possible to the internet sources A main Function netSalaryCalculator was created to merge all the functions
This project was contributed to by:
- Godwin Oyindo
The project is licensed by ISC.