81.8k views
0 votes
A user is shopping online and has added two items to the cart. When the user clicks the Checkout button, the shopping cart programming logic checks to see if the user is logged in already. If the user is logged in, the checkout process continues, otherwise, the user is prompted to sign in. Which of the following describes the logical component being used?

A) Loop
B) Function
C) Decision
D) Variable

User Bette
by
7.4k points

1 Answer

3 votes

Final answer:

The logical component being used is a c) decision.

Step-by-step explanation:

The logical component being used in this scenario is c) Decision.

When the user clicks the Checkout button, the shopping cart programming logic checks whether the user is already logged in. Based on the result of this check, a decision is made to either continue with the checkout process if the user is logged in, or prompt the user to sign in if they are not logged in.

User Adhocgeek
by
8.0k points