English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

this is the question,

Set up a logical expression for the following conditions. A retail store has this check-cashing policy:
a. The customer must have a driver's licence.
b. When the check is more than $50, the customer must have a check-cashing card on file.

what would be the logical expression for this???

2007-01-06 12:05:05 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

IF (Drivers_License = TRUE AND AMOUNT <50) OR IF (Drivers_License=TRUE AND AMOUNT >=50 AND CASHING_CARD=TRUE) THEN

Call Accept_Check()

Else

Call Reject_Check()

End If
======================================
... - that's using visual BASIC syntax

2007-01-06 15:05:00 · answer #1 · answered by Richard H 7 · 0 0

If (Drivers Licence) AND ((check <= $50) OR (check > $50 AND Check Cashing Card))
THEN Accept Check
ELSE Deny Check

Note: You need both sets of parens around that second term

-Dio

2007-01-06 20:11:35 · answer #2 · answered by diogenese19348 6 · 0 0

Customer ID is required.

2007-01-06 20:10:53 · answer #3 · answered by nellek 1 · 0 1

fedest.com, questions and answers