In: Computer Science
You have been asked to carry out use case modelling to identify
the functional requirements for a new fitness app (provisionally
named FitFoodFastFacts) which is targeted at users who want to
track their food intake and balance it with their exercise profile
and goals, similar to the functionality provided by MyFitnessPal,
Fooducate, MyPlate, and others.
The target user of FitFoodFastFacts is anyone who is interested in
monitoring their food intake in order to gain a better
understanding of their nutrition, or to gain or lose weight.
Users will be able to customise the app for their own profile and
needs: for example, gender, age, height, weight, target weight,
target kilojoules and target macros (percentage of carbohydrates,
protein and fat consumed per day). They will also be able to record
their activities each day (run, swim, etc). They will be able to
select a food from the app’s database and record the quantity they
consumed of it at each meal. They will also have the ability to add
new nutritional information either manually or by scanning the
barcode of the product. The app will provide a range of useful
summaries of the personal data input by the user over various time
periods.
Use the user goal technique to identify all the use cases that
would be relevant to a potential user of the FitFoodFastFacts app.
Use the brief description above, your own experience or potential
requirements of such an app, and any research you need to do.
(a) Present your list in a table giving the use case name and an
informative brief description.
(b) Draw a use case diagram representing the same information
Solution for the problem is provided below, please comment if any doubts:
a)
The use cases:
The use cases and their description identified from the given scenario are tabulated below:
Use case |
Description |
Update the profile |
To customize the application to match with the users profile. |
Set the health objectives |
To set the health and diet objectives. |
Record the physical activities |
To record the activities like run, swimming, .to record the energy consulted by that activity. |
Record the quantity of meal |
To record the intake content in the application to record the intake energy. |
Add a new food |
To add information a new food. |
Read barcode |
This is an included use case of add a new food. |
Show summary |
To display the summary of various time periods |
b) The use case diagram: