Specification by Pseudocode
Module: Find Customer Name
Purpose: Find a customer in the database and return their name and whether or not their account is okay.
Uses: Account number
Returns: CustomerName, AccountFlag
For x=1 to num_of_customers
if number=cust[x].cust_id
{
if Check_Account_Balance
flag = 1.
Else flag = 0.
Name = cust[x].cust_name
}
return flag, Name
Next x
Previous slide
Back to first slide
View graphic version