Professional Documents
Culture Documents
Territory: Jamaica
1
Acknowledgement
Firstly I would like to thank the almighty God for providing me with the strength and
determination to see this Internal Assessment through to its completion. I would also like to
thank my teacher Ms. Atheena Nugent for providing me with the knowledge that I needed in
order for me to complete this assignment. And I would like to thank my parents for being the
driving force behind all my school work.
2
Table of Content
❖ Introduction………………………………………………………………………………4
❖ Problem Definition…………………………………………………………………...…..5
❖ Narrative………………………………………………………………………..………...6
❖ Functional Requirements…………………………………………………………………8
❖ Non-Functional Requirements………………………………………………………..…10
❖ Pseudocode……………………………………………………...…………………….....12
❖ C Program………………………………………………………………………………..20
❖ Screen Shots…………………………………………………………..…………………31
➢ Welcome Screen……………………………………………………………...….31
➢ Main Menu Screen……………………………………………………...……….31
➢ Login…………………………………………………………………………….32
■ Successful User Login………………………………………...…………32
■ Unsuccessful User Login
➢ Sign Up Page……………………………………………...……………………..34
■ Confirmation of Password……………………………………...…….….35
● Correct Password…………………………………….……….….35
● Incorrect confirmation of Pasword…………………..……….….35
➢ Exit………………………………...………………………………………….…36
➢ Home Screen……………………………………………..……………………...36
■ Profile………………………………………………………..…...……...37
■ Services………………………………………………………...………..37
● Flea shot…………………………………………………………38
● Check Up…………………………………...………………..….38
● Ultrasound…………………………………...……………...…..39
● Dental Work…………………………………..……………...…39
● Radiology And Laboratory Tests……………………….…...….40
● X Rays……………………..……………………………………40
● Appointment Date Made Screen…………………..……………41
■ Logout Screen…………………………………………..…………...….41
3
Introduction
The Healthy Furry Friends clinic website is a computer program designed using the C
programming language. It was designed to eliminate the stressful and long process that pet
owners have to go through everytime that their pet’s need to be brought in to the vet for check
ups, illnesses or other reasons. Throughout this project, a full dissection of the program is done
that encapsulates the different ways in which a program can be represented. These include a
Pseudocode and a Narrative. Also found in this project is the full code along with screenshots of
the different outputs that will be displayed throughout the program. A test plan was also
constructed that lists all the variables used, their data types, their purpose, the expected results to
be obtained when used, and the actual results obtained.
5
Problem Definition
The ‘Healthy Furry Friends’ is an animal clinic located at 08 Magnolia Street Kingston
10. It was founded by Mr. Donald Jenkins On march 15th 1976. The phone number of the clinic
is 1888-345-6000. It is currently managed by Mr. Jenkins and his daughter Sara Jenkins. The
clinic offers a variety of animal services such as: Flea shots, checkups, ultrasounds, dental work,
grooming and baths, radiology and laboratory tests and x-rays.
To schedule any of these services, a pet owner has to go through a very long process of
filling out forms repeatedly by hand with information such as: owners name, pet’s name, pets
age, reason for visit and so on. And all of this is just to make an appointment. Pet owners find
this system very stressful and time consuming and some of them are even concerned because of
the waiting time after the form is filled out. They are concerned because what if their pet needs
immediate medical attention and so forth.
A program should be created where the pet owners can access a one time form online or
through an app where they sign up and register their pet and after that there will be a page that
shows various appointment days and options as to which service you would like to apply for
which would give back an almost instantaneous reply and date to which the pet owner can come
in.
After inputting the various information the program should show you pets current
medical history and all the days in which you must bring it in for checkups.
6
Narrative
Upon opening the website a loading screen with the phrase ‘Welcome to Healthy Furry
Friends Animal Clinic!’ will appear in the center of the screen. After a three second wait. The
screen will switch to a login page with three options: 1) Login, 2) sign up, 3) exit. Upon opening
login, the user will be directed to a login page containing two input sections: 1) user name, 2)
password. The user will be prompted to enter a username which is ‘client’ and a password which
is ‘petclinic’. If either of these are entered incorrectly a message saying “You have entered an
invalid username”, the screen will then clear and the user will be prompted to re enter the
username. The same will be done if the password is incorrect. If both the password and username
are entered correctly the screen will clear and the home screen will appear.Upon opening sign
up, the user will be directed to a page containing 10 input options: 1) your first name, 2) your last
name, 3)email, 4)username, 5)your age, 6) pet’s name, 7) what type of animal is your pet is, 8)
your pet’s age, 9) create password, Clicking the exit option will clear the screen, display the
message “Goodbye” and stop the code..
After signing up or logging, the user will be directed to a new screen. After a 3 second
delay, the home screen will be displayed containing the Clinic’s name at the top. Along with the
three options which are: 1)profile, 2)services and 3)logout. The user will be prompted to select
either one. Upon selecting the profile option the user will be transferred to a page displaying all
their information except for passwords. The page will then close after 20 seconds and return to
the homescreen. After choosing services, the page will clear and display all the services that the
clinic provides.Choosing any service will bring the user to the appointment date page which
displays two or one dates that the appointments can be set for that month. Choosing an
appointment date will display the message “Appointment Made” which will then clear and then
the home screen will reappear. After choosing the logout option the user will be brought to a
page displaying the message “Are you sure you want to logout?” and below that there will be
two options to choose from: 1)yes and 2)no. Choosing yes will clear the screen and display the
message “Goodbye” and stopping the code, while choosing no will bring the user back to the
home screen.
7
Functional Requirements
Main Menu The program must give the user the choice to
select one of the three: login, signup and exit.
Flea Shot The program must give the user one or two
dates in which they can set an appointment for
that service.
Dental Work The program must give the user one or two
dates in which they can set an appointment for
that service.
Radiology and Laboratory Tests The program must give the user one or two
dates in which they can set an appointment for
that service.
Non-Functional Requirements
Main menu screen The program must load after the welcome
screen has been displayed for six seconds.
Radiology and laboratory Tests This program must close and return to the
home screen three sends after the desired
appointment date has been selected.
Pseudocode
Start
Create Structure
Declare fname[20], lname[20], email[40], username[15], petname[20], typepet[40],
password[30], conpassword[30] as character inside structure
Declare age, p_age, choice, choice2, choice3, choice4, choice5 as integer
Start Case 2
Start If
if(choice==2)
Creae file with pointer *cp and file name(ClientProfile.txt) in write mode
Write “First Name: "
Read fname
Write "Last Name: "
Read lname
Write “Age: "
Read age
Write "Email: "
Read email
Write Username: "
Read username
Write "Pet's Name: "
Read petname
Write "Type of Pet: "
Read typepet
Write "Age of Your Pet: "
Read p_age
Write in file,” Client's Information\n"
Write in file, Full Name: “%s %s\n”,p1.fname, p1.lname
Write in file, Age: “%d\n”,age
Write in file, "%s\n",p1.email
14
Start Case 3:
Start If
if(choice=3)
return 0;
End If
End Case 3
15
Start Case 2
Start If
if(choice2=2)
Write "Services"
Write "1.Flea Shot"
Write "2.Checkup"
Write "3.Ultrasound"
Write "4.Dental Work"
Write "5.Radiology and Laboratory Tests"
Write "6.X Rays"
Write "Enter A Choice: "
Read choice3
Start If
16
if(choice3==1)
Write "Flea Shot"
Write "1.Monday April 1, 2022"
Write "2.Thursday April 22, 2022"
Write "Enter A Choice: "
Read choice4
Start If
if(choice4<3)
Write "Appointment Made!!"
State goto Homescreen;
End If
End If
Start If
if(choice3==2
Write "Check Up"
Write "1.Monday April 15, 2022"
Write "2.Friday April 25, 2022"
Write "Enter A Choice: "
Read choice4
Start If
if(choice4<3)
Write "Appointment Made!!"
State goto Homescreen
End If
End If
Start If
if(choice3==3)
Write t\t\tUltrasound\n\n"
Write "1.tuesday April 6, 2022"
Write "2.Friday April 15, 2022"
Write "Enter A Choice: "
17
Read choice4
Sart If
if(choice4<3)
Write "Appointment Made"
State goto Homescreen
End If
End If
Start If
if(choice3==4)
Write "Dental Work"
Write "1.tuesday April 6, 2022"
Write "Enter A Choice: "
Read choice4
if(choice4<3)
Write "Appointment Made!!"
State goto Homescreen
Endif
End If
Start If
if(choice3==5)
Write "Radiology and Laboratory Tests"
Write "1.Saturday April 19, 2022"
Write "2.Wednesday April 20, 2022"
Write "Enter A Choice: "
Read choice4
Start If
if(choice4<3)
Write "Appointment Made!!"
State goto Homescreen;
End If
End If
18
Start If
if(choice3==6)
Write "tX Ray"
Write "1.Monday April 14, 2022"
Write "2.Thusrday April 30, 2022"
Write "Enter A Choice: "
Read choice4
Start If
if(choice4<3)
Write "Appointment Made!!"
State goto Homescreen;
End If
End If
End If
End Case 2
Start Case 3
Start If
if(choice2=3)
Write "Are you sure you want to logout?"
Write “1.Yes\n"
Write "2.No"
Write "Enter a Choice: "
Read choice5
Start If
f(choice5==1)
Write "Loging Out...."
Write "GoodBye!"
State return 0
Start If
if(choice5==2)
19
C Program
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
else
{
printf("You have enetred an invalid username\n");
delay(3);
system("cls");
printf("Please enter username again\n");
goto User;// goes to the point in the program with
this name 'user'
}
Password:
printf("Enter your password: ");
scanf("%s",p1.password1);
if(strcmp(p1.password1,"petclinic")==0)//compares the
required password with the one entered by user
{
printf("Password Correct");
delay(2);
system("cls");
}
else
{
printf("You have enetred an invalid password\n");
delay(3);
system("cls");
printf("Please enter password again\n");
goto Password;
}
}
break;
FILE *cp=fopen("ClientProfile.txt", "w+");//creates file which will store all he information of the
user
printf("\nFirst Name: ");//registration fields
scanf("%s", p1.fname);
printf("\n");
printf("Last Name: ");
scanf("%s",p1.lname);
printf("\n");
printf("Age: ");
scanf("%d",&age);
printf("\n");
printf("Email: ");
scanf("%s",p1.email);
printf("\n");
printf("Username: ");
scanf("%s",p1.username2);
printf("\n");
printf("Pet's Name: ");
scanf("%s",p1.petname);
printf("\n");
printf("Type of Pet: ");
scanf("%s",p1.typepet);
printf("\n");
printf("Age of Your Pet: ");
scanf("%d",&p_age);
printf("\n");
fprintf(cp,"\t\t\t\tClient's Information\n");
fprintf(cp,"Full Name: %s %s\n",p1.fname, p1.lname);
fprintf(cp,"Age: %d\n",age);
fprintf(cp,"%s\n",p1.email);
fprintf(cp,"Username: %s\n\n",p1.username2);
fprintf(cp,"\t\t\t\tPet's Information\n");
fprintf(cp,"Name: %s\n",p1.petname);
fprintf(cp,"Animal: %s\n",p1.typepet);
24
fprintf(cp,"Age: %d\n",p_age);
fclose(cp);//closes file
printf("Password: ");
scanf("%s",p1.password2);
printf("\n\n\n\t\t\tPlease wait While We make your profile!");
delay(5);
system("cls");
printf("\n\n\n\n\n\t\t\t....");
delay(4);
Confirm:
system("cls");
printf("Confirm Password: ");
scanf("%s",p1.conpassword);
system("cls");
printf("\n\n\n\n\n\t\t\t....");
delay(3);
system("cls");
if(strcmp(p1.conpassword,p1.password2)==0)//compares the first
password the user entered to the second
{
printf("Password Confirmed!");
delay(4);
system("cls");
}
else
{
printf("Error!\nTry Agian");
delay(3);
goto Confirm;
}
break;
case 3:
if(choice==3)
25
{
system("cls");
printf("\n\n\n\t\t\t\tGood BYe!");
delay(4);
system("cls");
return 0;
}
break;
}
}
Homescreen:
homescreen();
switch(choice2)
{
case 1://user's profile view
system("cls");
if(choice2=1)
{
printf("\t\t\t\t<<<<Profile>>>>\n\n");//profile tittle message
char newline[1000];
int exit;
FILE *cp;
cp=fopen("ClientProfile.txt","r");//opens file for read mode
while(!feof(cp))
{
fgets(newline, 1000, cp);
puts(newline);
}
printf("Enter 1 to return to Homescreen: ");
scanf("%d",&choice2);
while(exit=1)
{
system("cls");
goto Homescreen;
26
}
fclose(cp);//closes file
}
break;
}
}
if(choice3==2)//check up appointment dates
{
system("cls");
printf("\t\t\t<<<<Check Up>>>>\n\n");
printf("1.Monday April 15, 2022\n");
printf("2.Friday April 25, 2022\n\n");
printf("Enter A Choice: ");
scanf("%d",&choice4);
if(choice4<3)
{
system("cls");
printf("\t\t\t\tAppointment Made!!");
delay(3);
system("cls");
goto Homescreen;
}
}
if(choice3==3)//ultrasound appointment dates
{
system("cls");
printf("\t\t\t<<<<Ultrasound>>>>\n\n");
printf("1.tuesday April 6, 2022\n");
printf("2.Friday April 15, 2022\n\n");
printf("Enter A Choice: ");
scanf("%d",&choice4);
if(choice4<3)
{
system("cls");
printf("\t\t\t\tAppointment Made!!");
delay(3);
system("cls");
goto Homescreen;
28
}
}
if(choice3==4)//dental work appointment dates
{
system("cls");
printf("\t\t\t<<<<Dental Work>>>>\n\n");
printf("1.tuesday April 6, 2022\n\n");
printf("Enter A Choice: ");
scanf("%d",&choice4);
if(choice4<3)
{
system("cls");
printf("\t\t\t\tAppointment Made!!");
delay(3);
system("cls");
goto Homescreen;
}
}
if(choice3==5)//radiology and laboratory test appointment
dates
{
system("cls");
printf("\t\t\t<<<<Radiology and Laboratory
Tests>>>>\n\n");
printf("1.Saturday April 19, 2022\n");
printf("2.Wednesday April 20, 2022\n\n");
printf("Enter A Choice: ");
scanf("%d",&choice4);
if(choice4<3)
{
system("cls");
printf("\t\t\t\tAppointment Made!!");
delay(3);
system("cls");
29
goto Homescreen;
}
}
if(choice3==6)//exray appointment dates
{
system("cls");
printf("\t\t\t<<<<Xray>>>>\n\n");
printf("1.Monday April 14, 2022\n");
printf("2.Thusrday April 30, 2022\n\n");
printf("Enter A Choice: ");
scanf("%d",&choice4);
if(choice4<3)
{
system("cls");
printf("\t\t\t\tAppointment Made!!");
delay(3);
system("cls");
goto Homescreen;
}
}
}
break;
if(choice5==1)
{
system("cls");
printf("\n\n\n\t\t\t\tLoging Out....");
delay(4);
system("cls");
printf("\n\n\n\t\t\t\tGoodBye!");
delay(2);
return 0;
}
if(choice5==2)
{
system("cls");
goto Homescreen;
}
}
break;
}
}//end of program
31
Screen Shots
Welcome Screen
Login
Sign Up Page
35
Confirmation of Password
Correct Password
Exit
Homescreen
37
Profile
Services
Flea shot
38
Checkup
39
Ultrasound
Dental Work
40
X Rays
41
Logout Screen
42
43
characters
characters
Structured Chart
47
Technical Documentation
This program was created in order to make the process of seeing the veterinarian at an
animal clinic much quicker and easier for pet owners.The program also serves another purpose in
that it reduces crowding in the animal clinic and makes the scheduling of these appointments
much easier for the veterinarian.
The program will be used by the various pet owners to set appointment dates for the
services that they wish their pet to receive such as fea shots, the regular checkups or even as
extreme as an x ray
. The program functions as well as any other system in that it starts with a main menu
where it asks the user whether they would like to sign up, login or exit the program. If The User
wants to sign up, the program will inquire for the user’s information and then will ask for the
user to make a password. After signing up the user will be presented with the opportunity to view
their profile with all of their personal information, except for passwords, to be able to choose any
service that they require and make an make an appointment date on the days that are provided by
the program and it also gives the user the freedom to be able logout at any given time.
48
User Documentation
To make an appointment at the Healthy Furry Friends Animal Clinic via online is very easy. All
you have to do is follow these Steps.
❖ Step 1
❖ Step 2
❖ Step 3
After making your rprofile and confirming your password, you will then be directed to the
homescreen of the website where you will be given three options whether to view your
profile, see the services provided by the clinic or to logout of the website.
❖ Step 4
Conclusion
Prior to the making of this program, the ‘Healthy Furry Friends Animal Clinic’ was
receiving daily complaints from the pet owners that came to see them about the atrocious wait
time, and there was an obvious decrease in the amount of clients they had over the years.
After the implementation of the program, there were considerably less complaints from
the pet owners who seemed to be happier and there was also an increase in the amount of clients
that the clinic had. Along with this, the clinic's time management was duly improved and pet
owners could come in and get their pets looked after with little to no wait time.