Skip to content

Ash914027/calorie_tracker_using_javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem Statement - Calorie Tracker

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

Instructions

  1. Download and unzip the boilerplate code.
  2. Run the command npm install to install the dependencies.
  3. Open the boilerplate code in VSCode to develop the solution.
  4. Write the code in the .js files present in src folder
  5. Run the test scripts available under src/test by giving npm run test command in the terminal to test locally.
  6. Refactor the solution to ensure all test cases are passing.
  7. Zip the solution code with the name same as assignment name.
  8. Upload the zipped solution for submission.

About

a calorie tracker app that helps him keep a record of all his physical activities and his daily intake of calories

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors