Giter Site home page Giter Site logo

code-challenge's Introduction

Description

Title: Week One code challenge

This is an application comprising : Student Grades Generator Speed Limit Detector Net Salary Calculator

Getting Started

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

Installation

To use this repo on your machine requires some simple steps

Alternative One

  • 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

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;

Challege-1 Student Grade generator

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

Challenge-2 Speed Detector

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

Challenge-3 Net Salary Calculator

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

Authors

This project was contributed to by:

  • Godwin Oyindo

License

The project is licensed by ISC.

code-challenge's People

Contributors

godwinoyindo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.