Giter Site home page Giter Site logo

toy-problem's Introduction

CODE-CHALLANGE

DESCRIPTION This is a practice code challange

GETTING STARTED In order for you to use the conted of this repo,follow the following

Open a terminal / command line interface on your computer

  • Clone the repo by using the following:

      git clone https://github.com/Barsu5489/Toy-Problem.git
    
  • Be patient as it creates a copy on your local machine for you.

  • Change directory to the repo folder:

      cd Toy-Problem
    
  • Open it in Visual Studio Code

      code .
    
  • Run

      npm install
    

GOALS

Writing a programe that calculates the grades of the students

Writting a program that detects the speed of the car

Writing a prigrame thatcalculates the net salary ofan indiviual

CHALLANGE 1; GRADE CALCULATOR

The programme prompts the user to input student marks. The input should be between 0 and 100. Then output the correct grade uuing the if else statement. Enter the student marks and the program will generate the grade.

Test the code by running node grade.js in terminal Make sure file is opened in intergrated terminal before running node grade.js

CHALLANGE 2; SPEED DETECTOR

The program inputs the speed of the a car. If the speed is less than 70, it should print “Ok”. Otherwise, for every 5 km/s above the speed limit (70), it should give the driver one demerit point and print the total number of demerit points.

Test the code by running node speed.js in terminal Make sure file is opened in intergrated terminal before running node speed.js

CHALLANGE 3; NET SALARY CALCULATOR

A program whose major task is to calculate an individual’s Net Salary by getting the inputs of basic salary and benefits. Calculates the payee (i.e. Tax), NHIFDeductions, NSSFDeductions, gross salary, and net salary

KRA, NHIF and NSSF values ar provide in th link: https://www.aren.co.ke/payroll/taxrates.htm Links to an external site.

Test the code by running node salary.js in terminal Make sure file is opened in intergrated terminal before running node salary.js

AUTHOR This project was written by:

  • Emmanuel Barsosio

LICENCE This project is licenced under Apache 2.0

toy-problem's People

Contributors

barsu5489 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.