Calculate Daily Calorie Intake
Calculate Daily Calorie Intake (metric or imperial)
Description: Calculates the suggested daily amount of calories to consume to hit a target weight in a given time frame based on inputs.
Actors: All registered users.
Precondition: A user is on the home page.
Actions: The user clicks on the "daily calorie intake suggestion" button.The user then inputs the following:
Current Calorie Intake (cal) (integer >= 1)
Current Weight (kg or lb) (integer >= 1)
Target Weight (kg or lb) (integer >= 1)
Number of Days (integer >= 1)
The user then clicks on “Calculate”
Postcondition: The suggested daily calorie intake should be successfully calculated and will be displayed.
Depending on your inputs (extreme or unrealistic), the following statements may be displayed instead:
“That goal is unrealistic. Either your current calorie intake is not high enough to support weight loss or you are trying to lose too much weight in too short a time.”
“That goal is unrealistic. You are trying to gain too much weight in too short of a time.”
Test Cases:
Case 1: User leaves any input field blank or inputs a non-integer.
Error: “Please enter a number.”
Case 2: User inputs a negative integer.
Error: “Please select a value that is no less than 1.”
Iteration: 3
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Essential
- Drafter:
- Nikos Milonas
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Review
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by