You are on page 1of 4

Activity 3

Algorithm
(Customers)
1. Create an account to gain accesson the system and wait for confirmation
message that you successfully create an account.
2. After creating account, choose customer instead of administrator to log in to the
system. If you enter invalid username/password the system will prompt a
message that username/password did not match.
3. Choose an activity you want to do like viewing of product brochure, ordering
process and leaving messages such as comments, and suggestion.
4. For viewing of product brochure, you can browse and choose your desired tile
design to order. When you click the purchase button you will now direct to
ordering process.
5. Fill up the ordering form and click the submit button and wait for confirmation
message that the transaction was successfully made.
6. Wait for the confirmation from the administrator that the order was being verified.
7. Print the order receipt.
8. If you choose on leaving messages, go to the contact us menu and fill out the
contact form and submit.
9. Log out to the system.
(Administrator)
1. Log in to the system as an administrator.
2. Choose an activity you want to do like viewing the stocks, viewing sales record,
view user accounts, activity history, verify the order request of the customer and
review the messages that the customers leave.
3. In viewing the stocks, the administrator can update the number of stocks, see the
current available stocks and the total number of stocks that has been purchased.

4. In viewing sales record, the admin can see the monthly sales report, the pie
graph that show the most purchased item that month and bar graph for represent
the monthly sales of the company.
5. In the activity history, the admin can see who are the recently log in to the
system, the activities that the customers done.
6. The admin will verify the request sent by the customers and reply to customers
questions.
7. Log out to the system.

Database Description
tbl_Order
Attributes: Product_Name, Product_Code, Product_Quantity, Product_Price,
Product_Total, Product_Date
Description: This table holds all data about the ordered products.

Primary Key: Product_Code


tbl_Customer
Attributes: Cust_Id, Cust_FirstName, Cust_Surname, Cust_MiddleName,
Cust_Username, Cust_Password, Cust_Email, Cust_Contact_Number, Cust_Address,
Cust_Gender
Description: This table holds all information about the customers.
Primary Key: Cust_Id
tbl_History
Attributes:H_Id, H_Username, H_Date, H_Transaction, Cust_Id
Description: This table holds all information about customer and administrators activities
done in the system.
Primary Key: H_Id
Foreign Key: Cust_Id

tbl_SalesRecord

Attributes: Sr_Id, Sr_Date, Sr_Quantity, Sr_Amount, Sr_Product_Name,


Sr_Product_Code
Description: This table holds data about the sales record.
Primary Key: Sr_Id

Foreign Key: Product_Code

tbl_ProductStocks
Attributes: Ps_Code, Ps_Product_Name, Ps_Product_Available,
Ps_Product_TotalStock
Description: This table holds data about the product availability. It also displays the total
number of stocks.
Primary Key: Ps_Product_Code
Foreign Key: Product_Code

You might also like