You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "view bmi" command does not check whether a height has actually been input by the user before performing the calculation for BMI, leading to strange output:
-------------------------------------------------------------------------------
add weight /1 /1 /12-12-0001
-------------------------------------------------------------------------------
Weight: 1kg
Fat percentage: 1%
Date: 12-12-0001
Weight and fat percentage are recorded successfully
-------------------------------------------------------------------------------
view biometrics
-------------------------------------------------------------------------------
Biometrics:
Biometrics are not set
-------------------------------------------------------------------------------
view bmi
-------------------------------------------------------------------------------
Your current BMI is : 9.223372036854776E16
Re-check your height and weight inputs. Your BMI is astonishingly high.
-------------------------------------------------------------------------------
To allay user confusion, it is best to detect this particular case and alert the user accordingly.
The "view bmi" command does not check whether a height has actually been input by the user before performing the calculation for BMI, leading to strange output:
To allay user confusion, it is best to detect this particular case and alert the user accordingly.
[original: nus-cs2113-AY2223S1/pe-interim#1022] [original labels: severity.Low type.FunctionalityBug]
The text was updated successfully, but these errors were encountered: