Professional Documents
Culture Documents
Introduction (3 pts.):
The Program can track the inventory of available vaccines by
brand, manage slot allocation according to vaccination
schedules, and record the vaccinee's information. This can be
used by medical personnel and frontliner volunteers (In the
medical field).
Example:
Pet - this structure is used to store the record of a pet which is brought to the clinic for
treatment.
typedef struct {
char petId[5], petName[15], petSex;
int petAge;
} pet;
#1 fullNm - This structure is used to store the full name of the vaccinee.
typedef struct{
}fullNm;
Note: The givenName[30] can accept one or more names (Example: Joyce Marie).
#2 info_add - This structure is used to store the full current address of the vaccinee.
typedef struct{
}info_add;
typedef struct{
}info_date;
#4 info_vaccinee - This structure is used to store the record of a vaccinee’s information to
the program.
typedef struct{
int age;
fullNm fullName;
info_date date;
info_add address;
char contactNum[11], vaccBrand[20];
}info_vaccinee;
Example:
petAge - should be from 0 to 20 only.
1. givenName, middleName, and lastName – The user can only enter letters,
numbers are invalid.
2. mm, dd, and yyyy – The user can only enter a valid date (month/day/year).
mm has 12 months, dd has 28, 29, 30, or 31 days (validation of the leap year
will also be included); and yyyy is between 1900 to 9999.
3. barangay, city, province, and country - The user can only enter letters,
numbers are invalid.
4. age – The user can only enter ages within 12 to 59 years old. Also, letters are
invalid.
5. contactNum - The user can only enter 11 digits.
6. vaccBrand - The user can only enter letters, numbers are invalid.