Question: 2. Caroline is at a stores checkout counter. Shed like to pay for her purchase using one of her credit cardseither her Discovery card or

2. Caroline is at a store’s checkout counter. She’d like to pay for her purchase using one of her credit cards—either her Discovery card or her Vita card, but preferably her Discovery 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-31.

else end if pay for your items using your Vita card pay

else end if pay for your items using your Vita card pay for your items using your Discovery card pay for your items using cash if the store accepts the Vita card if the store accepts the Discovery card ask the store clerk whether the store accepts the Vita card ask the store clerk whether the store accepts the Discovery card Figure 5-31 Instructions for Exercise 2 2013 Cengage Learning

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