{"action":"opened","issue":{"url":"https://api.github.com/repos/jessicazhou/Comp-Sci-1/issues/1","labels_url":"https://api.github.com/repos/jessicazhou/Comp-Sci-1/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jessicazhou/Comp-Sci-1/issues/1/comments","events_url":"https://api.github.com/repos/jessicazhou/Comp-Sci-1/issues/1/events","html_url":"https://github.com/jessicazhou/Comp-Sci-1/issues/1","id":104389946,"number":1,"title":"09/01 Assignment 1","user":{"login":"jessicazhou","id":10427933,"avatar_url":"https://avatars.githubusercontent.com/u/10427933?v=3","gravatar_id":"","url":"https://api.github.com/users/jessicazhou","html_url":"https://github.com/jessicazhou","followers_url":"https://api.github.com/users/jessicazhou/followers","following_url":"https://api.github.com/users/jessicazhou/following{/other_user}","gists_url":"https://api.github.com/users/jessicazhou/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicazhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicazhou/subscriptions","organizations_url":"https://api.github.com/users/jessicazhou/orgs","repos_url":"https://api.github.com/users/jessicazhou/repos","events_url":"https://api.github.com/users/jessicazhou/events{/privacy}","received_events_url":"https://api.github.com/users/jessicazhou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-02T02:20:57Z","updated_at":"2015-09-02T02:20:57Z","closed_at":null,"body":"#include <iostream>\r\n#include <cmath>\r\nusing namespace std;\r\n\r\nint main()\r\n\t{\r\n\t\t\r\n\t\tdouble weight;\r\n\t\tdouble height;\r\n\t\tint age;\r\n\t\tcout << \"Hiya! Welcome to the Health-O-Matic, where we will be calculating the calories you burn in your day to day life using your weight, height, and age. First, we will figure out your basic metabolic rate.\";\r\n\t\tcout << \"Your weight in pounds [xx.xx] is: \";\r\n\t\tcin >> weight;\r\n\t\tcout << \"Nice! Your height in feet [xx.xx] is: \";\r\n\t\tcin >> height;\r\n\t\tcout << \"Thanks! Finally, yor age [xx] is: \";\r\n\t\tcin >> age;\r\n\t\t\r\n\t\tdouble basicmetabolicrate;\r\n\t\t//why is this identifier name not recognized?\r\n\t\tbasicmetabolicrate = 66 + 6.2 * weight + 152.4 * height - 6.8 * age;\r\n\r\n\t\tdouble activityfactor;\r\n\t\t\tcout << \"Supa cool! Your basic metabolic rate, aka BMR, is going to be: \" << basicmetabolicrate << \"Now we're going to figure out your activity factor. If you are sedentary, enter 1.2; if you are lightly active (excercise 1-3 times a week), enter 1.375; if you are moderately active (excercise 3-5 times a week), enter 1.55; if you are very active (excercise 6-7 times a week), enter 1.725; if you are extra active (excercise 2 times a day, run marathons, etc.), enter 1.9\" \"\\n\"; \r\n\t\t\tcin >> activityfactor;\r\n\t\tcout << \"Awesome, currently training some flying monkeys to do some calculations...in the meantime, do you have an idea of how many calories (xxxx.xx) you consume per day?\";\r\n\t\tdouble caloriesconsumed;\r\n\t\t\tcin >> caloriesconsumed;\r\n\t\tdouble caloriesburned;\r\n\t\tcaloriesburned = basicmetabolicrate * activityfactor;\r\n\r\n\t\t\tcout << \"Niceeeee! You burn approximately \" << caloriesburned << \"calories per day. You said you consume about \" << caloriesconsumed << \"calories per day. If you consume more calories than you burn, perhaps you should consider cutting down on the foods, or the types of foods you eat, or alternatively, excercising more frequently.\";\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t}"}}