{"id":20469084,"url":"https://github.com/ghosts6/bmi","last_synced_at":"2026-04-12T19:51:58.126Z","repository":{"id":197128870,"uuid":"698044095","full_name":"Ghosts6/bmi","owner":"Ghosts6","description":"bmi calculator with c c++ python and java script","archived":false,"fork":false,"pushed_at":"2024-03-20T11:33:30.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T01:49:29.831Z","etag":null,"topics":["bash","bmi-calculator","c","cpp","html-css-javascript","python3"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ghosts6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-09-29T03:02:32.000Z","updated_at":"2024-09-14T07:58:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"2425a2d1-f297-4416-8b70-d09593bc61be","html_url":"https://github.com/Ghosts6/bmi","commit_stats":null,"previous_names":["ghosts6/bmi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2Fbmi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2Fbmi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2Fbmi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2Fbmi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ghosts6","download_url":"https://codeload.github.com/Ghosts6/bmi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242031645,"owners_count":20060618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","bmi-calculator","c","cpp","html-css-javascript","python3"],"created_at":"2024-11-15T14:07:54.907Z","updated_at":"2025-12-31T01:03:06.520Z","avatar_url":"https://github.com/Ghosts6.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![baner](https://github.com/Ghosts6/Local-website/blob/main/img/Baner.png)\n\n# ⚕️bmi\n\nHi 👋! this is bmi calculator program which write with differend languages such as python c++ c and javascropt.\n\n\n# 🔍code sample:\n\nhere we have c++ code, which use oop to handle data and if we want to talk about feature of this program we can \npoint to advise that it give to us based on our bmi near calcute bmi.\n        \n```cpp\n#include \u003ciostream\u003e\n#include \u003cstring\u003e\n#include \u003cstdio.h\u003e\nusing namespace std;\n class info {\n     public:\n     float weight;\n     float stature;\n     double bmi;\n     double weight_cost;\n };\n double a,b;\n int main(){\n     info obj;\n     string first_name;\n     string last_name;\n     string fullname = first_name + \" \" + last_name;\n     string choice;\n     char vote;\n     cout \u003c\u003c\"\\t\\t\\t\"\u003c\u003c\"welcome to bmi program\"\u003c\u003c\"\\n\\n\"\u003c\u003c\"please fill your infomation\"\u003c\u003cendl;\n     cout\u003c\u003c\"enter your name:\"\u003c\u003cendl;\n     cin \u003e\u003efirst_name;\n     cout\u003c\u003c\"enter your last name:\"\u003c\u003cendl;\n     cin\u003e\u003elast_name;\n     cout\u003c\u003c\"\\t\\t\\t\"\u003c\u003c\"welcome\"\u003c\u003cfullname\u003c\u003cendl;\n     cout\u003c\u003c\"enter your weight bay kg first than your stature bay metre:\"\u003c\u003c\"\\n\";\n     cin\u003e\u003eobj.weight\u003e\u003eobj.stature;\n     a=obj.stature/100;\n     b=a*a;\n     obj.bmi=obj.weight/b;\n     obj.weight_cost=obj.bmi - 18.5;\n     cout \u003c\u003c\"\\n\\n\\n\"\u003c\u003c\"your bmi equal with:\"\u003c\u003cobj.bmi\u003c\u003c\"\\n\"\u003c\u003cendl;\n     if(obj.weight_cost \u003c 5){\n        cout\u003c\u003c\"your wight ok and you dont need to lose wight\"\u003c\u003cendl;\n     }else if (obj.weight_cost \u003e 5){\n        cout\u003c\u003c\"you need to cost:\"\u003c\u003cobj.weight_cost\u003c\u003c\" to have normal wight\"\u003c\u003cendl;\n     }\n     \n     if(obj.bmi\u003c=18.49){\n         cout\u003c\u003c\"under weight\"\u003c\u003cendl;\n         vote='a';\n     }  \n     \n    else if(18.5\u003c=obj.bmi \u0026\u0026 obj.bmi\u003c=24.49){\n         cout\u003c\u003c\"you have normal weight\"\u003c\u003cendl;\n         vote='b';\n     }\n     \n     else if(24.5\u003c=obj.bmi \u0026\u0026 obj.bmi\u003c=29.9){\n         cout\u003c\u003c\"you have extra weight\"\u003c\u003cendl;\n    vote='c';\n     }\n     \n  else if(30\u003c=obj.bmi \u0026\u0026 obj.bmi\u003c=34.49){\n         cout\u003c\u003c\"coutFirst-degree obesity\"\u003c\u003cendl;\n         vote='d';\n     }\n  else if(34.5\u003c=obj.bmi \u0026\u0026 obj.bmi\u003c=40){\n         cout\u003c\u003c\"second degree obesity\"\u003c\u003cendl;\n         vote='e';\n     }\n      \n     else{\n         cout\u003c\u003c\"wrong number or info\"\u003c\u003cendl;\n     }\n     jump:\n     cout\u003c\u003c\"\\n\\n\"\u003c\u003c\"thank for your time we also have some advice about weight\"\u003c\u003c\"\\n\"\u003c\u003c\"do you wane see them ?(yes/no)\"\u003c\u003cendl;\n     cin\u003e\u003e choice;\n     if(choice == \"yes\" || choice == \"Yes\"){\n         cout\u003c\u003c\"theres some advice for you bay your bmi :\"\u003c\u003cendl;\n         switch (vote){\n             case 'a':\n              cout\u003c\u003c\"Eat more frequently. When you're underweight, you may feel full faster. Eat five to six smaller meals during the day rather than two or three large meals.Choose nutrient-rich foods. As part of an overall healthy diet, choose whole-grain breads, pastas and cereals; fruits and vegetables; dairy products; lean protein sources; and nuts and seeds\"\u003c\u003cendl;\n              break;\n              case 'b':\n              cout\u003c\u003c\"Foods high in sugar and calories lead to weight gain if you are not careful. Choose foods that are high in nutrition and taste, like fruits, vegetables and whole grains. You don’t have to sacrifice your favorite foods in order to take care of your body either–it’s ok to have a couple of cheat meals or cheat days every once in a while.\"\u003c\u003cendl;\n              break;\n              case 'c':\n              cout\u003c\u003c\"Following a healthy eating plan with fewer calories is often the first step in trying to treat overweight and obesity.\"\u003c\u003cendl;\n              break;\n              case 'd':\n              cout\u003c\u003c\"Changing your eating and physical activity habits and lifestyle is difficult, but with a plan, effort, regular support, and patience, you may be able to lose weight and improve your health. The following tips may help you think about ways to lose weight, engage in regular physical activity, and improve health over the long-term.\"\u003c\u003cendl;\n              break;\n              case 'e':\n              cout\u003c\u003c\"Some people benefit from a formal weight-management program. In a weight-management program, trained weight-management specialists will design a broad plan just for you and help you carry out your plan. Plans include a lower-calorie diet, increased physical activity, and ways to help you change your habits and stick with them. You may work with the specialists on-site (that is, face-to-face) in individual or group sessions. The specialists may contact you regularly by telephone or internet to help support your plan. Devices such as smartphones, pedometers, and accelerometers may help you track how well you are sticking with your plan.People who are overweight or have obesity should also start regular physical activity when they begin their healthy eating plan. Being active may help you use calories. Regular physical activity may help you stay at a healthy weight.\"\u003c\u003cendl;\n              break;\n              default:\n              cout\u003c\u003c\"program error\"\u003c\u003c\"\\n\";\n             \n              \n         }\n     }\n     else if (choice==\"no\" || choice==\"No\"){\n         cout\u003c\u003c\"\\t\\t\\t\"\u003c\u003c\"\\\\\\\\thank for time////\"\u003c\u003cendl;\n         \n     }\n     else{\n         cout\u003c\u003c\"wrong answer try again\"\u003c\u003cendl;\n         goto jump;\n     }\n         \n     \n     return 0;\n }\n ```\n\n # 🎥video:\n\n[bmi.webm](https://github.com/Ghosts6/bmi/assets/95994481/03af7a81-a127-4318-b534-da4ffd1613bb)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghosts6%2Fbmi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghosts6%2Fbmi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghosts6%2Fbmi/lists"}