Git Product home page Git Product logo

code-20211031-vipulpatel's Introduction

Nodejs BMI Calculator Coding Challenge

  1. Calculate the BMI (Body Mass Index) using Formula 1, BMI Category, and Health risk from Table 1 of the person and add them as 3 new columns

  2. Count the total number of overweight people using ranges in the column BMI Category of Table 1, check this is consistent programmatically, and add any other observations in the documentation

  3. Create build, tests to make sure the code is working as expected and this can be added to an automation build/test/deployment pipeline

Json Data Format:

[{"Gender": "Male", "HeightCm": 171, "WeightKg": 96 }, { "Gender": "Male", "HeightCm": 161, "WeightKg": 85 }

How to Run Project Please follow the steps to run the code

  1. npm install
  2. npx jest 2a) To run large file test, please remove "x" from unit test xtest(".....")

output file is generated in "out" folder.

NOTE:

  • while running jest test with large file, you may see "cannot log after tests are done. did you forget to wait for something async in your test jest" However, the given file is processed and output file is generated. This is the message from jest framework because of async/await operations.

code-20211031-vipulpatel's People

Contributors

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