194k views
1 vote
Which of the following logic components is being used and how much is the interest if the amount is 5,000? (Select two.) IF amount < 5,000 THEN interest = 7%, ELSE interest = 8%.

A) Loop
B) Switch
C) If-else statement
D) Function

User Sabine
by
7.9k points

1 Answer

5 votes

Final answer:

The logic component used is an If-else statement and the interest on a $5,000 loan at an 8% interest rate would be $400.

Step-by-step explanation:

The logic component being used is C) If-else statement. Regarding the amount of interest for an amount of $5,000, according to the provided If-else statement, since the amount is not less than $5,000, the interest rate applied would be 8%. Therefore, the interest calculated would be $5,000 x 0.08 = $400.

User Alok Mali
by
8.7k points

No related questions found