Sam is using a calorie tracker app that helps him keep a record of all his physical activities and his daily intake of calories. The calories burned by him doing some of the common physical activities are:
-
30 minutes of cycling burns around 300 calories
-
30 minutes of swimming burns around 200 calories
-
30 minutes of running burns around 500 calories
Sam can lose one pound of weight for each 1000 calories burned. His daily extra calorie intake tracked by the app is 100. Write a program to calculate the number of pounds Sam can lose in a month if he does the above mentioned activities once a week for 1 hour and chooses to do one activity per day.
- Download and unzip the boilerplate code.
- Run the command
npm installto install the dependencies. - Open the boilerplate code in VSCode to develop the solution.
- Write the code in the .js files present in src folder
- Run the test scripts available under src/test by giving
npm run testcommand in the terminal to test locally. - Refactor the solution to ensure all test cases are passing.
- Zip the solution code with the name same as assignment name.
- Upload the zipped solution for submission.