Upload
others
View
27
Download
0
Embed Size (px)
Citation preview
FOOD INTAKE FOR DIET MOBILE APPS
NUR AQILAH BINTI KAMARUZAMAN
BACHELOR OF INFORMATION TECHNOLOGY
( MEDIA INFORMATIC ) HONOURS
UNIVERSITY SULTAN ZAINAL ABIDIN
2018
FOOD INTAKE FOR DIET MOBILE APPS
NUR AQILAH BINTI KAMARUZAMAN
Bachelor of Information Technology ( Imformatics Media ) Honours
Faculty of Informatic and Computing
Universiti Sultan Zainal Abidin, Terengganu, Malaysia
2018
i
DECLARATION
I hereby declare that this report is based on my original work except for quotations and
citations, which have been duly acknowledged. I also declare that is has not been
previously or concurrently submitted for any other degree at University Sultan Zainal
Abidin or other institutions.
________________________________
Name : Nur Aqilah Binti Kamaruzaman
Date : .....................................................
ii
CONFIRMATION
This is to confirm that :
The research conducted and the writing of this report was under my supervision.
_____________________________________
Name : Datin Dr. Azim Zaliha Binti Abd Aziz
Date : ................................................................
iii
DEDICATION
First and for most I would like to express my gratitude to ALLAH S.W.T, which
allowed me to complete this project. Then I would like to sincerely thank to my
supervisor Datin Dr. Azim Zaliha Binti Abd Aziz for the continuous support and
guidance for my project.
Furthermore, I would like to appreciate the panel assessment members for their
continuous guidance, valuable feedback during my project presentation that guide me
to be improve my project and presentation skills.
Next is I want to thanks to my friends who also teach me and help me when developing
this mobile application, which they guide me to fix an error and give me a valuable
idea to improve my project and support.
Lastly, I would like to express my thankful for my parents for their continuous support
to encourage me until finish my project.
iv
ABSTRACT
Most people are very concerned about what they eat every day. This is because they
tend to find information about what they eat or what is related to diet. But they do not
know how to take the right foods for the diet. Diet is the amount of food needed by
someone, which is a nutrient intake of foods such as protein, carbohydrates, fat,
vitamins, mineral salts, water and salts in the quantities required by their body.
Nowadays, there are many systems that can help people to managing their diet.
However, the system does not focus on user requirements. Some people need nutrition
and dietary requirements vary by weight, age, height and so on. Therefore, we provide
this system to facilitate food intake according to the type of weight, activity level and
so on because every weight requires a different quantity and manner in terms of
exercise. They need something that will help them with the needs of their respective
bodies. The application to be developed is Food Intake For Diet (FIFD). This
application will help and facilitate affairs for people who want to lose weight correctly.
For example, how to eat foods according to the correct quality, the required water
content, and so on. The production of this project for the moment reminds users what
to do and what to do not do. In this system there is a type of diet where consumers can
choose to use the kind of diet they like. Therefore, this application method is
implemented in the system to generate the correct diet plan and health guidelines.
v
ABSTRAK
Kebanyakan orang sangat mengambil berat tentang apa yang mereka makan setiap hari.
Hal ini adalah kerana mereka cenderung untuk mencari maklumat tentang apa yang
mereka makan atau apa yang berkaitan dengan diet. Tetapi mereka tidak tahu cara untuk
mengambil makanan yang betul untuk diet. Diet ialah jumlah makanan yang diperlukan
oleh seseorng iaitu pengambilan makanan yang mengandungi nutrient seperti protein,
karbohidrat, lemak, vitamin, garam mineral, air dan pelawas dalam kuantiti yang
diperlukan mengikut tubuh mereka. Pada masa kini, terdapat banyak sistem yang boleh
membantu manusia untuk menguruskan diet mereka. Walau bagaimanapun, sistem
tersebut tidak menumpukan kepada keperluan pengguna. Sesetengah manusia
memerlukan nutrisi dan keperluan diet yang berbeza mengikut berat, umur, ketinggian
dan sebagainya. Oleh itu,kami menyediakan sistem ini bagi memudahkan pengambilan
makanan mengikut jenis berat, tahap aktiviti dan sebagainya kerana setiap berat badan
memerlukan kuantiti dan cara yang berbeza dari segi senaman. Mereka memerlukan
sesuatu yang akan membantu mereka dengan keperluan badan masing-masing.
Applikasi yang akan dibangunkan ialah Food Intake For Diet (FIFD). Applikasi ini akan
membantu dan memudahkan urusan bagi orang yang ingin mengurangkan berat badan
secara betul. Sebagai contoh cara pengambilan makanan mengikut kuntiti yang betul,
kadar air yang diperlukan dan sebagainya. Penghasilan projek ini untuk sentiasan
mengingatkan pengguna apa yang perlu diambil dan apa yang perlu dilakukan. Dalam
sistem ini terdapat jenis diet dimana pengguna boleh memilih untuk menggunakan jenis
diet yang mereka suka. Oleh itu, kaedah applikasi ini dilaksanakan dalam sistem untuk
menjana pelan diet dan garis panduan kesihatan yang betul.
vi
CONTENTS
PAGE
DECLARATION i
CONFIRMATION ii
DEDICATION iii
ABSTRACT iv
ABSTRAK v
CONTENTS vi
LIST OF TABLES x
LIST OF FIGURES xi
LIST OF ABBREVIATIONS xii
CHAPTER 1 INTRODUCTION
1.0 Introduction 1
1.1 Background Syatem 3
1.2 Problem Statement 4
1.3 Objective 5
1.4 Scopes 5
1. Nutritionist / Admin 5
2. User 5
1.5 Limitation Of Work 6
1.6 Expected Result 6
1.7 Activities And Milestones 7
vii
1.8 Gantt Chart 8
1.9 Conclusion 9
CHAPTER 2 LITERATURE REVIEW
2.0 Introduction 10
2.1 Application Problems 11
1. ‘My Meal Mate’ (MMM) 11
2. Timing of food intake predicts weight loss
effectiveness
11
3. Dietry Self – Monitoring, Improves with use of
Smartphone apps
12
4. Mobile apps Self – Monitoring of physical activity
and dietary intake among overweight adults
participating in an Health weight loss program.
12
5. Application of a behavioral Approach to
measuring Dietary Change : The Fat and Fiber –
related Diet Behavior Questionnaire
12
Comparison of Existing System 13
2.2 Solution Approach 15
2.2.1 Rule-Based System (RBS) 15
2.3 Conclusion 17
CHAPTER 3 METHODOLOGY
3.0 Introduction 18
1. Analysis 19
viii
2. Design 20
3. Development 20
4. Implementation 20
5. Evaluation 21
3.1 Problem Identification 22
3.1.1 Framework 22
3.2 Design 24
3.2.1 Process Model 24
3.2.1.1 Context Diagram (CD) 24
3.2.1.2 Data Flow Diagram (DFD) 24
3.2.1.2.1 Data Flow Diagram Level 0 25
3.2.1.2.2 Data Flow Diagram Level 1 28
1. Register 28
2. Manage Food 30
3. Manage Weight / Height 31
4. Manage Exercise 32
3.2.1.3 Activity Diagram 33
3.2.1.4 Sequence Diagram 34
3.2.1.5 Storyboard 35
3.2.1.6 Prototype 37
3.2.2 Data Model 40
3.2.2.1 Entity Relationship Diagram (ERD) 40
3.2.2.2 System Requirement 42
1. Software 42
2. Hardware 42
x
LIST OF TABLES
TABLE TITLE PAGE
1.1 Gantt Chart 8
2.1 Comparison Of Existing System 13
2.2 Example Coding Using Rule-Based System 16
xi
LIST OF FIGURES
FIGURE TITLE PAGE
1.1 Activities And Milestones 7
3.1 ADDIE Method 19
3.2 Framework 22
3.3 Context Diagram 24
3.4 Data Flow Diagram Level 0 24
3.5 Register DFD Level 1 28
3.6 Manage Food DFD Level 1 30
3.7 Manage Weight/ Height DFD Level 1 31
3.8 Manage Exercise DFD Level 1 32
3.9 Activity Diagram 33
3.10 Sequence Diagram 34
3.11 Storyboard 35
3.12 Prototype 37
3.13 Entity Relationship Diagram (ERD) 40
xii
LIST OF ABBREVIATIONS / TERMS / SYMBOLS
FYP Final Year Project
UniSZA Universiti Sultan Zainal Abidin
FIFD Food Intake For Diet
APPS Application
BMI Body Mass Index
PHP Hypertext Pre-Processor
HTML Hyper Text Mark-up Language
SQL Structured Query Language
2D Two Dimentional
3D Three Dimentional
RBS Rule-Based System
CD Context Diagram
DFD Data Flow Diagram
ERD Entity Relationship Diagram
1
CHAPTER 1
INTRODUCTION
1.0 Introduction
People at this time are very concerned about their health and nutrition. Most of
them are dieting, but are not good at choosing the right nutrition. A healthy diet is
a healthy eating habits. A good diet is a balanced diet that meets all the needs of
the body, such as foods that contain nutrients such as proteins, carbohydrates, fats,
vitamins, mineral salts, water and salts in the quantities required. Malaysia is one
of the countries that have dietary issues because they have a lot of obesity.
Malaysia is the first of ASEAN and sixth in the Asia-Pacific region.
2
Diet is an important part of our daily lives. Applying a diet can mean making some
good choices about nutrition (eating more fruits, vegetables, and fiber) or bad
choices (skipping food, eating too little or not eating enough food). Diet is the
amount of food used by a person in a certain amount. Diet often implies the use of
specific nutrition for health or the reason for weight management. A specific diet
can be selected for weight loss or weight gain. Some foods are specifically
recommended or altered for compliance with pertinent dietary requirements. Diet
also has many different types, namely the first Paleo diet. The paleo diet is a diet
with no rice, processed foods, sugars, dairy and cereals. Second, diet atkins is a
diet that only consumes foods containing protein and fat, and avoids foods
containing carbohydrates. Third, a vegetarian diet is a diet that only eat fruits and
vegetables only at the right rate. Fourth, raw food diet ie food and beverages not
processed or cooked ie based on plants and organic matter.
The diet should also follow the proper syllabus because different people will have
different dietary nutrition requirements based on their weight, age, height, gender
and daily activity. For example, having two dieters using atkins diet and weighing
weight, people weighing 60 and weighing 140, the system will set the appropriate
rates and quantities according to their weight. Therefore, we recommend this
system to help those who want to diet in the right way.
3
1.1. Background System
Food Intake For Diet (FIFD) is an application system. It is responsible for
developing a diet plan and dietary health guidelines for people who want to lose
weight using the right method. FIFD has worked together to help people who
want to lose weight reduce the number of obesity in Malaysia.
FIFD is a system that can help users to manage their daily diet or food intake
appropriate for their body needs according to proper syllabus. This system is one
of the effective alternatives to reducing heavy lose and changing lifestyles that
benefit the public in various ways. Diet menu plans are generated based on the
user's health state, which is the level of dietary level, and body mass index (BMI).
Consumers will choose which diet they want to use. For example, using the Atkins
diet method. Therefore, it will help the user to take what kind of food dishes are
appropriate for them and always remind the user. It is easier for users to plan their
daily diet better.
This system is developed using PHP and HTML for web development and
MySQL as a database platform and we use Flash, 2D and 3D to increase
animation. This system is based on rules for producing diet plans and dietary
guidelines for Diet.
4
1.2. Problem Statement
People at this time are very concerned about their health but they are unaware that
good food intake will provide good health. They are less concerned about what
they eat. However, there are some problems, most of whom are less aware of how
to choose and the type of food that is suitable for their body. This is because
different people will have different dietary requirements. For example, some
people like to use the vegetarian diet because he only wants to eat vegetables and
fruits and think because by eating vegetables it can lose weight quickly. The
amount of food intake should be according to the weight and the body needs to
have enough protein for the body. The right way to take food should also look at
the type of age, weight, height, gender and lifestyle first.
In this modern age, people live in a busy and always on the go. So, some of them
do not have time to make details about what they need to eat. They only eat
without knowing what is actually right for their body and most of them use drugs
to help them lose weight quickly without knowing the effects of the future. And
lastly, many people who want to diet but lose their appetite. Some people, can not
withstand the desire but want to be skinny and because there are some who use
skin peels.
Therefore, we build this system to help those who want to lose weight using food
intake in the right way.
5
1.3. Objectives
Food Objective For Diet Applications is:
- To plan a food intake apps for people who want to lose weight correctly
- To develop an apps that can help reduce the number of obesity in Malaysia
- To implement rule-based rules in Food Acquisition for Diet
1.4. Scopes
The main scope for the apps is:
1. Nutritionist / Admin
Admin has the power to manage, update and delete diet menu data and health
guidelines in the apps
2. User
Users can sign up and login to the apps and perform tasks that are set in the
apps. Users can manage profiles, manage the latest information such as weight
loss, manage health conditions with take through of body, and exercise. Users
can access the system anytime and anywhere. And all user can use this apps
it’s general for all user.
6
1.5. Limitation Of Work
Food Diet for Diet (FIFD) provides dietary recommendations and health
guidelines based on dietary phases, body mass index (BMI) and appropriate level
of activity using android user only. It is designed to help them with diet using the
right foods for those who want to lose weight only. Design for the diet is also
suitable for people who follow the diet. Diet planner consists of a recommended
diet based on the type of diet and health guidelines that are suitable for those who
need to lose weight but user that making decision that cannot be determined.
1.6. Expected Result
- Rules based rules can be implemented on the apps
- The relationship between food, activity and carbohydrate intake can be
identified
- An apps that can help and benefit the users in their diet
7
1.7. Activities and Milestones
ACTIVITIES MILESTONES
Month 9/18 10/18 11/18 12/18 2/19 3/19 4/19 5/19
Strategy
Analysis
Planning
Design
Apps Develop
Testing
Develop
Support
Figure 1.1 Activities and Milestones
8
1.8. Gantt Chart
Table 1.1 show Gantt Chart
Week
Activity
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Topic discussion and
determination
Project Title proposal
Proposal writing Introduction
Proposal writing Literature
Review
Proposal progress
presentation & evaluation
Discussion correction
proposal & proposed solution
methodology
Proposal solution
Methodology
Proposal solution &
methodology (continue)
Proof of concept
Drafting report of the
proposal
Submit draft of report to
supervisior
Siminar presentation (final)
Correction report
Final report submission
9
1.9. Conclusion
The apps is designed to help those who want to lose weight with proper dietary
intake - nutrition - containing foods such as protein, carbohydrates, fats, vitamins,
mineral salts, water and salts in the quantities required. And it's also important to
remind consumers to take the correct dietary content.
In turn, the system is designed to help control obesity rates. The apps is also set
up to balance the intake of food with physical activity and make the physical body
better. And besides it works for a diet, the system also works for the right exercise.
10
CHAPTER 2
LITERATURE REVIEW
2.0 Introduction
In the literature review we will discuss fulture about Food Intake For Diet mobile
application that contains the definition and previous research of application
problem that comparison of existing system and we will find the solution approach
that apps use.
11
2.1 Application Problem
Application problem in this topic is explain about comparison with another apps
or system that already have and find the weakness to solving the problem while
creating these apps. There are five already existing system information :
1. ‘My Meal Mate’ (MMM)
The purpose of this study was to assess the self-monitoring about dietary and
physical activity.
Strength – The extensive database with generic and branded food items for
people to choose from
Weakness – Must using internet, unattractive design, not understand the button
use
2. Timing of food intake predicts weight loss effectiveness
Timing of food intake influences the success of a weight-loss diet in humans
and to evaluate the role of food timing in weight-loss effectiveness.
Strength – the sample is relative large with numerous exposure variables
including biomarkers and genetic indicators
Weakness - Unattractive design, easily bored, lots of text
12
3. Dietry Self – Monitoring, Improves with use of Smartphone apps
Dietary self-monitoring is linked to improved weight loss success using
smartphone applications (apps) that allow to improved dietary tracking
adherence.
Strength – Smartphones apps, interesting design
Weakness – Graphics, using inappropriate threads
4. Mobile apps Self – Monitoring of physical activity and dietary intake
among overweight adults participating in an Health weight loss program.
Assess the self-monitoring about dietary and physical activity that monitoring
related to changes in self-monitoring frequency, dietary outcomes, energy
expenditure, body mass index (BMI), and body weight.
Strength – Use of validated measures and weekly data collected on both self-
monitoring and adherence to the intervention
Weakness - Lack of information, product quality not top-notch
5. Application of a behavioral Approach to measuring Dietary Change : The
Fat and Fiber – related Diet Behavior Questionnaire
This apps use to provide insight into the process of practicing a healthy diet
with regard to fat and fiber.
Strength - User friendly interface
Weakness - Using lesser colors, lack of information
13
Comparison of Existing System
TITLE AUTHOR ABOUT STRENGTH WEAKNESS
‘My Meal
Mate’
(MMM)
- Michelle C.
Carter
- V. J. Burley
The present study
aimed to validate the
diet measures
recorded on MMM
against a reference
measure of 24 h
dietary recall
- Easy to
navigate
- Easy to
understand
- Poor mobile
optimization
- Unattractive
design
Timing of
food intake
predicts
weight loss
effectiveness
- M Garaulet
- P Gomez-
Abellan
- JJ
Alburquerq
ue-Bejar
To evaluate the role of
food timing in weight-
loss effectiveness
- Easy to
understand
- Creative
idea
- Unattractive
design
- Easily bored
- Lots of text
Dietary Self-
Monitoring,
Improves
With Use of
Smartphone
App
- Christoper
M. Wharton
- Carol S.
Johnston
Dietary self-
monitoring is linked
to weight loss
success. Smartphone
applications (apps)
that allow for
improved dietary
tracking adherence.
- Interesting
design
- Clarity of
instruction
- Graphics
- Using
inappropriate
threads
Mobile app
self-
monitoring of
- Gabriella M
Turner-
McGrievy
The purpose of this
study was to assess
the self-monitoring
- Easy to
understand
- Lack of
information
14
physical
activity and
dietary
intake among
overweight
adults
participating
in an Health
weight loss
program
- Michael W
Beets
- Justin B
Moore
- Andrew T
Kaczynski
about dietary and
physical activity
- User
friendly
- product
quality not
top-notch
Application
of a
Behavioral
Approach to
Measuring
Dietary
Change:
The Fat- and
Fiber-related
Diet
Behavior
Questionnair
e
- Jackilen
Shannon
- Alan R.
Kristal
- Susan J.
Curry
- Shirley A.
A.
Beresford
To provide insight
into the process of
practicing a healthy
diet with regard to fat
and fiber
- User
friendly
interface
- using lesser
colors
Table 2.1 Show the comparison of Existing System
15
2.2 Solution Approach
The solution approach describes the general approach that will be taken to create
or acquire the new capabilities required the need. To determine the solution
approach, it is necessary to identify possible approaches, determine the means by
which the solution may be delivered (including the methodology and lifecycle to
be used) and assess whether is capable of implementing and effectively using a
solution. Then the tecnique that we use is Rule-based system (RBS) to remind the
user.
2.2.1 Rule-Based System (RBS)
In computer science, a rule-based system is a set of "if-then" statements that
uses a set of assertions, to which rules on how to act upon those assertions
are created. In software development, rule-based systems can be used to
create software that will provide an answer to a problem in place of a human
expert. These type of system may also be called an expert system. Rule-based
systems are also used in AI (artificial intelligence)programming and systems.
Rule-based system are used to store and manipulate knowledge to interpret
information in a useful way. rule-based system is also known as expert
system and consist of rule base, inference engine, working memory and user
interface as well as a set of if-then statement and rule set containing encoded
knowledge of an expert.
16
Example of coding :
c = Clock ;
Rule 1 :
if (c ”07:30”) {
then “Food Intake For Diet.
Good Morning :) Your Breakfast is waiting … "; }
Rule 2 :
else if (c ”13:00”) {
then “Food Intake For Diet.
Good Evening :) Your Lunch is waiting … "; }
Rule 3 :
else if (c “20:00”) {
then “Food Intake For Diet.
Good Night :) Your Dinner is waiting … "; }
Table 2.2 Show the example coding using Rule-based system for remainder
17
2.3 Conclusion
As the conclusion, there are few research thesis that already been discussed about
system and mobile application that will help more with this project. There are also
application that is more advance but not specific enough for whom are want to loss
weight and diet.
It is easy to apply and fast to read the data. Than we using technique rule-based
system that applied to making this project to popup or remainder to user.
18
CHAPTER 3
METHODOLOGY
3.0 Introduction
In these chapter, we will describe the methodology concept in system
development. We will explain step by step on developing the systems and how to
develop it. For the Food Intake for Diet, it will be following by step that has been
designed from start until finish and we using ADDIE method.
Addie is an acronym for the five stages of a development process that stand from
Analysis, Design, Development, Implementation, and Evaluation. The ADDIE
model relies on each stage being done in the given order but with a focus on
19
reflection and iteration. The model gives a streamlined, focused approach that
provides feedback for continuous improvement.
Figure 3.1 ADDIE method
1. Analysis
Analysis is a detailed examination of anything complex in order to understand
its nature or to determine its essential features from a thorough study. Before start
developing any content or training strategies, we must analyze the current
situation in terms of training, knowledge gaps and etc. First, start with questions
to understand the current situation and to also understand what is the goal.One
very common question is: What is problem statement? find problem that they
have and face. Then develop the apps to solve problems and adds the advantages
of the function to be better and more attractive. Then find Software and hardware
requirement used to develop the apps
20
2. Design
Design is to create, execute, or construct according to plan (designing and
contrive). With training plan, it is need us to design phase – this is where we take
all of the learnings of the previous phase and use it to make practical decisions.
This includes a strategy, delivery methods, structure, duration, assessment, and
feedback. Then it is to do storyboard ideas and create a prototype like process
design and Interface design for user and admin
3. Development
Development is the act, process, or result of developing after designing the
prototype. Each element of the course should be developed to match the design
phase. To develop the apps we must know how to use script ( java script, php,
html) and which script that we use. Then it must have the element of multimedia
like animation and multimedia component like audio, video, picture and etc.The
development process should be iterative. Once you have created a course you
should test it to ensure there are no basic errors – grammar, spelling, syntax etc.
Testing should also look at the mechanics of the course.
4. Implementation
Implementation is an act or instance of implementing something like the process
of making something active or effective. Once you have completed and you are
satisfied that are fully tested, it’s time to deploy prototype apps to the general
public that this apps exist.The decisions made in the design phase will influence
how this is actually carried out.
21
5. Evaluation
Evaluation is the act or result of evaluating. Getting feedback on every aspect
like test functionalities of developing prototype apps is really important so that
can improve and revise the content. A great way to get feedback is to ask
someone to complete surveys at the end of their course. Create questions specific
to the points above but, also encourage people to give feedback in a free text box
so that you are aware of any gaps you may not have thought of.
22
3.1 Problem Identification
Problem identification is to provide the platform for investigating a broad range of
intervention and generating option. Initiative develop in subsequent step of the
Framework should address the problem identified.
3.1.1 Framework
Figure 3.2 Framework
23
According to the framework in Figure 3.2, first nutritionist will login into the
system then nutritionist can manage the Food Intake Apps to insert the
information and generate report. Nutritionist is responsible to update and delete
the information. Second, user need to register first before login into apps to able
to manage their food, informatin and weight when they need tu update. Then all
the information will be store in database.
24
3.2 Design
3.2.1 Process Model
3.2.1.1 Context Diagram
Figure 3.3 Context Diagram of the applicatin
Figure 3.3 show of context diagram in Food Intake For Diet. There are two main
users in this systems which consist of user and nutritionist or admin. This
diagram show the flow for in and out from the data which is used by the user
and nutritionist itself, in the early stage where user can register and login to
access into the system and to used them.
3.2.1.2 Data Flow Diagram (DFD)
In the Data Flow Diagram (DFD), it will explain on how the data is inserted and
sent into the system to be processed and stored. Data flow diagram is also a two-
dimensional diagram that consists of entities, processes and files to show the
flow of the data in this system.
25
3.2.1.2.1 Data Flow Diagram Level 0
Figure 3.4 Data Flow Diagram Level 0 of the application
Based on the Figure 3.4 above, DFD shows the process that has been done
which consist of two entities i.e. user and nutritionist (admin). The proses of
the system are register, login, manage food intake, manage weight, exercise
and generate report.
26
Process 1.0 : Register
In register process, new users are required to register and fill in the
information in order to open a new account and the information will be
stored and to be insert into user files in the systems.
Process 2.0 : Login
In login process, user and nutritionist (admin) are required to log into the
system to access using username and paswword. And then the system will
verify the username and password that given from user and nutritionist file.
Process 3.0 : Manage Food Intake
In manage food intake process, nutritionist will manage including add,
update and delete the meals information from food intake file and it will be
save and stored in database if we change the information. The user can add
and delete the meals if the recommended food cannot be eaten by users, so
that it will remind the users what food they need to take.
Process 4.0 : Manage Weight
In manage weight process, user can manage and update their weight if there
is any changes on their weight and to see whether the diet process is effective
or not. Then the information change by the user will be save and stored in
the database.
27
Process 5.0 : Exercise
In exercise process, user can follow the suggestion provided to do exercise
by following the steps guided in order to speed up the process for losing
body weight. It also provide the guide step on how to do the exercise.
Process 6.0 : Generate Report
In generate report process, nutritionist can generate report from all files for
record and user can generate and get the report with monthly or weekly
report of their success loss weight following the period taken to be success
in losing weight. Then all the information will be obtained from the
database.
28
3.2.1.2.2 Data Flow Diagram Level 1
Data Flow Diagram Level 1 show the processes in DFD Level 0. There are
DFD Level 1 that will be explain is register, manage food intake, manage
weight and manage exercise. From there, it will be divide and described
according to the process.
1. Register
Figure 3.5 DFD Level 1 of Register process
29
In the process of Register as in Figure 3.5, user can register and required
to enter their personal information like (name, age, gender and email),
insert their weight, and insert username and password. Then user can
submit their data and data will be store in database and system will
display the details to user.
30
2. Manage Food
Figure 3.6 DFD Level 1 of Manage Food process
In the process of Manage Food as in Figure 3.6, nutritionist will add the
diet plan into the database and nutritionist can edit and delete the details.
The user also can add their meals and delete back if they won’t eat it. And
all information that change will be update and save in the database and
display in intercafe.
31
3. Manage Weight/ Height
Figure 3.7 DFD Level 1 of Manage Weight/Height process
In the process of Manage Weight as in Figure 3.7, user can manage their
weight by updating or change their weight if they loss weight and submit
the change into database. Than it will display them in user interface.
32
4. Manage Exercise
Figure 3.8 DFD Level 1 of Manage Exercise process
In the process of Manage Exercise as in Figure 3.8, the nutritionist will
add the exercise detail information in database. Then the nutritionist can
edit the detail and also can delete if not needed and submit the detail to
save into database. And lastly all changes will be display in interface.
33
3.2.1.3 Activity Diagram
Figure 3.9 Activity Diagram of application
In the Activity Diagram as in Figure 3.9, activity diagram are graphical
representation of workflow of stepwise activities and actions with support for
choice, iteration and concurrency.
34
3.2.1.4 Sequence Diagram
Figure 3.10 Sequence Diagram of application
In the Sequence Diagram as in Figure 3.10 are show a parallel vertical lines
which displays step-by-step data that comes in and out in the system.
35
3.2.1.5 Storyboard
A storyboard is a sequence of drawings, typically with some directions and
dialogue, representing the shots planned for someting like filemn or create the
system or apps. A storyboard is a graphic representation of how your apps will
unfold, step by step and etc.It’s made up of a number of squares with
illustrations or pictures representing each step,and what’s function that have in
the script. Think of it as sort of a comic book version of your script. this is my
storyboard of Food Intake for Diet mobile app.
37
3.2.1.6 Prototype
A prototype is an early sample, model, or release of a product built to test a
concept or process or to act as a thing to be replicated or learned from. It is a
term used in a variety of contexts, including semantics, design, electronics, and
software programming. This is prototypy from Food Intake for Diet mobile
apps that will develop soon. And we show you step by step to using this apps.
40
3.2.2 Data Model
3.2.2.1 Entity Relationship Diagram (ERD)
Figure 3.13 Entity Relationship Diagram of application
41
The entity relationship diagram as in the Figure 3.13 are showing the
relationship between each entity that have in the system and each entity have
their attribute that support the entity. Based on the Food Intake For Diet, the
entity that have in diagram is User, Nutritionist (admin), Weight, Exercise and
Food Intake.
In the user entity it contains with user id as primary key, name, weight gender
and email. The user are required to input the information or detail about
themselves and the data will be save in database. The nutritionist entity is
contain with username and password. While in the weight entity contains with
user id as foreign key, weight id as primary key and height. Exercise attribute is
contains with exercise id as primary key, exercise name, and exercise note. And
for food intake attribute is user id as foreign key, food id as primary key, food
name, food group and food note.
42
3.2.2.2 System Requirement
In order to develop the application, the uses of software and hadware are
important. Thare are the list name of software and hardware that used to
develop the proposed application.
1. Software
i. Microsoft Office 2013
ii. Microsoft PowerPoint 2013
iii. Google Chrome
iv. Adobe Photoshop CS6
v. Adobe Plash
vi. Android Studio
vii. Proto.io
viii. Xampp
2. Hardware
i. Laptop
ii. Pendrive
iii. Android Phone
iv. Printer
43
3.3 Conclusion
To conclude overall, from this chapter it explained about the modeling and design
of the mobile application. Furthermore it shows that a good designed database
gives us to access the information. This is why at the end of the app;ication it will
meet the database that is importance for applications.