0% found this document useful (0 votes)
4 views8 pages

IT Phase 1

The document outlines a diet program aimed at helping users maintain a healthy lifestyle by providing accurate meal recipes and nutritional information. It includes user stories for both general users and administrators, detailing their roles and activities within the program. Additionally, it describes the database design, user interface components, and processing logic necessary for the application's functionality.

Uploaded by

vhb53978
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views8 pages

IT Phase 1

The document outlines a diet program aimed at helping users maintain a healthy lifestyle by providing accurate meal recipes and nutritional information. It includes user stories for both general users and administrators, detailing their roles and activities within the program. Additionally, it describes the database design, user interface components, and processing logic necessary for the application's functionality.

Uploaded by

vhb53978
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Contentents

Task 0
Contents

Scenario and Scope


I have been tasked to create a diet program for people to use and maintain a healthy
lifestyle. There are many diet programs out there but they do not work effectively. They
give users wrong information regarding their what to do for their diet as well as give the
wrong nutrients for the meals. This has become a big issue for those who would like to
keep healthy. My program will use have multiple recipes for any type of diet meals that
is wanted by the user. My program will retrieve the proper information regarding what to
do for their diet as well as provide the proper nutrition values for their specified meal
preferences. My program will provide the user with most delicious meal recipes. I would
like my program to allow the user change log in into their account. The administrator
should be able to do the change users password and emails.

User Story and Acceptance Test


User Story
User 1: General user User 2: Administrator
Role People who would like to They would manage users
effectively change their way of account information. They
living or body. should also be able to
adjust app content.
Activity They user must be able to log The administrator must be
into their account, and check able to view all users
their and daily meals and account information,
workout program. progress and also change
if needed.

Value The user would want to use They need to make sure
the program to change their that the information that
body to feel more confident or the users receive are
any other reason. They can accurate and relevant.
contribute to the community
by sharing their progress.

Acceptance test
General user:

 The user can track their dieting progress.


 They must be able to log into their account and edit their account information.
 They can use the app to improve their body to help with their confidence.

Admin:

 They should be able to manage users' information.


 They should be able to view users account information.

Task 2
Data Dictionary
Variable Data Type Name Local/Global
sSurname string local
Spassword String Global
iweight integer local

Text Files
The texfile will hold the workout plan of the client and when called upon depending on
the client id the textfile will be displayed in a pagecontrol with all the workouts for each
day.

Example of the textile


Arrays
The array is going to store the day, type of meal, recipe name, the price of the meal and
the ingredients of each meal.

Example:
For Day 1
arrmealPlan

1 2 3
Day1 breakfast Eggs and Bacon

User Defined Methods:


Procedure: Procedure:Load loadmaintainanceworkout

This procedure loads the workout program if the users wants to maintain their weight.

Database design:
When the user logs on the database will check if their email and password are correct. If
the user needs to sign up they will be asked their goal and then will enter their personal
information for example their age, weight, height , and then their BMI will be calculated
, their card information will need to be added aswell. Their card information will be stores
in the tblpayment details. They will then be taken to the signup form and will be
assigned a random clientid and have to enter a password. All that information besides
the payment details will be then stored in the tbldatabase.

tblClients

Field Name Data Type Field Size Example


ClName Short Text 25 Liam
ClSurname Short Text 25 Andrews
Weight Number Long Integer 63
Height Number Long Integer 175
Age Short Text 2 16
Email (PK) (FK) Short Text 30 Liamandrews1221@gmail.
com
Password Short Text 25 LIAM12345678910
Role Short Text 5 User
BMI Short Text 5 19.6

The user’s Card information as well as the cost of the week plan, whether they took the
free plan and the date their free trial began will be asked and stored in the database.

tblPaymentDetails

Field Name Data Type Field Size Example


WeekPlan Yes/No yes
monthaplan Yes/No

WeekPlanCost Currency R70,00


WeekPlanBy (FK) Short Text 30 Liamandrews1221@gmail.
com
ExpirationDate Date/Time 2024/10/14
CVC Number Long integer 375
CardNumber Number Long integer 1234567891011121
(PK)
Navigation

GUI INTERFACE
Ipo Table
frmLoginPage

Input Format Data Type Component Validation


Email Adress Retrieves email string TEdit
adress from
welcome page
Pasword Users input String TEdit Checks if
password is the
same as in the
database
ClientId Users Iput Integer tEdit Checks if the
client id aligns
with the client
id in the
database

frmDnW

Input Format Datatype Componet Validation


BtnvieworkoutPl TButton Displays Clients
an workout routine
based on their
goal
btnViewmealPL Tbutton Displays users
an meal plan
based on their
goal.

Processing
Input processing
IclientiD Generates a random 6 digit Client id
number
chbShowPassword Sets edpassword2 and 3’s passwordchar
to #0
btnpaidweekly Sets the week plan Yes/No to true
btnLoginasAdmin Checks if the admin id entered is the same
as the client id
btnStart Checks whether the email entered
contains an @gmail.com or @yahoo.com
btnLoseWeight Gives variable goal the value lose weight
Btnnext4 Calculates users BMI
btnSignup Checks if the passwords the user has
entered is the same

Output
Name:
redmealplan Displays users meal plan depending on
their goal
Pagecontrol1 Displays users workout plan depending on
their goal.
EdEmail2 Gets assigned the email from edtemail1
from the welcome page.

You might also like