# BMI 計算器 <!--卓宏儒到此一遊--> ## 需求擷取 計算我的BMI是多少,可以告訴我適合的體重 想知道自己的BMI數值是否達標 ## 需求分析 (1)計算BMI (2)適合體重 *體重與體重先前測量 *BMI 計算公式:$BMI = \frac{\text{體重}}{\text{身高}^2}$ 註:體重單位為公斤重(kg),身高單位為公尺(m)。 ### Use cases 使用案例 ```plantuml @startuml :User: --> (輸入身高體重) :User: --> (得到BMI數值) :App: --> (給適合體重) :App: --> (計算BMI) @enduml ``` ### User Stories 使用者故事 [測資輸入 輸出] [reference link] [測資1 身高 體重 過輕 適合 體重] ## 流程圖 ```flow st=>start: Start e1=>end: 適當體重 op=>operation: 輸入BMI數值 op2=>operation: 計算BMI數值 cond=>condition: BMI<18.5 cond2=>condition: BMI>27 e2=>end: 過輕 e3=>end: 過重 st->op->op2->cond->cond2 cond(no)->e2 cond(yes)->cond2 cond2(yes)->e3 cond2(no)->e1 ``` ## UI及元件說明 ### UI 使用者介面 ### 元件說明 輸入框:身高輸入 輸入框:體重輸入 標籤:顯示BMI 按鈕:計算BMI ## 程式截圖  ## 結論及心得
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.