Question: 2. Caroline is at a stores checkout counter. Shed like to pay for her purchase using either her credit card or her debit card, but

2. Caroline is at a store’s checkout counter. She’d like to pay for her purchase using either her credit card or her debit card, but preferably her credit card. However, she is not sure whether the store accepts either card. If the store doesn’t accept either card, she will need to pay cash for the items. Write an appropriate algorithm using only the instructions listed in Figure 5-32. (An instruction can be used more than once.)

else end if pay for your items using your credit card pay for your items using your debit card pay for your items using cash if the store accepts your credit card if the store accepts your debit card ask the store clerk whether the store accepts your credit card ask the store clerk whether the store accepts your debit card

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock