You are on page 1of 1

START

Enter Item Details #

temp++ Do you want to add another? Answer == ‘N’ || ‘n’

Answer == ‘Y’ || ‘y’


break

print “ALL ITEM DETAILS”

print “Total Payment”

Answer == ‘Y’ || ‘y’ Do you want to divide the expenses? Answer == ‘N’ || ‘n’

Enter total number of friends:


print “Enter Cash”

friends = 1 FALSE if Cash < Total Payment

if friends <= 3
TRUE

friends++
print “Enter the cash of friend #:”

FALSE if friends money < Total Payment print “Enter cash again:

TRUE

print “Invalid Cash”

print “Enter cash again:

Total Cash Received

The general Change

END

You might also like