Please use Pseudocode The Cashless Cafe only accepts credit


Please use Pseudocode

The Cashless Cafe only accepts credit and debit cards when customers pay for their purchases. All debit transactions require a personal identification number (PIN). A credit card transaction greater than or equal to $50 requires a signature A credit card transaction less than $50 does not require any additional input from the customer.

Solution

String cardType
num transAmount
string PIN
string signature

def store\'s checkout{
    INPUT cardType
    IF cardType = debit card
        THEN
            INPUT PIN from customer
    ELSE IF cardType = credit card
        THEN
            IF (transAmount >= $50)
                THEN
                    INPUT signature from customer
            ELSE
                do nothing  
}

 Please use Pseudocode The Cashless Cafe only accepts credit and debit cards when customers pay for their purchases. All debit transactions require a personal i

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site