You are on page 1of 2

PSEUDO CODE

Login_Program
Open Login_Form
Prompt UserName and Password
Get UserName and Password
Read Login record

IF UserName=”” AND Password=”” THEN


Display “Enter User Name and Password”
ELSE
IF UserName=”” THEN
Display “Enter User Name”

ELSE
IF Password=”” THEN
Display ”Enter Password”

ELSE

IF UserName= data_username
AND Password= data_password THEN
Display Main_Form
ELSE
Display ”Incorrect User Name or Password!”

ENDIF

ENDIF

ENDIF

ENDIF
Add_Items_Information

Prompt Item_ID,Item_Type_Name,Item_Name,Price,Quantity,Warehouse
Get Item_ID,Item_Type_Name,Item Name,Price,Quantity,Warehouse
Save Item Type Information
END

Add_Item_Type
Prompt Item_ID,Item_Type_Name,Warehouse
Get Item_ID,Item_Type_Name,Warehouse
Save Item Type Information
END

Save_Sales_Information
Prompt CustomerID,CustomerName,PhoneNumber,Street,City,HomeNumber
Get CustomerID,CustomerName,PhoneNumber,Street,City,HomeNumber
Amount=UnitPrice*Quantity
Save Sales Information
Print Sales Information
END

Save_Customers_Information
Prompt CustomerID,CustomerName,PhoneNumber,Street,City,HomeNumber
Get CustomerID,CustomerName,PhoneNumber,Street,City,HomeNumber
Save Customer Information

END

Add_Order
Prompt OrderID,DeliveryDate,CustomerID,CustomerName,ItemID,Quantity
Get OrderID,DeliveryDate,CustomerID,CustomerName,ItemID,Quantity
Calculate Amount,Total
Sale Order Information
Print Order Information

END

You might also like